میدیاویکی:Common.js: جیاوازیی نێوان پێداچوونەوەکان
ناوەڕۆکی سڕاو ناوەڕۆکی زیادکراو
No edit summary |
No edit summary |
||
ھێڵی ١٬٠٧٤:
* @author User:Ebraminio
**/
//if (mw.config.get('wgTitle') === "دەستپێک") {
$.when(▼
new mw.Api({ ajax: { url: '//commons.wikimedia.org/w/api.php' } }).get({▼
if ($('#mp-commonsfp').length === 0) { return; } // Nothing to do here
▲ $.when(
format: 'json',▼
text: '{' + '{:Main Page/potd|lang=ckb}' + '}',▼
▲ format: 'json',
origin: window.location.protocol + '//' + window.location.hostname▼
▲ text: '{' + '{:Main Page/potd|lang=ckb}' + '}',
}),▼
prop: 'text',
$.ready▼
▲ origin: window.location.protocol + '//' + window.location.hostname
▲).then(function (res) {
}),
$('#mp-commonsfp').html(res[0].parse.text['*']);▼
).then(function (res) {
});
//}
|