本站文本内容除另有声明外,转载时均必须注明出处,并遵守CC BY-NC-SA 3.0协议。(转载须知
本站是中文Terraria Wiki的镜像站,与Re-Logic、Gamepedia没有从属关系。(免责声明
由于镜像同步脚本的问题,本镜像站暂停更新。请前往中文Terraria Wiki源站访问最新信息。

全站通知:

模板:Exclusive icon link

来自Terraria Wiki
(重定向自模板:Eil
跳到导航 跳到搜索
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.

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

You can use {{eil/options}} to change default value for some parameters.

第1参数会尝试调用 Tc 模板进行自动翻译,第二参数不为s时也会Tc。

Usage

First unnamed parameter

Link.

  • For example, {{eil|Tutorial}} returns 教程Lua错误 在模块:Exclusive/data的第3行:attempt to index field 'cargo' (a nil value)
  • For example, {{eil|Work Bench}} returns 工作台Lua错误 在模块:Exclusive/data的第3行:attempt to index field 'cargo' (a nil value) (available on all platforms, so there is no icon.)
Second unnamed parameter

Renamed link.

  • For example, {{eil|Tutorial|Tutor}} returns TutorLua错误 在模块:Exclusive/data的第3行:attempt to index field 'cargo' (a nil value)
  • Inputting an "s" adds an s at the end of the text, for example {{eil|Tutorial|s}} returning 教程Lua错误 在模块:Exclusive/data的第3行:attempt to index field 'cargo' (a nil value)
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 教程Lua错误 在模块:Exclusive/data的第3行:attempt to index field 'cargo' (a nil value)
nolink=y/yes

disable link

  • For example, {{eil|Tutorial|nolink=y}} returns 教程Lua错误 在模块:Exclusive/data的第3行:attempt to index field 'cargo' (a nil value)
eicons=Lua错误 在模块:Exclusive/data的第3行:attempt to index field 'cargo' (a nil value)

override auto eicons. Note that the small= parameter of eil doesn't affect this.

  • For example: {{eil|Tutorial|small=y|eicons={{eicons|desktop=y|3ds=y}}}} returns 教程Lua错误 在模块:Exclusive/data的第3行:attempt to index field 'cargo' (a nil value)