Template:Exclusive

来自Terraria Wiki
跳转至: 导航搜索

此模板定义表格“Exclusive”。 查看表格.

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, means it is easy to localize for different languages. Please see I18n & l10n for Templates to learn more.
Template-info.svg 文档 以下文档内容来自模板: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.
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:

Override the versions. Values for all of the following parameters can be y, yes, n, or no.
电脑版 dsk
desktop
pc
主机版 cns
console
前代主机版 old
oldgen
old-gen
old-gen console
移动版 mbl
mobile
3DS版 3DS
3ds
日本主机版 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
电脑版 电脑版独有内容:此的信息适用于电脑版泰拉瑞亚
{{exclusive|mobile=yes|3ds=yes}} returns
移动版3DS版 移动版/3DS版独有内容:此的信息适用于移动版3DS版泰拉瑞亚
{{exclusive|japan=yes|mobile=yes|3ds=yes}} returns
日本主机版移动版3DS版 日本主机版/移动版/3DS版独有内容:此的信息适用于日本主机版移动版、和3DS版泰拉瑞亚
{{exclusive|desktop=yes|3ds=yes|console=yes}} returns
电脑版主机版3DS版 电脑版/主机版/3DS版独有内容:此的信息适用于电脑版主机版、和3DS版泰拉瑞亚
{{exclusive|desktop=yes|3ds=yes|console=yes|section=yes}} returns
电脑版主机版3DS版 电脑版/主机版/3DS版独有内容:此章节的的信息适用于电脑版主机版、和3DS版泰拉瑞亚


Take the exclusive info from another page:

{{exclusive|1.3.0.1}} returns
电脑版主机版移动版 电脑版/主机版/移动版独有内容:此的信息适用于电脑版主机版、和移动版泰拉瑞亚
{{exclusive|1.3.0.1#Features and Mechanics}} returns
电脑版主机版移动版 电脑版/主机版/移动版独有内容:此的信息适用于电脑版主机版、和移动版泰拉瑞亚
{{exclusive|1.3.0.1|invert=y}} returns
前代主机版  3DS版 前代主机版/3DS版独有内容:此的信息适用于前代主机版3DS版泰拉瑞亚
{{exclusive|1.3.0.1|3ds=y}} returns
电脑版主机版移动版3DS版 电脑版/主机版/移动版/3DS版独有内容:此的信息适用于电脑版主机版移动版、和3DS版泰拉瑞亚
{{exclusive|1.3.0.1|3ds=y|dsk=n}} returns
主机版移动版3DS版 主机版/移动版/3DS版独有内容:此的信息适用于主机版移动版、和3DS版泰拉瑞亚
{{exclusive|1.3.0.1|invert=y|dsk=y}} returns
电脑版  前代主机版  3DS版 电脑版/前代主机版/3DS版独有内容:此的信息适用于电脑版前代主机版、和3DS版泰拉瑞亚