Vorlage:Exclusive icons/Dokumentation

Aus Terraria Wiki
Zur Navigation springen Zur Suche springen

Zeigt anklickbare Symbole für die Plattformen, auf denen die Entität verfügbar ist. Um einen Link mit exklusiven Icons anzuzeigen, kann {{exclusive icon link}} verwendet werden.

{{eicons/options}} verändert die Standardwerte für bestimmte Parameter.

Verwendung

{{ eicons | <Name der Entität> | small = y/yes/j/ja | link = y/yes/j/ja | invert = y/yes/j/ja | not = <Name der Entität> | <Plattform-Parameter> }}

1. unbenannter Parameter
Name der Entität (Gegenstand, Gegner, Event, Biom, Patchnummer, ...). Deutsche Begriffe, die hier eingegeben werden, müssen im Wörterbuch vorhanden sein.
small
Zeigt alle Symbole in kleinerer Version an.
link
Verlinkt Plattform-Symbole zu ihren entsprechenden Versionsseiten. Aus Performancegründen sind sie standardmäßig nicht verlinkt.
invert
Zeigt die gegenteiligen Exklusivitätssymbole an. Wichtig: Der Sensor der japanischen Konsolenversion wird damit deaktiviert.
not
Name of an entity whose eicons are to be subtracted from the main eicons. Note that this is evaluated after invert, i.e. the eicons of the main entity are inverted first, and then the eicons of the entity from this parameter are subtracted from that.
<Plattform-Parameter>
Optionale, manuelle Überschreibungsoptionen. Wichtig: Diese werden nach invert und not evaluiert. Die folgenden Parameter stehen zur Verfügung:
  • desktop / dsk
  • console / cns
  • old-gen / oldgen / old
  • mobile / mbl
  • 3DS / 3ds
They can be set to either yes/y or no/n.

Beispiele

Code Result
{{eicons| 1.4.0.1 }} (Desktopversion, Konsolenversion und Mobilversion) (DCM)
{{eicons| 1.2.4.1 | not = 1.3.0.1 }} (Old-gen-Konsolenversion) (O)
{{eicons| Suspicious Looking Egg }} (3DS-Version) (3)
{{eicons| Suspicious Looking Egg | invert = 1 }} (Desktopversion, Konsolenversion, Old-gen-Konsolenversion und Mobilversion) (DCOM)
{{eicons| Suspicious Looking Egg | invert = 1 | small = 1 }} (Desktopversion, Konsolenversion, Old-gen-Konsolenversion und Mobilversion) (DCOM, small)
{{eicons| Soul of Blight }} (Old-gen-Konsolenversion und 3DS-Version) (O3)
{{eicons| Suspicious Looking Egg | small = 1 }} (3DS-Version) (3, small)
{{eicons| Easter }} (3DS-Version) (3)
{{eicons| Underground Desert }} (Desktopversion, Konsolenversion und Mobilversion) (DCM)
{{eicons| Flinx Staff }} (Desktopversion, Konsolenversion und Mobilversion) (DCM)
{{eicons| Traveling Merchant | not = Moon Lord }} (Old-gen-Konsolenversion) (O)
{{eicons| Traveling Merchant | invert = 1 | not = Moon Lord }} (3DS-Version) (3; not DCM3 because invert is evaluated before not)
{{eicons| Underground Desert | invert = 1 | not = Suspicious Looking Egg }} (Old-gen-Konsolenversion) (O)
{{#iferror:{{eicons| Work Bench }}}} (nothing, since Work Bench is on all versions, so it will output an error which is caught by {{#iferror:}})
{{eicons| Work Bench | mobile = 1 }} (Mobilversion) (M)
{{eicons| Work Bench | old-gen = 1 | 3ds = 1 }} (Old-gen-Konsolenversion und 3DS-Version) (O3)
{{eicons| Martian Work Bench | desktop = 0 | console = 0 }} (Mobilversion) (M)
{{eicons| desktop = 1 | console = 1 | old-gen = 1 | mobile = 1 }} (Desktopversion, Konsolenversion, Old-gen-Konsolenversion und Mobilversion) (DCOM)
{{eicons| japan = 1 }} (J)
{{eicons| japan = 1 | small = y}} (J)
{{item|Stone Block}} {{eicons| desktop = 1 | console = 1 | old-gen = 1 | mobile = 1 }} SteinblockSteinblock (Desktopversion, Konsolenversion, Old-gen-Konsolenversion und Mobilversion)

Change default options

This template supports options through {{options}} template. All valid options are listed below, see {{options}} for usage and other infomation.

See Template:eicons/initOptions for the initial options setting of this template.

NameAliasInitial ValueValue Mapping[1]Note
small(empty)yesy
ony
n(empty)
no(empty)
off(empty)
  1. Values with mapping will be stored and loaded as mapped value. Other values without mapping will be stored and loaded as-is.

Examples

Result Code Note
(Old-gen-Konsolenversion und 3DS-Version) {{eicons|Hallowed Key Mold}} Default
small = ; small = {{options/get|eicons|small}}; Get current setting
(Old-gen-Konsolenversion und 3DS-Version) {{options/set|eicons|small=y}}
{{eicons|Hallowed Key Mold}}
Turn on small icons
small = y; small = {{options/get|eicons|small}}; Get current setting
(Old-gen-Konsolenversion und 3DS-Version) {{options/reset|eicons}}
{{eicons|Hallowed Key Mold}}
Reset all options