Hinweis: Leere nach dem Veröffentlichen den Browser-Cache, um die Änderungen sehen zu können.

  • Firefox/Safari: Umschalttaste drücken und gleichzeitig Aktualisieren anklicken oder entweder Strg+F5 oder Strg+R (⌘+R auf dem Mac) drücken
  • Google Chrome: Umschalttaste+Strg+R (⌘+Umschalttaste+R auf dem Mac) drücken
  • Edge: Strg+F5 drücken oder Strg drücken und gleichzeitig Aktualisieren anklicken
// Teilweise von https://de.wikipedia.org/wiki/Benutzer:TMg/common.js übernommen
var autoFormatTemplates = [
  { name:   'Infobox Gemeinde in Deutschland',
    format: '| _________________ = _\n'
  },
  { name:   'Infobox Fußballklub',
    format: '| _____________ = _\n',
    parameters: {
            "skin1": "pattern_b1",
            "skin_be1": "pattern_la1",
            "skin_bd1": "pattern_ra1",
            "skin_calção1": "pattern_sh1",
            "skin_meia1": "pattern_so1",
            "braçoesquerdo1": "leftarm1",
            "corpo1": "body1",
            "braçodireito1": "rightarm1",
            "calções1": "shorts1",
            "meias1": "socks1",
            
            "skin2": "pattern_b2",
            "skin_be2": "pattern_la2",
            "skin_bd2": "pattern_ra2",
            "skin_calção2": "pattern_sh2",
            "skin_meia2": "pattern_so2",
            "braçoesquerdo2": "leftarm2",
            "corpo2": "body2",
            "braçodireito2": "rightarm2",
            "calções2": "shorts2",
            "meias2": "socks2",
            
            "skin3": "pattern_b3",
            "skin_be3": "pattern_la3",
            "skin_bd3": "pattern_ra3",
            "skin_calção3": "pattern_sh3",
            "skin_meia3": "pattern_so3",
            "braçoesquerdo3": "leftarm3",
            "corpo3": "body3",
            "braçodireito3": "rightarm3",
            "calções3": "shorts3",
            "meias3": "socks3",
            
            "trama_izq1": "pattern_la1",
            "trama_cuerpo1": "pattern_b1",
            "trama_der1": "pattern_ra1",
            "trama_pantalón1": "pattern_sh1",
            "trama_medias1": "pattern_so1",
            "color_izq1": "leftarm1",
            "color_cuerpo1": "body1",
            "color_der1": "rightarm1",
            "color_pantalón1": "shorts1",
            "color_medias1": "socks1",
            
            "trama_izq2": "pattern_la2",
            "trama_cuerpo2": "pattern_b2",
            "trama_der2": "pattern_ra2",
            "trama_pantalón2": "pattern_sh2",
            "trama_medias2": "pattern_so2",
            "color_izq2": "leftarm2",
            "color_cuerpo2": "body2",
            "color_der2": "rightarm2",
            "color_pantalón2": "shorts2",
            "color_medias2": "socks2",
            
            "trama_izq3": "pattern_la3",
            "trama_cuerpo3": "pattern_b3",
            "trama_der3": "pattern_ra3",
            "trama_pantalón3": "pattern_sh3",
            "trama_medias3": "pattern_so3",
            "color_izq3": "leftarm3",
            "color_cuerpo3": "body3",
            "color_der3": "rightarm3",
            "color_pantalón3": "shorts3",
            "color_medias3": "socks3",
            
            "pattern_s1": "pattern_so1",
            "pattern_s2": "pattern_so2",
            "pattern_s3": "pattern_so3"
            
    }
  },
  { name:   'Infobox Fußballunternehmen',
    format: '| _________________________ = _\n',
    parameters: {
            "skin1": "pattern_b1",
            "skin_be1": "pattern_la1",
            "skin_bd1": "pattern_ra1",
            "skin_calção1": "pattern_sh1",
            "skin_meia1": "pattern_so1",
            "braçoesquerdo1": "leftarm1",
            "corpo1": "body1",
            "braçodireito1": "rightarm1",
            "calções1": "shorts1",
            "meias1": "socks1",
            
            "skin2": "pattern_b2",
            "skin_be2": "pattern_la2",
            "skin_bd2": "pattern_ra2",
            "skin_calção2": "pattern_sh2",
            "skin_meia2": "pattern_so2",
            "braçoesquerdo2": "leftarm2",
            "corpo2": "body2",
            "braçodireito2": "rightarm2",
            "calções2": "shorts2",
            "meias2": "socks2",
            
            "skin3": "pattern_b3",
            "skin_be3": "pattern_la3",
            "skin_bd3": "pattern_ra3",
            "skin_calção3": "pattern_sh3",
            "skin_meia3": "pattern_so3",
            "braçoesquerdo3": "leftarm3",
            "corpo3": "body3",
            "braçodireito3": "rightarm3",
            "calções3": "shorts3",
            "meias3": "socks3",
            
            "trama_izq1": "pattern_la1",
            "trama_cuerpo1": "pattern_b1",
            "trama_der1": "pattern_ra1",
            "trama_pantalón1": "pattern_sh1",
            "trama_medias1": "pattern_so1",
            "color_izq1": "leftarm1",
            "color_cuerpo1": "body1",
            "color_der1": "rightarm1",
            "color_pantalón1": "shorts1",
            "color_medias1": "socks1",
            
            "trama_izq2": "pattern_la2",
            "trama_cuerpo2": "pattern_b2",
            "trama_der2": "pattern_ra2",
            "trama_pantalón2": "pattern_sh2",
            "trama_medias2": "pattern_so2",
            "color_izq2": "leftarm2",
            "color_cuerpo2": "body2",
            "color_der2": "rightarm2",
            "color_pantalón2": "shorts2",
            "color_medias2": "socks2",
            
            "trama_izq3": "pattern_la3",
            "trama_cuerpo3": "pattern_b3",
            "trama_der3": "pattern_ra3",
            "trama_pantalón3": "pattern_sh3",
            "trama_medias3": "pattern_so3",
            "color_izq3": "leftarm3",
            "color_cuerpo3": "body3",
            "color_der3": "rightarm3",
            "color_pantalón3": "shorts3",
            "color_medias3": "socks3",
            
            "pattern_s1": "pattern_so1",
            "pattern_s2": "pattern_so2",
            "pattern_s3": "pattern_so3"
    }
  },
  { name:   'Infobox Band',
    format: '| ________________ = _\n'
  },
  { name:   'Infobox Fußballliga',
    format: '| ___________________ = _\n'
  },
  { name:   'Infobox Fußballnationalmannschaft',
    format: '| ________________ = _\n',
    parameters: {
            "skin1": "pattern_b1",
            "skin_be1": "pattern_la1",
            "skin_bd1": "pattern_ra1",
            "skin_calção1": "pattern_sh1",
            "skin_meia1": "pattern_so1",
            "braçoesquerdo1": "leftarm1",
            "corpo1": "body1",
            "braçodireito1": "rightarm1",
            "calções1": "shorts1",
            "meias1": "socks1",
            
            "skin2": "pattern_b2",
            "skin_be2": "pattern_la2",
            "skin_bd2": "pattern_ra2",
            "skin_calção2": "pattern_sh2",
            "skin_meia2": "pattern_so2",
            "braçoesquerdo2": "leftarm2",
            "corpo2": "body2",
            "braçodireito2": "rightarm2",
            "calções2": "shorts2",
            "meias2": "socks2",
            
            "skin3": "pattern_b3",
            "skin_be3": "pattern_la3",
            "skin_bd3": "pattern_ra3",
            "skin_calção3": "pattern_sh3",
            "skin_meia3": "pattern_so3",
            "braçoesquerdo3": "leftarm3",
            "corpo3": "body3",
            "braçodireito3": "rightarm3",
            "calções3": "shorts3",
            "meias3": "socks3",
            
            "trama_izq1": "pattern_la1",
            "trama_cuerpo1": "pattern_b1",
            "trama_der1": "pattern_ra1",
            "trama_pantalón1": "pattern_sh1",
            "trama_medias1": "pattern_so1",
            "color_izq1": "leftarm1",
            "color_cuerpo1": "body1",
            "color_der1": "rightarm1",
            "color_pantalón1": "shorts1",
            "color_medias1": "socks1",
            
            "trama_izq2": "pattern_la2",
            "trama_cuerpo2": "pattern_b2",
            "trama_der2": "pattern_ra2",
            "trama_pantalón2": "pattern_sh2",
            "trama_medias2": "pattern_so2",
            "color_izq2": "leftarm2",
            "color_cuerpo2": "body2",
            "color_der2": "rightarm2",
            "color_pantalón2": "shorts2",
            "color_medias2": "socks2",
            
            "trama_izq3": "pattern_la3",
            "trama_cuerpo3": "pattern_b3",
            "trama_der3": "pattern_ra3",
            "trama_pantalón3": "pattern_sh3",
            "trama_medias3": "pattern_so3",
            "color_izq3": "leftarm3",
            "color_cuerpo3": "body3",
            "color_der3": "rightarm3",
            "color_pantalón3": "shorts3",
            "color_medias3": "socks3",
            
            "pattern_s1": "pattern_so1",
            "pattern_s2": "pattern_so2",
            "pattern_s3": "pattern_so3"
    }
  },
  { name:   'Infobox Fußballspieler',
    format: '| __________________________ = _\n'
  },
  { name:   'Infobox Fußballsaison',
    format: '| _____________________________ = _\n'
  },
  { name:   'Infobox Basketballspieler',
    format: '| __________________________ = _\n'
  },
 { name:   'Episodenlistentabelle',
    format: '| _____________________ = _\n'
  },
 { name:   'Episodenlisteneintrag',
    format: '| ______ = _\n'
  },
 { name:   'Episodenlisteneintrag2',
    format: '| ______ = _\n'
  },
  { name:   'Titelliste',
    format: '| _____________ = _\n'
  },
  { name:   'Infobox Landkreis',
    format: '| __________________ = _\n',
    parameters: {
            'Bürgermeister': 'Landrat',
            'Direktionsbezirk': false
    }
  },
{ name:   "Infobox Fernsehsendung",
    format: "| ______________________ = _\n",
    parameters: {
            "ID": "Bild",
            "DT": "Deutscher Titel",
            "OT": "Originaltitel",
            "PL": "Produktionsland",
            "EJ": "Erstausstrahlungsjahre",
            "PJ": "Produktionsjahre",
            "PRO": "Produzent",
            "PRODUKTIONSUNTERNEHMEN": "Produktionsunternehmen",
            "LEN": "Länge",
            "SONG": "Titellied",
            "IDEE": "Idee",
            "GENRE": "Genre",
            "EAS": "Erstausstrahlung",
            "SEN": "Sender",
            "EASDE": "Erstausstrahlung_DE",
            "SENDE": "Sender_DE",
            "EA": "Episoden",
            "EL": "Episodenliste",
            "ST": "Staffeln",
            "OS": "Originalsprache",
            "MUSIK": "Musik",
            "KAMERA": "Kamera",
            "RG": "Regie",
            "DB": "Drehbuch",
            "DS": "Besetzung",
            "NDS": "Nebendarsteller",
            "SYN": "Synchronisation",
            "REGELMAESSIGKEIT": "Regelmäßigkeit",
            "MODERATION": "Moderation"
    }
  },
  { name:   "Infobox Film",
    format: "| ________________ = _\n",
    parameters: {
            // Veraltete Parameter
            "PJ": "Erscheinungsjahr",
            "AF": "FSK",
            "BMUKK": "JMK",
            // Umwandlung der Kurz- in die Langversion
            "BILD": "Bild",
            "DT": "Deutscher Titel",
            "OT": "Originaltitel",
            "PL": "Produktionsland",
            "EJ": "Erscheinungsjahr",
            "LEN": "Länge",
            "OS": "Originalsprache",
            "Altersfreigabe": "FSK",
            "REG": "Regie",
            "DRB": "Drehbuch",
            "PRO": "Produzent",
            "MUSIK": "Musik",
            "KAMERA": "Kamera",
            "SCHNITT": "Schnitt",
            "DS": "Besetzung",
            "SYN": "Synchronisation"
    }
  },
  { name:   "Infobox Fluss",
    format: "| _= _\n",
    parameters: {
            "ABFLUSSMENGE": false,
            "BEKANNTE BRÜCKEN": false,
            "DGWK": false,
            "QUELLE_LAT_MIN": false,
            "QUELLE_LAT_SEK": false,
            "QUELLE_LONG_MIN": false,
            "QUELLE_LONG_SEK": false
    }
  },
  { name:   "Infobox Gemeinde in Deutschland",
    format: "|_________________ = _\n",
    parameters: {
            "Wappengröße": false,
            "Direktionsbezirk": false,
            "PLZ-alt": false
    }
  },
  { name:   "Infobox Gemeindeverband in Deutschland",
    format: "|_________________ = _\n",
    parameters: {
            "Wappengröße": false,
            "PLZ": false,
            "PLZ-alt": false,
            "Vorwahl": false,
            "Bürgermeister": "Organwalter",
            "Bürgermeistertitel": "Organwaltertitel"
    }
  },
  { name:   "Infobox Handballer",
    format: "| ___________________ = _\n"
  },
  { name:   "Infobox Landkreis",
    format: "|__________________ = _\n"
  },
  { name:   "Infobox Militärische Einheit",
    format: "|_______________################### = _\n"
  },
  { name:   "Infobox Ort",
    format: "|_____________ = _\n"
  },
  { name:   "Infobox Ort in den Niederlanden",
    format: "| __________________ = _\n"
  },
  { name:   "Infobox Ort in der Schweiz",
    format: "|_ = _\n"
  },
  { name:   "Infobox Ort in Südafrika",
    format: "|___________ = _\n"
  },
  { name:   "Infobox Phon",
    format: "|_=_\n",
    parameters: {
            "Audio-Anzeige": false,
            "Audio1-Anzeige": false,
            "Audio2-Anzeige": false,
            "Audio3-Anzeige": false,
            "Audio4-Anzeige": false,
            "Audio5-Anzeige": false,
            "Audio6-Anzeige": false,
            "Audio7-Anzeige": false,
            "Audio8-Anzeige": false,
            "Audio9-Anzeige": false,
            "Audio10-Anzeige": false,
            "Audio11-Anzeige": false,
            "Audio12-Anzeige": false,
            "Audio13-Anzeige": false,
            "Audio14-Anzeige": false,
            "Audio15-Anzeige": false,
            "Audio16-Anzeige": false,
            "Audio17-Anzeige": false,
            "Audio18-Anzeige": false,
            "Audio19-Anzeige": false,
            "Audio20-Anzeige": false
    }
  },
  { name:   "Infobox Publikation",
    format: "| __________________ = _\n"
  },
  { name:   "Infobox Software",
    format: "| __________________############### = _\n"
  },
  { name:   "Infobox Sprache",
    format: "| ______________####### = _\n"
  },
  { name:   "Infobox Staat",
    format: "|________________ = _\n"
  },
  { name:   "Infobox Unternehmen",
    format: "| ________________ = _\n"
  },
  { name:   "Infobox Computer- und Videospiel",
    format: "| _______________ = _\n"
  },
  { name:   "Infobox Website",
    format: "| _______________ = _\n"
  },
  { name:   "Information",
    format: "|________________ = _\n",
    parameters: {
            "Andere Version": "Andere Versionen",
            "Anmerkung": "Anmerkungen",
            "description": "Beschreibung",
            "Description": "Beschreibung",
            "date": "Datum",
            "Date": "Datum",
            "source": "Quelle",
            "Source": "Quelle",
            "author": "Urheber",
            "Author": "Urheber",
            "permission": "Genehmigung",
            "Permission": "Genehmigung",
            "other_versions": "Andere Versionen",
            "Other_versions": "Andere Versionen"
    }
  },
  { name:   "Normdaten",
    format: "|_=_"
  },
  { name:   "Personendaten",
    format: "|_=_\n",
    parameters: {
            "ALTERNATIVNAME": "ALTERNATIVNAMEN",
            "Name": "NAME",
            "Alternativnamen": "ALTERNATIVNAMEN",
            "Kurzbeschreibung": "KURZBESCHREIBUNG",
            "Geburtsdatum": "GEBURTSDATUM",
            "Geburtsort": "GEBURTSORT",
            "Sterbedatum": "STERBEDATUM",
            "Sterbeort": "STERBEORT"
    }
  },
  { name:   "Übersetzung",
    format: "|__________ = _\n",
    parameters: {
            "VERSION": "REVID",
            "FREMDVERSION": "FREMDREVID"
    }
  },
  { name:   'Internetquelle',
    format:' |_=_'
  },
  { name:   'Infobox Spiel',
    format: '| _________________ = _\n'
  },
  { name:   "Infobox Basketballfranchise Nordamerika",
   format: '| ___________________ = _\n',
    parameters: {
            "h_pattern_b": "pattern_b1",
            "h_pattern_s": "pattern_sh1",
            "h_body": "body1",
            "h_shorts": "shorts1",
            
            "a_pattern_b": "pattern_b2",
            "a_pattern_s": "pattern_sh2",
            "a_body": "body2",
            "a_shorts": "shorts2",
            
            "3_pattern_b": "pattern_b3",
            "3_pattern_s": "pattern_sh3",
            "3_body": "body3",
            "3_shorts": "shorts3",
            
            "1_pattern_b": "pattern_b1",
            "1_pattern_s": "pattern_sh1",
            
            "2_pattern_b": "pattern_b2",
            "2_pattern_s": "pattern_sh2"
    }
  },
   { name:   "Infobox Basketballmannschaft",
   format: '| ___________ = _\n',
    parameters: {
            "h_pattern_b": "pattern_b1",
            "h_pattern_s": "pattern_sh1",
            "h_body": "body1",
            "h_shorts": "shorts1",
            
            "a_pattern_b": "pattern_b2",
            "a_pattern_s": "pattern_sh2",
            "a_body": "body2",
            "a_shorts": "shorts2",
            
            "3_pattern_b": "pattern_b3",
            "3_pattern_s": "pattern_sh3",
            "3_body": "body3",
            "3_shorts": "shorts3"
    }
  }
];

