Vorlage:ItemNameFromId
Zur Navigation springen
Zur Suche springen
Dokumentation Die folgende Dokumentation stammt von der Seite Vorlage:ItemNameFromId/Dokumentation. (bearbeiten | Versionsgeschichte)
Siehe auch die englische Vorlagenseite: Template:ItemNameFromId. Sie enthält möglicherweise umfassendere oder aktuellere Informationen.
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. All other lang codes will use en database and apply {{tr}} on the result name (roughly equivalent to {{tr|lang=<lang>|{{ItemNameFromId|<id>|lang=en}}}}
).
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.
Examples
Code | result |
---|---|
{{ItemNameFromId|1}} |
Eisenspitzhacke |
{{ItemNameFromId|1553}} |
W.D.M.G. |
{{ItemNameFromId| 1553 }} |
W.D.M.G. |
{{ItemNameFromId|}} |
|
{{ItemNameFromId|5888}} |
|
{{ItemNameFromId|1|lang=it}} |
Piccone di ferro |
See also
- {{ItemIdFromName}}
- {{iteminfo}}