Template:Exclusive icon link

From Terraria Wiki
(Redirected from Template:Eil)
Jump to: navigation, search
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.
Template-info.svg Documentation The documentation below is transcluded from Template:Exclusive icon link/doc. (edit | history)

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.

Usage

First unnamed parameter

Link target and eicons base.

  • For example, {{eil|Tutorial}} returns TutorialConsole VersionOld-gen console version3DS Version
  • For example, {{eil|Work Bench}} returns Work Bench (available on all platforms, so there is no icon.)
Second unnamed parameter

Renamed link.

  • For example, {{eil|Tutorial|Tutor}} returns TutorConsole VersionOld-gen console version3DS Version
  • Inputting an "s" adds an s at the end of the text, for example {{eil|Tutorial|s}} returning TutorialsConsole VersionOld-gen console version3DS Version
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 TutorialConsole VersionOld-gen console version3DS Version
nolink/nl=y/yes

disable link

  • For example, {{eil|Tutorial|nolink=y}} returns TutorialConsole VersionOld-gen console version3DS Version
iconlink=y/yes

make links on exclusive icons.

  • For example, {{eil|Tutorial|iconlink=y}} returns TutorialConsole VersionOld-gen console version3DS Version
epage=[pagename], invert=y, desktop/dsk=y/n, console/cns=y/n, japan/jas=y/n, mobile/mbl=y/n, old-gen/oldgen/old=y/n, 3DS/3ds=y/n

override eicons info. see {{eicons}}. If epage is specified, it will override unnamed parameter 1 and use as exclusive info base page.

  • For example: {{eil|Tutorial|3ds=n}} returns TutorialConsole VersionOld-gen console version, {{eil|Tutorial|epage=1.3.0.1|invert=y|3ds=n}} returns TutorialOld-gen console version, {{eil|Tutorial|epage=|dsk=y}} returns TutorialDesktop VersionConsole VersionOld-gen console version3DS Version