Template:ItemInfoBox: Difference between revisions
From Ymirheim Wiki
No edit summary |
No edit summary |
||
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 = <translate nowrap><!--T:1--> Consumable</translate> | | 1 = <translate nowrap><!--T:1--> Consumable</translate> | ||
| 2 = <translate nowrap><!--T:2--> Material</translate> | | 2 = <translate nowrap><!--T:2--> Material</translate> | ||
Line 21: | Line 21: | ||
| 31 = <translate nowrap><!--T:14--> Spirit</translate> | | 31 = <translate nowrap><!--T:14--> Spirit</translate> | ||
| 32 = <translate nowrap><!--T:15--> Spirit</translate> | | 32 = <translate nowrap><!--T:15--> Spirit</translate> | ||
}}{{#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:51, 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}}