„Melding:Gadget-purodha-name-conflict.js“: Munur á milli breytinga

Efni eytt Efni bætt við
m uppfærsla frá norsku wp
Oddurv (spjall | framlög)
m Tók aftur breytingar Snaevar (spjall), breytt til síðustu útgáfu Jóna Þórunn
Lína 1:
if (wgNamespaceNumber !== 2) return;{
(function(mw, $){
addOnloadHook( function (){
if (wgNamespaceNumber != 2) return;
$(var functionuser (){= wgTitle;
user = user.replace(/\/.*$/,'');
/* Add a link to one of the portlet menus on the page */
mw.util.addPortletLink(
/* id of the target portlet ("p-cactions", "p-personal", "p-navigation" or "p-tb") */
"p-tb",
/* link URL */
"http://tools.wikimedia.de/~purodha/sample/dbswithuser.php?uselang=en&usr=" + mw.util.wikiUrlencodeencodeURI(mw.config.get( 'wgTitle' )user),
/* link text (will be automatically lowercased by CSS for p-cactions in Monobook) */
"Nafnatól Purodha",
/* id of the new item, should be unique and preferably have the appropriate prefix ("ca-", "pt-", "n-" or "t-") */
"t-purodhakate-globalnameeditcounter",
/* text to show when hovering over the link, without accesskey suffix */
"Nafnaverkfæri Purodha til að leita að notandanafni á öllum verkefnum",
/* accesskey to activate this link (one character, try to avoid conflicts) */
null,
/* the DOM node before which the new item should be added, should be another item in the same list */
null
);
});
}
});
})(mediaWiki, jQuery);