Button See Issues.png
Des problèmes sur le wiki ?
  • Fichiers et icônes invisibles : Effacez le cache de la page en la purgeant (via « Purge » dans le menu déroulant « Plus » en haut à droite)
  • Vue étrange sur ordinateur : Vous utilisez probablement la vue mobile; cliquez sur « Voir le site complet » tout en bas pour utiliser de nouveau la vue ordinateur
    • Peut aussi être provoqué par un adblocker, tel que Ghostery, essayez de le désactiver sur le wiki
Si rien n'a fonctionné, n'hésitez pas à nous en faire part sur le portail de la communauté ou sur le serveur discord.

Exclusive icons

Ce modèle utilise Module:exclusive, un script écrit dans le language de programmation Lua. Pour en apprendre plus à propos Lua, visiter Terraria Wiki:Lua (en).
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)

Displays the icons indicating the platforms for which an entity is available, "eicons" (from "exclusive icons") in short. For displaying a link with eicons, use {{exclusive icon link}}.

You can use {{eicons/options}} to change the default values of some parameters. See the relevant section below for details.

Usage

{{ eicons | <entity name> | small = 0/1 | link = 0/1 | invert = 0/1 | not = <entity name> | <platform parameters> = 0/1 }}

ParamètreDescriptionTypeStatut
Entity name1
Name of the entity (item, NPC, event, biome, patch number, etc.) for which the icons are to be displayed.
Lignesuggéré
Smaller iconssmall
Reduces the size of the icons. Useful when space is an issue, e.g. in infoboxes.
Valeur automatique:
True (1)
Booléenfacultatif
Invert exclusivityinvert
Inverts the exclusivity, i.e. displays the opposite eicons. Note that this disables the Japanese Console version sensor.
Valeur automatique:
True (1)
Booléenfacultatif
Subtract exclusivitynot
pagenot
Name of an entity whose eicons are to be subtracted from the main eicons. Note that this is evaluated after $invert, i.e. the eicons of the main entity are inverted first, and then the eicons of the entity from this parameter are subtracted from that.
Lignefacultatif
Desktop overridedesktop
dsk
Manually override the Desktop version exclusivity. Note that this evaluated after $invert and $not.
Booléenfacultatif
Console overrideconsole
cns
Manually override the Console version exclusivity. Note that this evaluated after $invert and $not.
Booléenfacultatif
Old-gen overrideold-gen
oldgen
old
Manually override the Old-gen console version exclusivity. Note that this evaluated after $invert and $not.
Booléenfacultatif
Mobile overridemobile
mbl
Manually override the Mobile version exclusivity. Note that this evaluated after $invert and $not.
Booléenfacultatif
3DS override3DS
3ds
Manually override the 3DS version exclusivity. Note that this evaluated after $invert and $not.
Booléenfacultatif
Japan overridejapan
jas
Manually override the Japanese Console version exclusivity. Note that this evaluated after $invert and $not.
Booléenfacultatif

Format: inline

Examples

{{eicons| 1.4.0.1 }} DM only.png (DM)
{{eicons| 1.3.0.1 | not = 1.4.0.1 }} Console only.png (C)
{{eicons| Suspicious Looking Egg }} 3DS.svg (3)
{{eicons| Suspicious Looking Egg | invert = 1 }} DCOM only.png (DCOM)
{{eicons| Soul of Blight | link = 1 }} Old-Gen Console only.png 3DS.svg (O3) with link
{{eicons| Suspicious Looking Egg | small = 1 }} 3DS.svg (3), small
{{eicons| Easter }} 3DS.svg (3)
{{eicons| Underground Desert }} DCM only.png (DCM)
{{eicons| Flinx Staff }} Desktop only.png (D)
{{eicons| Gold Butterfly }} DCM only.png (DCM)
{{eicons| Gold Butterfly | not = Flinx Staff }} CM only.png (CM)
{{eicons| Gold Butterfly | invert = 1 | not = Crystal Work Bench }} Old-Gen Console only.png 3DS.svg (O3), not DO3 because invert is evaluated before not
{{eicons| Gold Butterfly | invert = 1 | not = Suspicious Looking Egg }} Old-Gen Console only.png (O)
{{eicons| 1.3.0.1 | not = 1.4.0.1 }} Console only.png (C)
{{eicons| Work Bench }} → (nothing, since Work Bench is on all versions)
{{eicons| Work Bench | mobile = 1 }} Mobile only.png (M)
{{eicons| Work Bench | old-gen = 1 | 3ds = 1 }} Old-Gen Console only.png 3DS.svg (O3)
{{eicons| Martian Work Bench | desktop = 0 | console = 0 }} Mobile only.png (M)
{{eicons| desktop = 1 | console = 1 | old-gen = 1 | mobile = 1 }} DCOM only.png (DCOM)
{{eicons| japan = 1 }} Flag jp.svg (J)
{{item|Stone Block}} {{eicons| desktop = 1 | console = 1 | old-gen = 1 | mobile = 1 }} Stone Block.pngBloc de pierre DCOM only.png

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:eicons/initOptions for the initial options setting of this template.

NameAliasInitial ValueValue Mapping[1]Note
small(empty)yesy
ony
n(empty)
no(empty)
off(empty)
link(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.

Examples

Result Code Note
Old-Gen Console only.png 3DS.svg {{eicons|Hallowed Key Mold}} Default
small = ; small = {{options/get|eicons|small}}; Get current setting
Old-Gen Console only.png 3DS.svg {{options/set|eicons|small=y}}
{{eicons|Hallowed Key Mold}}
Turn on small icons
small = y; small = {{options/get|eicons|small}}; Get current setting
Old-Gen Console only.png 3DS.svg {{options/reset|eicons}}
{{eicons|Hallowed Key Mold}}
Reset all options
Sauf mention contraire, le contenu de la communauté est disponible sous licence CC BY-NC-SA 3.0.