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

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