模板:Exclusive versions

出自Terraria Wiki
跳到: 導覽搜尋
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.
Template-info.svg 文檔 以下文檔內容來自模板: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}} —> 電腦版 電腦版主機版 主機版、 前代主機版前代主機版、和移動版 移動版
{{eversions|Traveling Merchant|short=y}} —> 電腦版 電腦版主機版 主機版、 前代主機版前代主機版、和移動版 移動版
{{eversions|Traveling Merchant|short|nl=yes}} —> 電腦版、主機版、前代主機版、和移動版
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}} —> 電腦版、主機版、前代主機版、和移動版
Use nlicons=yes to re-add the version icons when using nl.
{{eversions|Ocram Mask|nl=yes|nlicons=yes}} —> 主機版 主機版和 前代主機版 前代主機版
Use noicons=yes to print links, but no icons.
{{eversions|Ocram Mask|noicons=yes}} —> 主機版前代主機版
invert=yes
Use invert=yes to output the opposite of the page's exclusivity. Example:
{{eversions|Traveling Merchant|invert=yes}} —> 3DS版 3DS
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 電腦版 電腦版3DS版 3DS. See {{exclusive}} and {{eicons}}

Examples

The Ocram Mask is available on the 主機版 主機版和 前代主機版前代主機版. (displayed with {{eversions|Ocram Mask|||||||}})

Ocram is available on the  前代主機版前代主機版3DS版 3DS. (displayed with {{eversions|Ocram|||||||}})

1.3 is on the 電腦版 電腦版主機版 主機版、和移動版 移動版. (displayed with {{eversions|1.3.0.1|||||||}})

前代主機版前代主機版3DS版 3DS. (displayed with {{eversions|1.3.0.1|invert=y||||||}})

The Monokuma costume is exclusive to the 日本主機版 日本主機版. (displayed with {{eversions|Monokuma set|||||||}})

Against the Moon Lord, use Dark Artist armor or, on 移動版 移動版, Nebula armor. (displayed with {{eversions|Moon Lord|short|not=Dark Artist armor|||||}} – versions that have the Moon Lord but not Dark Artist armor)