// Tippfehler
var autoFormatReplacements = [
	[ /\[\[Captain \(association football\)\|captain]]/gi, '{{Kapitän}}' ],
	['[cz]ir[ck]a', 'etwa'],
	['daß', 'dass'], /* problematisch in Zitaten */
	['d.h.', 'd. h.'],
	['e.V.', 'e. V.'],
	['o.ä.', 'o. ä.'],
	['u.v.a.m.', 'u. v. a. m.'],
	['u.v.a.', 'u. v. a.'], /* problematisch bei „u.v.a.m.“ */
	['u.a.m.', 'u. a. m.'],
	['u.a.', 'u. a.'], /* problematisch bei „und andere“/„unter anderem“/„u.a.m.“ */
	['u.ä.', 'u. ä.'],
	['ugs.', 'umgangssprachlich'],
	['v.a.', 'vor allem'], /* problematisch bei „u.v.a.“/„u.v.a.m.“ */
	['z.B.', 'z. B.'],
	['zum Beispiel', 'zum Beispiel'],
	[/http\w*:\/+\w*\.*bibelwissenschaft\.de\/[\w\/]*wibilex\/das-bibellexikon\/details\/quelle\/WIBI\/[\w\/]*referenz\/(\d+)[\w\/#]*/g,
		'{\{WiBiLex|$1|Autoren=|Zugriffsdatum=' + (new Date().getDate()) + '. Mai 2013}}'],
	/* [[Vorlage:Übersetzung]] */
	[/(\{\{Übersetzung[^{}]*\|\s*REVID\s*=\s*)[^{|}]*\/(\d+)\S*/gi, '$1$2'],
	[/(\{\{Übersetzung[^{}]*)(\|\s*FREMD)REVID\s*=\s*[^{|}]*\/(\d+)\S* +([^\n]+)/gi, '$1$2REVID = $3\n$2DATUM = $4'],
	/* [[Vorlage:Denkmalliste Sachsen Tabellenzeile]] */
	[/^\|(?:Adresse|Datierung)-sort *=\n+/gm, ''],
	[/^(\| *(?:NS|EW) *= *)(\d+\.\d{7,})/gm, function($0, $1, $2) {
		return $1 + Math.round(parseFloat($2) * 1000000) / 1000000;
	}],
	[/= *&nbs$/gm, '='],
	/* [[Vorlage:Infobox Nationalpark]] */
	[/\{\{\s*Infobox[\s_]+Nationalpark[\s\S]*\|\s*img[2-9][^{}]*\}\}/gi, function($0) {
		var re = /\s*\|\s*(img[2-9])\s*=\s*([^|]*?)\s*\|\s*\1_name\s*=\s*([^|]*?)\s*([|}][\s\S]*)$/i;
		while (re.test($0)) $0 = $0.replace(re, '\n$4\n[[Datei:$2|mini|$3]]');
		return $0;
	}],
	/* Merge duplicate references */
	[/<ref([^>]*)>([^<]*?)<\/ref>([\s\S]*?)<ref([^>]*)>\2<\/ref>/g, function($0, $1, $2, $3, $4) {
		$1 = $1 || $4 || ' name="' + $2.replace(/http\S*/g, '').replace(/\W+/g, '').slice(0, 40) + '"';
		return '<ref' + $1 + '>' + $2 + '</ref>' + $3 + '<ref' + $1 + ' />';
	}]
];

importScript("user:lustiger_seth/unsigned.js");

importScript("user:DerHexer/fixlinks.js");

mw.loader.load('//de.wikipedia.org/w/index.php?title=Benutzer:APPER/WikiHistory.js&action=raw&ctype=text/javascript');

mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:WikiBayer/userinfo.js&action=raw&ctype=text/javascript');