Template:Exclusive versions

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.
See Template:Exclusive versions/l10n for the localization of this template.
Template-info.svg Documentation The documentation below is transcluded from Template:Exclusive versions/doc. (edit | history)

This template is similar to {{Exclusive icons}}, except instead of icons it outputs versions. {{Eversions}} can be used as a shortcut for this template.

Parameter Usage

{{exclusive versions|page|short|invert=yes|not=page|nl=yes|nlicons=yes|raw=yes|delimit=delimiter|upper3ds=yes}}

Short(2nd unamed paramter) or short=y
Use short to make all of the versions have the short parameter. Example:
{{eversions|Traveling Merchant|short}} —> Desktop version Desktop, Console version Console, Old-gen console version Old-gen console, and Mobile version Mobile
{{eversions|Traveling Merchant|short=y}} —> Desktop version Desktop, Console version Console, Old-gen console version Old-gen console, and Mobile version Mobile
{{eversions|Traveling Merchant|short|nl=yes}} —> Desktop, Console, Old-gen console, and Mobile
raw=yes, delimit=delimiter, and upper3ds=yes (code and replace are partially deprecated)
Use raw=yes to output raw text.
This text will output with "/" character in-between each version name by default, but another delimiter may be specified with delimit=delimiter.
If 3ds outputs, "ds" is lowercase by default. Change this to uppercase by using upper3ds=yes (upper3DS=yes is also acceptable).
{{eversions|Horned God set|3DS=y|raw=y|delimit=-}} —> console-old-gen-3ds
nl/nolink=yes, nlicons=yes, and noicons=yes
Use nl=yes to output version names without links or icons. Example:
{{eversions|Palm Wood|nl=yes}} —> Desktop version, Console version, Old-gen console version, and Mobile version
Use nlicons=yes to re-add the version icons when using nl.
{{eversions|Ocram Mask|nl=yes|nlicons=yes}} —> Console version Console version and Old-gen console version Old-gen console version
Use noicons=yes to print links, but no icons.
{{eversions|Ocram Mask|noicons=yes}} —> Console version and Old-gen console version
invert=yes
Use invert=yes to output the opposite of the page's exclusivity. Example:
{{eversions|Traveling Merchant|invert=yes}} —> 3DS version 3DS version
Important Note: This disables the sensor of Japanese Console content.
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.
desktop/dsk=y/n, console/cns=y/n, old-gen/oldgen/old = y/n, mobile/mbl=y/n, and 3DS/3ds=y/n
Override options. For example, {{eversions|Zapinator|desktop=y}} outputs Desktop version Desktop version and 3DS version 3DS version. See {{exclusive}} and {{eicons}}

Examples

The Ocram Mask is available on the Console version Console version and Old-gen console version Old-gen console version. (displayed with {{eversions|Ocram Mask}})

Ocram is available on the Old-gen console version Old-gen console version and 3DS version 3DS version. (displayed with {{eversions|Ocram}})

1.3 is on the Desktop version Desktop version, Console version Console version, and Mobile version Mobile version. (displayed with {{eversions|1.3.0.1}})

Old-gen console version Old-gen console version and 3DS version 3DS version. (displayed with {{eversions|1.3.0.1|invert=y}})

The Monokuma costume is exclusive to the Japanese Console version Japanese Console version. (displayed with {{eversions|Monokuma set}})

Against the Moon Lord, use Dark Artist armor or, on
{{eversions}}: No valid parameters were entered!
, Nebula armor. (displayed with {{eversions|Moon Lord|short|not=Dark Artist armor}} – versions that have the Moon Lord but not Dark Artist armor)