Zum Inhalt springen

„Benutzer:Sarang/common.js“ – Versionsunterschied

aus Wikipedia, der freien Enzyklopädie
Inhalt gelöscht Inhalt hinzugefügt
K test
Jon (WMF) (Diskussion | Beiträge)
maintenance: more info phab:T72470
 
Zeile 1: Zeile 1:
if (wgNamespaceNumber == 6) addOnloadHook(function () {
if (mw.config.get('wgNamespaceNumber') === 6) $(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);
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");
mw.util.addPortletLink("p-cactions", url, "→C", "ca-tocommons", "Per Bot nach Commons verschieben");
});
});


if (wgNamespaceNumber === 6 && /SVG/i.test(wgTitle.slice(-3))) mw.util.addPortletLink(
if (mw.config.get('wgNamespaceNumber') === 6 && /SVG/i.test(mw.config.get('wgTitle').slice(-3))) mw.util.addPortletLink(
'p-cactions', 'http://validator.w3.org/check?uri='+'http:'+wgServer+mw.util.getUrl('Special:Filepath/'+wgTitle)+'&ss=1#source',
'p-cactions', 'http://validator.w3.org/check?uri='+'http:'+mw.config.get('wgServer')+mw.util.getUrl('Special:Filepath/'+mw.config.get('wgTitle'))+'&ss=1#source',
'Valid SVG?', 't-validSVG', 'W3C-Validator');
'Valid SVG?', 't-validSVG', 'W3C-Validator');

Aktuelle Version vom 29. August 2021, 18:16 Uhr

 if (mw.config.get('wgNamespaceNumber') === 6) $(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);
    mw.util.addPortletLink("p-cactions", url, "→C", "ca-tocommons", "Per Bot nach Commons verschieben");
 });

if (mw.config.get('wgNamespaceNumber') === 6 && /SVG/i.test(mw.config.get('wgTitle').slice(-3))) mw.util.addPortletLink(
	'p-cactions', 'http://validator.w3.org/check?uri='+'http:'+mw.config.get('wgServer')+mw.util.getUrl('Special:Filepath/'+mw.config.get('wgTitle'))+'&ss=1#source',
	'Valid SVG?', 't-validSVG', 'W3C-Validator');