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

From RuneRealm Wiki
Jump to navigation Jump to search
Content added Content deleted
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
Line 4: Line 4:
*/
*/
$(function() {
$(function() {
mw.mw.util.addPortletLink(
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 17:15, 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.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'
  );
});