„Benutzer:Sarang/common.js“ – Versionsunterschied
Erscheinungsbild
Inhalt gelöscht Inhalt hinzugefügt
Sarang (Diskussion | Beiträge) test |
Sarang (Diskussion | Beiträge) K validator |
||
Zeile 3: | Zeile 3: | ||
addPortletLink("p-cactions", url, "→C", "ca-tocommons", "Per Bot nach Commons verschieben"); |
addPortletLink("p-cactions", url, "→C", "ca-tocommons", "Per Bot nach Commons verschieben"); |
||
}); |
}); |
||
if (wgNamespaceNumber === 6 && /SVG/i.test(wgTitle.slice(-3))) mw.util.addPortletLink( |
|||
'p-cactions', 'http://validator.w3.org/check?uri='+'http:'+wgServer+mw.util.getUrl('Special:Filepath/'+wgTitle), |
|||
'Valid SVG?', 't-validSVG', 'W3C-Validator'); |
Version vom 7. August 2014, 18:11 Uhr
if (wgNamespaceNumber == 6) addOnloadHook(function () {
var url = "//toolserver.org/~magnus/commonshelper.php?interface=de&language=de&project=wikipedia&commonsense=1&remove_categories=1&tusc_user=Sarang&reallydirectupload=1&image=" + encodeURIComponent(wgTitle);
addPortletLink("p-cactions", url, "→C", "ca-tocommons", "Per Bot nach Commons verschieben");
});
if (wgNamespaceNumber === 6 && /SVG/i.test(wgTitle.slice(-3))) mw.util.addPortletLink(
'p-cactions', 'http://validator.w3.org/check?uri='+'http:'+wgServer+mw.util.getUrl('Special:Filepath/'+wgTitle),
'Valid SVG?', 't-validSVG', 'W3C-Validator');