Plantilla:Exclusive icons

De Terraria Wiki
Ir a la navegación Ir a la búsqueda
This template uses Lua.
This template uses Módulo:Exclusive, a script written in the Lua programming language. To learn more about Lua, see Terraria Wiki:Lua.
This template is i18n-ready, which means it is easy to localize for different languages. Please see I18n & l10n for templates to learn more.
Template-info.svg Documentation The documentation below is transcluded from Plantilla:Exclusive icons/doc. (edit | history)

Displays the icons indicating the platforms for which an entity is available, "eicons" (from "exclusive icons") in short. For displaying a link with eicons, use {{exclusive icon link}}.

You can use {{eicons/options}} to change the default values of some parameters. See the relevant section below for details.

Usage

{{ eicons | <entity name> | small = 0/1 | invert = 0/1 | not = <entity name> | <platform parameters> = 0/1 }}

ParámetroDescripciónTipoEstado
Entity name1
Name of the entity (item, NPC, event, biome, patch number, etc.) for which the icons are to be displayed.
Línea
sugerido
Smaller iconssmall
Reduces the size of the icons. Useful when space is an issue, e.g. in infoboxes.
Valor automático:
True (1/y/yes)
Lógico
opcional
Invert exclusivityinvert
Inverts the exclusivity, i.e. displays the opposite eicons. Note that this disables the Japanese Console version sensor.
Valor automático:
True (1/y/yes)
Lógico
opcional
Subtract exclusivitynot
pagenot
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.
Línea
opcional
Desktop overridedesktop
dsk
Manually override the Desktop version exclusivity. Note that this evaluated after $invert and $not.
Lógico
opcional
Console overrideconsole
cns
Manually override the Console version exclusivity. Note that this evaluated after $invert and $not.
Lógico
opcional
Old-gen overrideold-gen
oldgen
old
Manually override the Old-gen console version exclusivity. Note that this evaluated after $invert and $not.
Lógico
opcional
Mobile overridemobile
mbl
Manually override the Mobile version exclusivity. Note that this evaluated after $invert and $not.
Lógico
opcional
3DS override3DS
3ds
Manually override the 3DS version exclusivity. Note that this evaluated after $invert and $not.
Lógico
opcional
Japan overridejapan
jas
Manually override the Japanese Console version exclusivity. Note that this evaluated after $invert and $not.
Lógico
opcional

Es preferible escribir los parámetros en una sola línea.

Examples

Code Result
{{eicons| 1.4.0.1 }} (DCM)
{{eicons| 1.2.4.1 | not = 1.3.0.1 }} (O)
{{eicons| Suspicious Looking Egg }} (3)
{{eicons| Suspicious Looking Egg | invert = 1 }} (DCOM)
{{eicons| Suspicious Looking Egg | invert = 1 | small = 1 }} (DCOM, small)
{{eicons| Soul of Blight }} (O3)
{{eicons| Suspicious Looking Egg | small = 1 }} (3, small)
{{eicons| Easter }} (3)
{{eicons| Underground Desert }} (DCM)
{{eicons| Flinx Staff }} (DCM)
{{eicons| Traveling Merchant | not = Moon Lord }} (O)
{{eicons| Traveling Merchant | invert = 1 | not = Moon Lord }} (3; not DCM3 because invert is evaluated before not)
{{eicons| Underground Desert | invert = 1 | not = Suspicious Looking Egg }} (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 }} (M)
{{eicons| Work Bench | old-gen = 1 | 3ds = 1 }} (O3)
{{eicons| Martian Work Bench | desktop = 0 | console = 0 }} (M)
{{eicons| desktop = 1 | console = 1 | old-gen = 1 | mobile = 1 }} (DCOM)
{{eicons| japan = 1 }} (J)
{{eicons| japan = 1 | small = y}} (J)
{{item|Stone Block}} {{eicons| desktop = 1 | console = 1 | old-gen = 1 | mobile = 1 }} Bloque de piedraBloque de piedra

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
{{eicons|Hallowed Key Mold}} Default
small = ; small = {{options/get|eicons|small}}; Get current setting
{{options/set|eicons|small=y}}
{{eicons|Hallowed Key Mold}}
Turn on small icons
small = y; small = {{options/get|eicons|small}}; Get current setting
{{options/reset|eicons}}
{{eicons|Hallowed Key Mold}}
Reset all options