Modèle:Exclusive icons

De Terraria Wiki
Aller à : navigation, rechercher
Lua logo.svg
Ce modèle utilise Module:Exclusive, qui est écrit avec un script dans le language de programmation Lua. Pour en apprendre plus à propos de Lua, visiter Wikipédia:Lua et mw:Extension:Scribunto.
Ce modèle est considéré comme prêt pour i18n, signifiant qu'il est facile à régionaliser pour les différentes langues. Veuillez regarder I18n & l10n pour les modèles (en) pour en apprendre plus.
Template-info.svg Documentation La documentation ci-dessous est transcluse de Modèle:Exclusive icons/doc. (modifier | historique)

Returns the icons indicating the platforms for which an item is available. For displaying a link with eicons, use {{Exclusive icon link}}.

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

Usage

Acceptable shortcut: {{eicons}}

Unnamed Parameter 1
Item name
small= y/yes
Use small=yes to make all of the icons smaller.
link= y/yes
Icons link to corresponding platform version pages. For performance and resoure reason, default is no link.
invert=y
Use this if you want icons to output the opposite of the exclusivity. Important note: this disables the Japanese Console version sensor.
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 options. Important note: these are evaluated after "invert".

Examples

{{eicons| 1.4.0.1 }} Versions Bureau et Mobile (DM)
{{eicons| 1.3.0.1 | not = 1.4.0.1 }} Version Console (C)
{{eicons| Suspicious Looking Egg }} Version 3DS (3)
{{eicons| Suspicious Looking Egg | invert = 1 }} Versions Bureau, Console, Console old-gen et Mobile (DCOM)
{{eicons| Soul of Blight | link = 1 }} Version Console old-genVersion 3DS (O3) with link
{{eicons| Suspicious Looking Egg | small = 1 }} Version 3DS (3), small
{{eicons| Easter }} Version 3DS (3)
{{eicons| Underground Desert }} Versions Bureau, Console et Mobile (DCM)
{{eicons| Flinx Staff }} Version Bureau (D)
{{eicons| Gold Butterfly }} Versions Bureau, Console et Mobile (DCM)
{{eicons| Gold Butterfly | not = Flinx Staff }} Version ConsoleVersion Mobile (CM)
{{eicons| Gold Butterfly | invert = 1 | not = Crystal Work Bench }} Version Console old-genVersion 3DS (O3), not DO3 because invert is evaluated before not
{{eicons| Gold Butterfly | invert = 1 | not = Suspicious Looking Egg }} Version Console old-gen (O)
{{eicons| 1.3.0.1 | not = 1.4.0.1 }} Version Console (C)
{{eicons| Work Bench }} → (nothing, since Work Bench is on all versions)
{{eicons| Work Bench | mobile = 1 }} Version Mobile (M)
{{eicons| Work Bench | old-gen = 1 | 3ds = 1 }} Version Console old-genVersion 3DS (O3)
{{eicons| Martian Work Bench | desktop = 0 | console = 0 }} Version Mobile (M)
{{eicons| desktop = 1 | console = 1 | old-gen = 1 | mobile = 1 }} Versions Bureau, Console, Console old-gen et Mobile (DCOM)
{{eicons| japan = 1 }} Version Console japonaise (J)
{{item|Stone Block}} {{eicons| desktop = 1 | console = 1 | old-gen = 1 | mobile = 1 }} Bloc de pierreBloc de pierre Versions Bureau, Console, Console old-gen et Mobile