Template:Versions

From Terraria Wiki
Jump to navigation Jump to search
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:Versions/l10n for the localization of this template.
Template-info.svg Documentation The documentation below is transcluded from Template:Versions/doc. (edit | history)

Helper template. Used for displaying icon and text for multiple versions.

This template does not check for all platforms.

Parameters

Versions

unnamed parameter 1
Versions info in version-version-version format (can be output by {{eversions|[pagename]|raw=y}}).
dsk / desktop = y
Sets Desktop version Desktop version.
cns / console = y
Sets Console version Console version.
swt / switch = y
Sets Nintendo Switch version Nintendo Switch version.
old / old-gen = y
Sets Old-gen console version Old-gen console version.
mbl / mobile = y
Sets Mobile version Mobile version.
3ds / 3DS = y
Sets Nintendo 3DSNintendo 3DS version version.
jas / japan = y
Sets Japanese Console version Japanese Console version.

Display Settings (optional)

mode or unnamed parameter 1
Output mode, text = text only, icon = icon only, short = icon + short text, version/versions = icon + short text + "version(s)" (see example below).
invert = y / yes
Inverts the selection, useful for exempting specific versions (e.g. mobile & 3DS).
nbsp = y / yes
A space will be placed before the first item.
thinsp = y / yes
A thin space will be placed before the first item.
short = y / yes / version / versions
Use short text. When set to version/versions, it will append "version(s)" text (see example below).
small = y / yes
Icons will be smaller (75% of normal size).
b / bold = y / yes
Bold version text.
i / italic = y / yes
Italic version text.
nl / nolink = y / yes
Icons and text will not be linked to version pages.

Examples

code output
{{versions|dsk=y|old=y|3ds=y}} Desktop version Desktop version, Old-gen console version Old-gen console version, and Nintendo 3DSNintendo 3DS version version
{{versions|dsk=y|swt=y|mbl=y}} Desktop version Desktop version, Mobile version Mobile version, and Nintendo Switch version Nintendo Switch version
{{versions|mbl=y}} Mobile version Mobile version
{{versions|dsk=y|mbl=y|small=y}} Desktop version Desktop version and Mobile version Mobile version
{{versions| icon |dsk=y|swt=y|old=y|3ds=y}} Desktop versionOld-gen console versionNintendo 3DS versionNintendo Switch version
HH{{versions|dsk=y|mbl=y|nbsp=y}} HH Desktop version Desktop version and Mobile version Mobile version
HH{{versions|dsk=y|mbl=y|thinsp=y}} HH Desktop version Desktop version and Mobile version Mobile version
HH{{versions|dsk=y|mbl=y|nbsp=y|thinsp=y}} HH  Desktop version Desktop version and Mobile version Mobile version
{{versions| text |dsk=y|old=y|3ds=y}} Desktop version, Old-gen console version, and Nintendo 3DS version
{{versions| short |dsk=y|old=y|3ds=y}} Desktop version Desktop, Old-gen console version Old-gen console, and 3DSNintendo 3DS version
{{versions|dsk=y|old=y|3ds=y| short=y }} Desktop version Desktop, Old-gen console version Old-gen console, and 3DSNintendo 3DS version
{{versions| text |dsk=y|old=y|3ds=y| short=y }} Desktop, Old-gen console, and 3DS
{{versions| version |dsk=y|old=y|3ds=y }} Desktop version Desktop, Old-gen console version Old-gen console, and 3DSNintendo 3DS version versions
{{versions| mode = versions |dsk=y|old=y|3ds=y}} Desktop version Desktop, Old-gen console version Old-gen console, and 3DSNintendo 3DS version versions
{{versions|dsk=y|old=y|3ds=y| short=version }} Desktop version Desktop version, Old-gen console version Old-gen console version, and Nintendo 3DSNintendo 3DS version version
{{versions|dsk=y| short=version }} Desktop version Desktop version
{{versions|dsk=y|old=y|3ds=y| b=y }} Desktop version Desktop version, Old-gen console version Old-gen console version, and Nintendo 3DSNintendo 3DS version version
{{versions|dsk=y|old=y|3ds=y| i=y }} Desktop version Desktop version, Old-gen console version Old-gen console version, and Nintendo 3DSNintendo 3DS version version
{{versions|dsk=y|old=y|3ds=y| b=y|i=y }} Desktop version Desktop version, Old-gen console version Old-gen console version, and Nintendo 3DSNintendo 3DS version version
{{versions|mobile-3ds| invert=y | nl=y }} Desktop version Desktop version, Console version Console version, Old-gen console version Old-gen console version, Nintendo Switch version Nintendo Switch version, and tModLoader version tModLoader version