MediaWiki:Gadget-Message-names.js: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
No edit summary Tag: Reverted |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
"use strict"; |
|||
/* |
/* |
||
* Add a toolboox link to display the current page with MediaWiki message names replacing their text |
* Add a toolboox link to display the current page with MediaWiki message names replacing their text |
||
* Adapted from https://en.wikipedia.org/wiki/MediaWiki:Gadget-ShowMessageNames.js |
* Adapted from https://en.wikipedia.org/wiki/MediaWiki:Gadget-ShowMessageNames.js |
||
*/ |
*/ |
||
$(function() { |
$(function () { |
||
mw.util.addPortletLink('p-tb', location.href.replace(location.hash, '') + (location.search ? '&' : '?') + 'uselang=qqx', 'Message names', 't-messagenames', 'Display the current page with MediaWiki message names replacing their text'); |
|||
mw.mw.util.addPortletLink( |
|||
'p-tb', |
|||
location.href.replace( location.hash, '' ) + ( location.search ? '&' : '?' ) + 'uselang=qqx', |
|||
'Message names', |
|||
't-messagenames', |
|||
'Display the current page with MediaWiki message names replacing their text' |
|||
); |
|||
}); |
}); |
Latest revision as of 12:06, 20 October 2024
"use strict";
/*
* Add a toolboox link to display the current page with MediaWiki message names replacing their text
* Adapted from https://en.wikipedia.org/wiki/MediaWiki:Gadget-ShowMessageNames.js
*/
$(function () {
mw.util.addPortletLink('p-tb', location.href.replace(location.hash, '') + (location.search ? '&' : '?') + 'uselang=qqx', 'Message names', 't-messagenames', 'Display the current page with MediaWiki message names replacing their text');
});