Documentation The documentation below is transcluded from Template:ItemIdFromName/doc. (edit | history)
[purge]
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) }}
- First unnamed parameter
Name of the item. If empty or invalid, will return empty string.
Examples
Code | result |
---|---|
{{ItemIdFromName|Iron Pickaxe}} |
FAIL! (expected: 1 ) |
{{ItemIdFromName|S.D.M.G.}} |
FAIL! (expected: 1553 ) |
{{ItemIdFromName| S.D.M.G. }} |
FAIL! (expected: 1553 ) |
{{ItemIdFromName|}} |
|
{{ItemIdFromName|someNameNotExists}} |
See also
- {{ItemNameFromId}}
- {{ItemIdFromInternalName}}
- {{iteminfo}}