×
Einen neuen Artikel erstellen
Schreibe den Seitennamen hierhin:
Wir haben derzeit 9.055 Artikel auf Vaultpedia. Gib deinen Artikelnamen oberhalb von oder klicke auf einen der unten stehenden Titel und beginne zu schreiben! ein



    Vaultpedia
    9.055Artikel
    Version vom 27. Juni 2011, 15:03 Uhr von Alessio79 (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „<noinclude>{{Dokumentationsseite}}</noinclude> Template to check whether any member of a set of game abbrevations (used by e.g. {{tl|Abb}} is part of another set …“)
    (Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
    Tritt unserem Discord bei und informiere dich auf unserem Twitter-Kanal über die aktuellsten Themen rund um Fallout!

    Template to check whether any member of a set of game abbrevations (used by e.g. {{Abb}} is part of another set of abbreviations. Returns "1" if that is the case and an empty string otherwise.

    Hilfs-Vorlage für Vorlage:Infobox.

    Benutzung

    {{abbcontains|set of abbrevations|abbrevation(s) to check for}}

    Parameter

    Erforderlich
    <unnamed 1>
    The set of abbreviations of which you would like to know whether it contains the abbreviation(s) specified in <unnamed 2>. There is no limit to the number of abbreviations in <unnamed 1>.
    Erforderlich
    <unnamed 2>
    The abbreviation(s) of which you would like to know whether it/they are contained in <unnamed 1>. Up to 10 abbreviations can be specified.
    Optional
    (Standard: ",")
    sep1
    The character or string with which abbreviations are separated in <unnamed 1>.
    Optional
    (Standard: ",")
    sep2
    The character or string with which abbreviations are separated in <unnamed 1>.

    Beipiele

    Einfach

    {{abbcontains|FO1, FO2, FO3|FO3}}

    returns "1" because FO3 is among the abbreviations in the first set.

    {{abbcontains|FO1, FO2, FO3|FNV}}

    returns "" (an empty string) because FNV is not among the abbreviations in the first set.

    Checking for multiple abbrevations

    {{abbcontains|FO1, FO2, FO3|FO2, FO3}}

    returns "1" because both FO2 and FO3 are among the abbreviations in the first set.

    {{abbcontains|FO1, FO2, FO3|FO3, FOT}}

    returns "1" because FO3 is among the abbreviations in the first set.

    {{abbcontains|FO1, FO2, FO3|FOT, FOBOS}}

    returns "" (an empty string) because neither "FOT" nor "FOBOS" are among the abbreviations in the first set.

    Non-standard separators

    {{abbcontains|FO1-FO2-FO3|FO3;FNV|sep1=-|sep2=;}}

    returns "1".