MediaWiki:Gadget-Message-names.js: Difference between revisions

no edit summary
No edit summary
Tag: Manual revert
No edit summary
 
Line 1:
"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');
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'
);
});