FANDOM


Vorlagen-Dokumentation (Für die oben gezeigte Vorlage, manchmal unsichtbar oder versteckt.)

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

requiredIcon required
<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>.
requiredIcon required
<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.
optionalIcon optional
(default: ",")
sep1
The character or string with which abbreviations are separated in <unnamed 1>.
optionalIcon optional
(default: ",")
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".

Dokumentation transkludiert aus Vorlage:Abbcontains/doc.
Nutzung von Community-Inhalten gemäß CC-BY-SA , sofern nicht anders angegeben.