Template:ItemInfoBox/en: Difference between revisions
From Ymirheim Wiki
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 5: | Line 5: | ||
--><div class="heading grade-{{#yh_data:item_prototypes|{{{1}}}|Grade}}">{{#yh_data:item_prototypes|{{{1}}}|Name}}</div><!-- | --><div class="heading grade-{{#yh_data:item_prototypes|{{{1}}}|Grade}}">{{#yh_data:item_prototypes|{{{1}}}|Name}}</div><!-- | ||
--><div class="item-type">{{#switch: {{#yh_data:item_prototypes|{{{1}}}|Type}} | --><div class="item-type">{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|Part}} |0|{{#switch: {{#yh_data:item_prototypes|{{{1}}}|Type}} | ||
| 1 = Consumable | | 1 = Consumable | ||
| 2 = Material | | 2 = Material | ||
Line 21: | Line 21: | ||
| 31 = Spirit | | 31 = Spirit | ||
| 32 = Spirit | | 32 = Spirit | ||
}}{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|Req_Equip_Part}} |0||<br/>}}{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|Req_Equip_Part}} |19| {{ItemWeaponRequirements|{{{1}}}}} |{{ItemEquipmentPartName|{{#yh_data:item_prototypes|{{{1}}}|Req_Equip_Part}}}} }}</div><!-- | }}{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|Req_Equip_Part}} |0||<br/>}}{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|Req_Equip_Part}} |19| {{ItemWeaponRequirements|{{{1}}}}} |{{ItemEquipmentPartName|{{#yh_data:item_prototypes|{{{1}}}|Req_Equip_Part}}}} }} | ||
| {{ItemEquipmentPartName|{{#yh_data:item_prototypes|{{{1}}}|Part}}}} }}</div><!-- | |||
--><div style="clear: left;"></div><!-- | --><div style="clear: left;"></div><!-- | ||
Line 61: | Line 62: | ||
{{ItemInfoBox|1330000004}} | {{ItemInfoBox|1330000004}} | ||
<nowiki>{{ItemInfoBox|1330000004}}</nowiki> | <nowiki>{{ItemInfoBox|1330000004}}</nowiki> | ||
{{Clear}} | {{Clear}} | ||
{{ItemInfoBox|1601006401}} | {{ItemInfoBox|1601006401}} | ||
<nowiki>{{ItemInfoBox|1601006401}}</nowiki> | <nowiki>{{ItemInfoBox|1601006401}}</nowiki> | ||
{{Clear}} | |||
{{ItemInfoBox|1022001402}} | |||
<nowiki>{{ItemInfoBox|1022001402}}</nowiki> | |||
Revision as of 19:52, 10 July 2024
This template can be used to display an information box about a specific item on a page.
Usage
{{ItemInfoBox|ITEM_ID}}
You have to supply the specific item ID, not the item name.
You can find the item ID by searching the item in Ymirheim Translate (item_prototypes component).
The item ID is contained in the string key.
For example, if you look up "Pukui Peel" in Ymirheim Translate, you will see the item ID in the "Key" column (the portion before the forward slash).
Examples
{{ItemInfoBox|1330000004}}
{{ItemInfoBox|1601006401}}
{{ItemInfoBox|1022001402}}