Widget:Map: различия между версиями
Материал из Ролевой сервер "tales.pw"
Xunto (обсуждение | вклад) |
Xunto (обсуждение | вклад) |
||
| Строка 13: | Строка 13: | ||
}); | }); | ||
}); | }); | ||
| + | } | ||
</script> | </script> | ||
Версия 02:05, 29 июля 2019
<script> var state_map = {}; document.onload = function() { mw.loader.using( 'mediawiki.api', function () { (new mw.Api()).get( { action: 'ask', query: '+|?карта|?Display title of' }).done(function(data) { var results = Object.values(data["query"]["results"]); for (var i=0; i<results.length; i++) { console.log(results[i]); } }); }); }
</script>