Vorlage:Switchversion/Dokumentation

Aus Terraria Wiki
Wechseln zu: Navigation, Suche
Important.svg Diese Seite ist nicht oder unvollständig übersetzt.
Hilf mit, indem du den Text übersetzt und anschließend diesen Hinweis entfernst. Dies entfernt diese Seite auch aus der Liste von Seiten mit unzureichender Übersetzung.

An all-in-one template for display Switch version link/text.

When a simple icon isn't enough, used to mark content as 'Switch Only' within a sentence or paragraph. (see Template:Exclusive to mark Switch exclusive pages or sections)

The "short" parameter value can be used to display "Switch" rather than "Switch version".

Usage[Quelltext bearbeiten]

{{Switch version|MODE|nl/nolink=y|short=y|glue= |t=display text}}

unnamed parameter 1

Output mode, can be icon/text/short:

  • icon: output icon only.
  • text: output text only.
  • short: output icon and short text.
nl/nolink=y/yes

Only output icon and/or text, don't make them be links.

short=y/yes

Output short text. {{Switch version|short=y}} has the same effect as {{Switch version|short}}

t=display text

Customize text. Will override short=y, have no effect when mode=icon.

glue=

Customize the glue text between icon and text. default is  

size, width, height, scale, small

Customize icon display, see {{icon}} for detail.

example[Quelltext bearbeiten]

code output note
{{Switch version}} Switchversion Switchversion
{{Switch version|icon}} Switchversion same as {{icon|switch}}
{{Switch version|text}} Switchversion
{{Switch version|short}} Switchversion Switch
{{Switch version|text|short=y}} Switch
{{Switch version|short=y}} Switchversion Switch same as {{Switch version|short}}
{{Switch version|t=sometext}} Switchversion sometext customize display text
{{Switch version|nl=y}} Switchversion Switchversion No link.
{{Switch version|text|nl=y}} Switchversion No link.
{{Switch version|short|nl=y}} Switchversion Switch No link.
{{Switch version|glue=-}} Switchversion-Switchversion
{{Switch version|scale=2}} Switchversion Switchversion see {{icon}}
{{Switch version|icon|small=y}} Switchversion see {{icon}}