Template:ItemInfoBox: Difference between revisions
From Ymirheim Wiki
No edit summary |
(Marked this version for translation) |
||
Line 6: | Line 6: | ||
--><div class="item-type">{{#switch: {{#yh_data:item_prototypes|{{{1}}}|Type}} | --><div class="item-type">{{#switch: {{#yh_data:item_prototypes|{{{1}}}|Type}} | ||
| 1 = <translate nowrap>Consumable</translate> | | 1 = <translate nowrap><!--T:1--> Consumable</translate> | ||
| 2 = <translate nowrap>Material</translate> | | 2 = <translate nowrap><!--T:2--> Material</translate> | ||
| 3 = <translate nowrap>Normal</translate> | | 3 = <translate nowrap><!--T:3--> Normal</translate> | ||
| 4 = <translate nowrap>Auge</translate> | | 4 = <translate nowrap><!--T:4--> Auge</translate> | ||
| 8 = <translate nowrap>Skill Book</translate> | | 8 = <translate nowrap><!--T:5--> Skill Book</translate> | ||
| 9 = <translate nowrap>Map</translate> | | 9 = <translate nowrap><!--T:6--> Map</translate> | ||
| 10 = <translate nowrap>Document</translate> | | 10 = <translate nowrap><!--T:7--> Document</translate> | ||
| 11 = <translate nowrap>Quest Item</translate> | | 11 = <translate nowrap><!--T:8--> Quest Item</translate> | ||
| 17 = <translate nowrap>Book</translate> | | 17 = <translate nowrap><!--T:9--> Book</translate> | ||
| 18 = <translate nowrap>Dye</translate> | | 18 = <translate nowrap><!--T:10--> Dye</translate> | ||
| 20 = <translate nowrap>Food</translate> | | 20 = <translate nowrap><!--T:11--> Food</translate> | ||
| 21 = <translate nowrap>Charm</translate> | | 21 = <translate nowrap><!--T:12--> Charm</translate> | ||
| 30 = <translate nowrap>Card</translate> | | 30 = <translate nowrap><!--T:13--> Card</translate> | ||
| 31 = <translate nowrap>Spirit</translate> | | 31 = <translate nowrap><!--T:14--> Spirit</translate> | ||
| 32 = <translate nowrap>Spirit</translate> | | 32 = <translate nowrap><!--T:15--> Spirit</translate> | ||
}}{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|Req_Equip_Part}} |0||<br/>}}{{#switch: {{#yh_data:item_prototypes|{{{1}}}|Req_Equip_Part}} | }}{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|Req_Equip_Part}} |0||<br/>}}{{#switch: {{#yh_data:item_prototypes|{{{1}}}|Req_Equip_Part}} | ||
| 1 = <translate nowrap>Top</translate> | | 1 = <translate nowrap><!--T:16--> Top</translate> | ||
| 2 = <translate nowrap>Armor</translate> | | 2 = <translate nowrap><!--T:17--> Armor</translate> | ||
| 6 = <translate nowrap>Shield</translate> | | 6 = <translate nowrap><!--T:18--> Shield</translate> | ||
| 7 = <translate nowrap>Gloves</translate> | | 7 = <translate nowrap><!--T:19--> Gloves</translate> | ||
| 8 = <translate nowrap>Footwear</translate> | | 8 = <translate nowrap><!--T:20--> Footwear</translate> | ||
| 9 = <translate nowrap>Bottom</translate> | | 9 = <translate nowrap><!--T:21--> Bottom</translate> | ||
| 10 = <translate nowrap>Head Accessory</translate> | | 10 = <translate nowrap><!--T:22--> Head Accessory</translate> | ||
| 11 = <translate nowrap>Backpack</translate> | | 11 = <translate nowrap><!--T:23--> Backpack</translate> | ||
| 12 = <translate nowrap>Cape</translate> | | 12 = <translate nowrap><!--T:24--> Cape</translate> | ||
| 13 = <translate nowrap>Face Accessory</translate> | | 13 = <translate nowrap><!--T:25--> Face Accessory</translate> | ||
| 14 = <translate nowrap>Ring</translate> | | 14 = <translate nowrap><!--T:26--> Ring</translate> | ||
| 15 = <translate nowrap>Necklace</translate> | | 15 = <translate nowrap><!--T:27--> Necklace</translate> | ||
| 16 = <translate nowrap>Belt</translate> | | 16 = <translate nowrap><!--T:28--> Belt</translate> | ||
| 17 = <translate nowrap>Earring</translate> | | 17 = <translate nowrap><!--T:29--> Earring</translate> | ||
| 19 = <translate nowrap>Weapon</translate> | | 19 = <translate nowrap><!--T:30--> Weapon</translate> | ||
}}</div><br/><!-- | }}</div><br/><!-- | ||
--><translate nowrap>Weight:</translate> {{padright:{{#expr: {{#yh_data:item_prototypes|{{{1}}}|Weight}} / 1000 }}|5}}<br/><!-- | --><translate nowrap><!--T:31--> Weight:</translate> {{padright:{{#expr: {{#yh_data:item_prototypes|{{{1}}}|Weight}} / 1000 }}|5}}<br/><!-- | ||
-->{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|MaxStackQuantity}} | 1 || <translate nowrap>Max stack:</translate> {{#yh_data:item_prototypes|{{{1}}}|MaxStackQuantity}} }}<br/><!-- | -->{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|MaxStackQuantity}} | 1 || <translate nowrap><!--T:32--> Max stack:</translate> {{#yh_data:item_prototypes|{{{1}}}|MaxStackQuantity}} }}<br/><!-- | ||
--><hr/><!-- | --><hr/><!-- | ||
Line 49: | Line 49: | ||
-->{{#ifeq:{{#yh_data:item_prototypes|{{{1}}}|Price}}|0||<!-- | -->{{#ifeq:{{#yh_data:item_prototypes|{{{1}}}|Price}}|0||<!-- | ||
--><hr/><!-- | --><hr/><!-- | ||
--><translate nowrap>Price:</translate> {{PriceFormatted| {{#yh_data:item_prototypes|{{{1}}}|Price}} }}<br/><!-- | --><translate nowrap><!--T:33--> Price:</translate> {{PriceFormatted| {{#yh_data:item_prototypes|{{{1}}}|Price}} }}<br/><!-- | ||
--><translate nowrap>Selling price:</translate> {{PriceFormatted| {{#expr: {{#yh_data:item_prototypes|{{{1}}}|Price}} / 4 }} }}<!-- | --><translate nowrap><!--T:34--> Selling price:</translate> {{PriceFormatted| {{#expr: {{#yh_data:item_prototypes|{{{1}}}|Price}} / 4 }} }}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
Revision as of 12:57, 7 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}}