Modèle:ItemNameFromId
Aller à la navigation
Aller à la recherche
Documentation La documentation ci-dessous est transcluse de Modèle:ItemNameFromId/doc. (modifier | historique)
[purger]
This template returns the name of an item based on its Item ID.
Usage
{{ItemNameFromId | <Item id> (optional) | lang= <lang> (optional) }}
- First unnamed parameter
id of the item. If empty or invalid, will return empty string.
- lang
Language code. Default is {{lang|}}
. Currently we have 9 languages (as in game): en/es/it/de/fr/zh/pl/pt/ru.
Note: for those 9 languages, it is recommended to use {{ItemNameFromId|<id>|lang=<lang>}}
instead of {{tr|{{ItemNameFromId|<id>|lang=en}}}}
to get the name of the item in target language. This ensures that it is exactly the same as in the game, and is usually faster. And as with 1.4.0.2, l10n for these laguages are imcompleted, so it will use EN version as fallback for inexist entries.
Examples
Code | result |
---|---|
{{ItemNameFromId|1}} |
Iron Pickaxe ÉCHEC ! (attendu : Pioche en fer ) |
{{ItemNameFromId|1553}} |
S.D.M.G. ÉCHEC ! (attendu : M.D.S) |
{{ItemNameFromId| 1553 }} |
S.D.M.G. ÉCHEC ! (attendu : M.D.S ) |
{{ItemNameFromId|}} |
|
{{ItemNameFromId|4888}} |
Amber Bunny Cage ÉCHEC ! (attendu : Lapin ambre en cage ) |
{{ItemNameFromId|1|lang=en}} |
Iron Pickaxe |
{{ItemNameFromId|4888|lang=en}} |
Amber Bunny Cage |
See also
- {{ItemIdFromName}}
- {{iteminfo}}