MediaWiki:Gadget-Message-names.js: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(Created page with "→* 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' ); });") |
No edit summary Tag: Reverted |
||
Line 4: | Line 4: | ||
*/ |
*/ |
||
$(function() { |
$(function() { |
||
mw.util.addPortletLink( |
mw.mw.util.addPortletLink( |
||
'p-tb', |
'p-tb', |
||
location.href.replace( location.hash, '' ) + ( location.search ? '&' : '?' ) + 'uselang=qqx', |
location.href.replace( location.hash, '' ) + ( location.search ? '&' : '?' ) + 'uselang=qqx', |
Revision as of 00:10, 17 October 2024
/*
* 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.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'
);
});