Modèle:ItemIdFromName
Aller à la navigation
Aller à la recherche
Documentation La documentation ci-dessous est transcluse de Modèle:ItemIdFromName/doc. (modifier | historique)
[purger]
This template returns the Item ID of an item based on its name. It requires the exact name of the item.
Usage
{{ItemIdFromName | <Item name> (optional) | lang= <lang> (optional) }}
- First unnamed parameter
Name of the item. If empty or invalid, will return empty string.
- lang
Language code. Default is en
. Currently we have 9 languages (as in game): en/es/it/de/fr/zh/pl/pt/ru. All other lang codes will use en database.
Examples
Code | result |
---|---|
{{ItemIdFromName|Iron Pickaxe}} |
1 |
{{ItemIdFromName|S.D.M.G.}} |
1553 |
{{ItemIdFromName| S.D.M.G. }} |
1553 |
{{ItemIdFromName|}} |
|
{{ItemIdFromName|someNameNotExists}} |
|
{{ItemIdFromName|Zyan Farbstoff|lang=de}} |
ÉCHEC ! (attendu : 1013 ) |
See also
- {{ItemNameFromId}}
- {{iteminfo}}