Widget:Map: различия между версиями
Материал из Ролевой сервер "tales.pw"
Xunto (обсуждение | вклад) |
Xunto (обсуждение | вклад) |
||
| Строка 5: | Строка 5: | ||
query: '[[Категория:Государство]]|?карта|?Display title of' | query: '[[Категория:Государство]]|?карта|?Display title of' | ||
}).done(function(data) { | }).done(function(data) { | ||
| − | console.log | + | console.log(data); |
}); | }); | ||
} ); | } ); | ||
</script> | </script> | ||
Версия 01:34, 29 июля 2019
<script> mw.loader.using( 'mediawiki.api', function () { (new mw.Api()).get( { action: 'ask', query: '|?карта|?Display title of' }).done(function(data) { console.log(data); }); } ); </script>