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