Template:Exclusive icons

From Terraria Wiki
(Redirected from Template:Eicons)
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)

Returns 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.

Usage

{{ eicons | <entity name> | small = y/yes | link = y/yes | invert = y/yes | not = <entity name> | <platform parameters> }}

unnamed parameter 1
Name of the entity (item, NPC, event, biome, patch number, etc.)
small
Reduces the size of all icons.
link
By default, the icons are not linked, for performance and resource reasons. Use this parameter to make them link to their respective version page.
invert
Causes the exclusivity to be inverted, i.e. displays the opposite eicons. Note that this disables the Japanese Console version sensor.
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.
<platform parameters>
Optional, manual overriding of the generated eicons. Note that these are evaluated after invert and not. The following parameters are available:
  • desktop / dsk
  • console / cns
  • old-gen / oldgen / old
  • mobile / mbl
  • 3DS / 3ds
They can be set to either yes/y or no/n.

Examples

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