Zum Inhalt springen

„Benutzer:Sarang/common.js“ – Versionsunterschied

aus Wikipedia, der freien Enzyklopädie
Inhalt gelöscht Inhalt hinzugefügt
test
 
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');