×
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 26. Juli 2011, 17:48 Uhr von Alessio79 (Diskussion | Beiträge) (update)
    (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!

    Vorlage um Abkürzungen in Verbindungen zu mit dem Spiel spezifischen Übersicht-Seiten automatisch umzuwandeln.

    Hilfsvorlage für Vorlage:Infobox.

    Nutzung

    {{abblink|link=link target|name=link name|abbreviations}}

    By default, the template takes the parameters link, name and <unnamed 1> (which may contain up to 10 game abbreviations separated by ",") and creates a line with links to the respective page for each abbrevation, separated by "/". The last entry has name (or nothing if name has not been given) appended.

    Parameter

    Please note that if you do not specify any of the parameters, the template will return an empty string.

    Optional
    <unnamed 1>
    Game abbreviations; see {{abb}} for valid inputs. The abbreviations are "translated" into full game names. Multiple abbrevations should be separated by the delimiter specified with split by. Siehe unten for detailed behaviour in combination with the other parameters.
    Optional
    abbmode
    This is passed down directly to {{abb}}. Only valid input for that template's mode parameter will have any effect. The mode is only applied to the displayed string, and not to the link target.
    Optional
    link
    This is the second part of the link target (the first being the game name if given). For example, if you want the template to return links which point to the pages "Fallout weapons", "Fallout 2 weapons", "Fallout 3 weapons" and so forth, this would need to be "weapons". Siehe unten for detailed behaviour in combination with the other parameters.
    Optional
    (Standard: "default")
    mode
    This parameter specifies a display mode for the template output.

    Verfügbare Optionen:

    • default: name is only appended to the last displayed link.
    • fullnames: name is appended to every displayed link.
    Optional
    name
    This is the second part of the link name (the first being the game name if given), i.e. the string that is shown when looking at a page. For example, if you would like the displayed string to be "Fallout weapon", "Fallout 2 weapon", "Fallout 3 weapon" and so forth, this would need to be "weapon". Siehe unten for detailed behaviour in combination with the other parameters.
    Optional
    prefix, suffix
    Characters/strings which should be added to the beginning (prefix) or end (suffix) of each "section". These are not part of the link itself and can be used e.g. to produce a list instead of the usual single line. Note that spaces at the beginning or end of these strings need to be HTML encoded (& #032; without the space in between), and that you need to use {{!}} if you want to produce a |.
    Optional
    (Standard: "/")
    sep
    This is the character/string with which the "sections" are separated if you specify more than one abbreviation in <unnamed 1>. Note that spaces at the beginning or end of the string need to be HTML encoded (& #032; without the space in between), and that you need to use {{!}} if you want to produce a |.
    Optional
    (Standard: ",")
    split by
    This is the character/string which is used as a delimiter for multiple abbrevations in <unnamed 1>, i.e. the character/string which separates the individual abbrevations. Note that spaces at the beginning or end of the string need to be HTML encoded (& #032; without the space in between), and that using | is not recommended.

    Verhalten im Detail

    • First letter of the result's displayed part will always be uppercase.
    • Setting the first unnamed parameter to "none" results in only the translated version of "none" + "name" (if given) being shown without link.
    • For readability, the table below assumes that sep has not been specified and the default character / is being used.
    Parameters given Result
    link name unnamed (games) single game multiple games
    Ja Ja Ja [[game link|''game'' name]] [[game link|''game'']]/[[game link|''game'']]/[[game link|''game'' name]]
    Ja Ja Nein [[link|name]] [[link|name]]
    Ja Nein Ja [[game link|''game'' link]] [[game link|''game'']]/[[game link|''game'']]/[[game link|''game'']]
    Ja Nein Nein [[link|link]] [[link|link]]
    Nein Ja Ja [[game|''game'' name]] ''[[game]]''/''[[game]]''/[[game|''game'' name]]
    Nein Ja Nein name name/name/name
    Nein Nein Ja ''[[game]]'' ''[[game]]''/''[[game]]''/''[[game]]''
    Nein Nein Nein (nothing/empty) (nothing/empty)

    Beispiele

    {{abblink|link=Waffen|name=Waffe|FO3}}

    results in: Fallout 3 Waffe

    {{abblink|link=Waffen|FO3}}

    resultiert in: Fallout 3

    {{abblink|name=Waffe|FO3}}

    resultiert in: Fallout 3 Waffe

    {{abblink|link=Waffen|name=Waffe|none}}

    resultiert in: Erwähnt Waffe

    {{abblink|link=Waffen|name=Waffe|abbmode=short|FOBOS}}

    resultiert in: Fallout: BoS Waffe

    {{abblink|link=Waffen|name=Waffe|sep=, |FO1,FO3}}

    resultiert in: Fallout, Fallout 3 Waffe

    Technisches

    • Hilfsvorlage: {{Abb}}