Module:ItemData/doc: Difference between revisionsGive feedback
Jump to navigation
Jump to search
Gammaton32 (talk | contribs) |
Gammaton32 (talk | contribs) No edit summary |
||
| Line 11: | Line 11: | ||
*<code>get_prop|ITEM_NAME|PROPERTY</code> | *<code>get_prop|ITEM_NAME|PROPERTY</code> | ||
**Returns the value of one of the item's properties. Check the [[Data:ItemData.json|json file]] for item properties | **Returns the value of one of the item's properties. Check the [[Data:ItemData.json|json file]] for item properties | ||
*<code>get_codename|ITEM_NAME</code> | |||
**Returns the item's codename in game files | |||
==Example== | ==Example== | ||
| Line 30: | Line 32: | ||
for example: | for example: | ||
<pre>{{#invoke:ItemData|get_prop|{{#var:item_key_or_en}}|TechPower}}</pre> | <pre>{{#invoke:ItemData|get_prop|{{#var:item_key_or_en}}|TechPower}}</pre> | ||
To get Boundless Spirit's codename: | |||
<pre>{{#invoke:ItemData|get_codename|Boundless Spirit}}</pre> | |||
and it would return: | |||
<code>{{#invoke:ItemData|get_codename|Boundless Spirit}}</code> | |||