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

From Terraria Wiki
Jump to: navigation, search

This template defines the table "Exclusive". View table.

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

An all-in-one template that notes exclusivity to any versions of Terraria.

Usage

All possible parameters:

First unnamed parameter

Page name, will get exclusive info from it. Appending sections is supported, the exclusive info for the page name will still be gathered (see examples below).

invert = y/yes
Inverts the exclusivity, i.e. the opposite will be output. Important note: this disables the Japanese Console version sensor.
not
Name of a page whose exclusive versions are to be subtracted from the main exclusive versions from the first unnamed parameter. Note that this is evaluated after $invert, i.e. the exclusive versions of the main page are inverted first, and then the exclusive versions of the page from this parameter are subtracted from that.
section = y/yes
Changes the message text from "This infomation" to "This section's information", automatically activates nocat = yes.
nocat = y/yes
Prevents the template from adding the page it is used on to any categories.
nobanner = y/yes
Prevents displaying the message banner box, thus only categorizes the page. This is usually used on redirect pages.
width
Sets the CSS width of the message banner box.
Versions parameters
Override versions from the first unnamed parameter (after $invert and $not are evaluated), or set versions manually if no first unnamed parameter is provided. Values for all of the following parameters can be y, yes, n, or no. $version (see below) can be used alternatively.
Desktop version dsk
desktop
pc
Console version cns
console
Old-gen console version old
oldgen
old-gen
old-gen console
Mobile version mbl
mobile
3DS version 3DS
3ds
Japanese Console version jas
japan
japanese
j-console
japanese-console
version = platform-platform-platform
Alternative code-style versions info. Example: desktop-console. Can be all to set all versions.


If a page name (unnamed parameter 1) is specified, an {{all versions}} is automatically put on any pages which are available to all platforms.

Examples

{{exclusive|desktop=yes}} returns
Desktop version Desktop-Only Content: This information applies only to the Desktop version of Terraria.
{{exclusive|mobile=yes|3ds=yes}} returns
Mobile version3DS version Mobile/3DS-Only Content: This information applies only to the Mobile and 3DS versions of Terraria.
{{exclusive|japan=yes|mobile=yes|3ds=yes}} returns
Japanese Console versionMobile version3DS version Japanese console/Mobile/3DS-Only Content: This information applies only to the Japanese Console, Mobile, and 3DS versions of Terraria.
{{exclusive|desktop=yes|3ds=yes|console=yes}} returns
Desktop versionConsole version3DS version Desktop/Console/3DS-Only Content: This information applies only to the Desktop, Console, and 3DS versions of Terraria.
{{exclusive|desktop=yes|3ds=yes|console=yes|section=yes}} returns
Desktop versionConsole version3DS version Desktop/Console/3DS-Only Content: This section's information applies only to the Desktop, Console, and 3DS versions of Terraria.


Take the exclusive info from another page:

{{exclusive|1.3.0.1}} returns
Desktop versionConsole versionMobile version Desktop/Console/Mobile-Only Content: This information applies only to the Desktop, Console, and Mobile versions of Terraria.
{{exclusive|1.3.0.1#Features and Mechanics}} returns
Desktop versionConsole versionMobile version Desktop/Console/Mobile-Only Content: This information applies only to the Desktop, Console, and Mobile versions of Terraria.
{{exclusive|1.3.0.1|invert=y}} returns
Old-gen console version3DS version Old-gen console/3DS-Only Content: This information applies only to the Old-gen console and 3DS versions of Terraria.
{{exclusive|1.3.0.1|not=1.4.0.1}} returns
Console versionMobile version Console/Mobile-Only Content: This information applies only to the Console and Mobile versions of Terraria.
{{exclusive|1.3.0.1|3ds=y}} returns
Desktop versionConsole versionMobile version3DS version Desktop/Console/Mobile/3DS-Only Content: This information applies only to the Desktop, Console, Mobile, and 3DS versions of Terraria.
{{exclusive|1.3.0.1|3ds=y|dsk=n}} returns
Console versionMobile version3DS version Console/Mobile/3DS-Only Content: This information applies only to the Console, Mobile, and 3DS versions of Terraria.
{{exclusive|1.3.0.1|invert=y|dsk=y}} returns
Desktop versionOld-gen console version3DS version Desktop/Old-gen console/3DS-Only Content: This information applies only to the Desktop, Old-gen console, and 3DS versions of Terraria.