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