Template:Exclusive icon link

来自Terraria Wiki
(重定向自Template:Eil
跳到导航 跳到搜索
此模板使用了 Lua。
此模板使用了用 Lua 编程语言编写的 模块:Exclusive。要了解 Lua 的更多信息,参见 en:Terraria Wiki: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.
Template-info.svg 文档 以下文档来自Template:Exclusive icon link/doc。(编辑 | 历史

A short way to make a link that includes {{exclusive icons}}. Acceptable shortcut: {{eil}}.

Usage

First unnamed parameter

Link target and eicons base.

  • For example, {{eil|Tutorial}} returns 教程(主机版、前代主机版、移动版、和3DS版) (co3)
  • For example, {{eil|Work Bench}} returns 工作台 (available on all platforms, so there is no icon.)
Second unnamed parameter

Renamed link.

  • For example, {{eil|Tutorial|Tutor}} returns Tutor(主机版、前代主机版、移动版、和3DS版)
  • Inputting an "s" adds an s at the end of the text, for example {{eil|Tutorial|s}} returning 教程(主机版、前代主机版、移动版、和3DS版)
link

Override the link target.

  • For example, {{eil|Tutorial|link=1.3.0.1}} returns 教程(主机版、前代主机版、移动版、和3DS版) (co3)
eicons={{eicons|...}}

override eicons info. The value of this parameter should/must usually be {{eicons|...}}, see examples below.

  • For example: {{eil|Tutorial|eicons={{eicons|Tutorial|3ds=n}} }} returns 教程(主机版、前代主机版、和移动版) (co), {{eil|Tutorial|eicons={{eicons|1.3.0.1|invert=y|3ds=n}} }} returns 教程(主机版、前代主机版、移动版、和3DS版) (o), {{eil|Tutorial|eicons={{eicons|dsk=y}} }} returns 教程(电脑版) (d), {{eil|Tutorial|link=1.3.0.1|eicons={{eicons|mbl=y}} }} returns 教程(移动版) (m)
small=y/n/yes/no

size of eicons.
Important note: default is small=y, so if you need, you should use small=n explicitly.

  • For example, {{eil|Tutorial|small=n}} returns 教程(主机版、前代主机版、移动版、和3DS版), {{eil|Tutorial|eicons={{eicons|dsk=y}} |small=no}} returns 教程(电脑版)
nolink/nl=y/yes

disable link

  • For example, {{eil|Tutorial|nolink=y}} returns 教程(主机版、前代主机版、移动版、和3DS版)

Change default options

This template supports options through {{options}} template. All valid options are listed below, see {{options}} for usage and other infomation.

See Template:eil/initOptions for the initial options setting of this template.

NameAliasInitial ValueValue Mapping[1]Note
smallsmallicons
(empty)y(empty)
yes(empty)
on(empty)
non
offn
nolink(empty)yesy
ony
n(empty)
no(empty)
off(empty)
  1. Values with mapping will be stored and loaded as mapped value. Other values without mapping will be stored and loaded as-is.