Owl.png Wiki reading hard on the eyes? Try out our Dark Theme! Visit the preferences page while logged in and select Hydra Dark. Owl.png

Template:Exclusive icons

From Terraria Wiki
Jump to: navigation, search
Lua logo.svg
This template uses Module:Exclusive, a script written in the Lua programming language. Please see wikipedia:Lua and mw:Extension:Scribunto to learn more about 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 Template: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 | link = 0/1 | invert = 0/1 | not = <entity name> | <platform parameters> = 0/1 }}

ParameterDescriptionTypeStatus
Entity name1
Name of the entity (item, NPC, event, biome, patch number, etc.) for which the icons are to be displayed.
Linesuggested
Smaller iconssmall
Reduces the size of the icons. Useful when space is an issue, e.g. in infoboxes.
Auto value:
True (1)
Booleanoptional
Invert exclusivityinvert
Inverts the exclusivity, i.e. displays the opposite eicons. Note that this disables the Japanese Console version sensor.
Auto value:
True (1)
Booleanoptional
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.
Lineoptional
Desktop overridedesktop
dsk
Manually override the Desktop version exclusivity. Note that this evaluated after $invert and $not.
Booleanoptional
Console overrideconsole
cns
Manually override the Console version exclusivity. Note that this evaluated after $invert and $not.
Booleanoptional
Old-gen overrideold-gen
oldgen
old
Manually override the Old-gen console version exclusivity. Note that this evaluated after $invert and $not.
Booleanoptional
Mobile overridemobile
mbl
Manually override the Mobile version exclusivity. Note that this evaluated after $invert and $not.
Booleanoptional
3DS override3DS
3ds
Manually override the 3DS version exclusivity. Note that this evaluated after $invert and $not.
Booleanoptional
Japan overridejapan
jas
Manually override the Japanese Console version exclusivity. Note that this evaluated after $invert and $not.
Booleanoptional

Format: inline

Examples

{{eicons| 1.4.0.1 }} Desktop Version (D)
{{eicons| 1.3.0.1 | not = 1.4.0.1 }} Console VersionMobile Version (CM)
{{eicons| Suspicious Looking Egg }} 3DS Version (3)
{{eicons| Suspicious Looking Egg | invert = 1 }} Desktop, Console, Old-gen console, and Mobile Versions (DCOM)
{{eicons| Soul of Blight | link = 1 }} Old-gen console version3DS Version (O3) with link
{{eicons| Suspicious Looking Egg | small = 1 }} 3DS Version (3), small
{{eicons| Easter }} 3DS Version (3)
{{eicons| Underground Desert }} Desktop, Console, and Mobile Versions (DCM)
{{eicons| Crystal Work Bench }} Desktop VersionConsole Version (D)
{{eicons| Gold Butterfly }} Desktop, Console, and Mobile Versions (DCM)
{{eicons| Gold Butterfly | not = Crystal Work Bench }} Mobile Version (CM)
{{eicons| Gold Butterfly | invert = 1 | not = Crystal Work Bench }} Old-gen console version3DS Version (O3), not DO3 because invert is evaluated before not
{{eicons| Gold Butterfly | invert = 1 | not = Suspicious Looking Egg }} Old-gen console version (O)
{{eicons| 1.3.0.1 | not = 1.3.5 }} Mobile Version (CM)
{{eicons| Work Bench }} → (nothing, since Work Bench is on all versions)
{{eicons| Work Bench | mobile = 1 }} Mobile Version (M)
{{eicons| Work Bench | old-gen = 1 | 3ds = 1 }} Old-gen console version3DS Version (O3)
{{eicons| Martian Work Bench | desktop = 0 | console = 0 }} Mobile Version (M)
{{eicons| desktop = 1 | console = 1 | old-gen = 1 | mobile = 1 }} Desktop, Console, Old-gen console, and Mobile Versions (DCOM)
{{eicons| japan = 1 }} Japanese Console version (J)
{{item|Stone Block}} {{eicons| desktop = 1 | console = 1 | old-gen = 1 | mobile = 1 }} Stone BlockStone Block Desktop, Console, Old-gen console, and Mobile Versions

Change default options

You can use {{exclusive icons/options}} to set/get and reset some options' default values.

Usage

  • Set: {{exclusive icons/options|small=y|...}} or {{exclusive icons/options|set|small=y|...}}
  • Get: {{exclusive icons/options|get|small}}
  • Reset: {{exclusive icons/options|reset}} or {{exclusive icons/options|resetall}}
NOTE: In order to avoid unwanted influences, it is very important to reset options as soon as possible. Especially inside a template, you should reset options before the template ends.

All parameters:

unnamed parameter 1

Action. get or load means get the current value of an option, reset or resetall means reset all options to default values, other values (including none - it is recommended to use set for better readability) means set options' values.

unnamed Parameter 2

The name of the option which you want to get its value. Only valid when action is get. Can be any of the following: small

small/smallicons = y/yes/n/no

Only valid when action is set. Turn on/off reduced size for platform icons. See {{exclusive icons}}'s small parameter.

Examples

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