מדיה ויקי:Gadget-browsertab.js: הבדלים בין גרסאות בדף
מראה
אין תקציר עריכה |
אין תקציר עריכה |
||
| שורה 10: | שורה 10: | ||
$(document) | $(document) | ||
.prop('title', data.expandtemplates.wikitext); | .prop('title', data.expandtemplates.wikitext); | ||
} ); | }); | ||
// dependencies=mediawiki.api | // dependencies=mediawiki.api | ||
גרסה מ־03:08, 29 בנובמבר 2021
var params = {
action: "expandtemplates",
text: "{{קיצור מרחב השם|" + mw.config.get('wgPageName').replaceAll('_', ' ') + "}}",
prop: "wikitext",
format: "json"
};
var api = new mw.Api();
api.get(params)
.done(function(data) {
$(document)
.prop('title', data.expandtemplates.wikitext);
});
// dependencies=mediawiki.api