میدیاویکی:Common.js: جیاوازیی نێوان پێداچوونەوەکان

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