Template:ItemInfoBox: Difference between revisions
From Ymirheim Wiki
No edit summary |
No edit summary |
||
Line 28: | Line 28: | ||
--><translate nowrap><!--T:31--> 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><!--T:32--> 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/> }}<!-- | ||
-->{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|MaxDurability}} | 0 || <translate nowrap>Max Durability:</translate> {{#yh_data:item_prototypes|{{{1}}}|MaxDurability}}<br/> }}<!-- | |||
-->{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|Req_BaseLevel}} | 0 || <translate nowrap>Level <tvar name="$level">{{#yh_data:item_prototypes|{{{1}}}|Req_BaseLevel}}</tvar> required.</translate> <br/> }}<!-- | |||
-->{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|Req_AllowMale}} | 0 | <translate nowrap>Female only.</translate> <br/> }}<!-- | |||
-->{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|Req_AllowFemale}} | 0 | <translate nowrap>Male only.</translate> <br/> }}<!-- | |||
-->{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|Req_STR}} | 0 || <translate nowrap><tvar name="$value">{{#yh_data:item_prototypes|{{{1}}}|Req_STR}}</tvar> Strength required.</translate> <br/> }}<!-- | |||
-->{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|Req_DEX}} | 0 || <translate nowrap><tvar name="$value">{{#yh_data:item_prototypes|{{{1}}}|Req_DEX}}</tvar> Dexterity required.</translate> <br/> }}<!-- | |||
-->{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|Req_INT}} | 0 || <translate nowrap><tvar name="$value">{{#yh_data:item_prototypes|{{{1}}}|Req_INT}}</tvar> Intelligence required.</translate> <br/> }}<!-- | |||
-->{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|Req_CON}} | 0 || <translate nowrap><tvar name="$value">{{#yh_data:item_prototypes|{{{1}}}|Req_CON}}</tvar> Concentration required.</translate> <br/> }}<!-- | |||
-->{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|Req_LUK}} | 0 || <translate nowrap><tvar name="$value">{{#yh_data:item_prototypes|{{{1}}}|Req_LUK}}</tvar> Luck required.</translate> <br/> }}<!-- | |||
-->{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|IsDyeing}} | 0 || <translate nowrap>Dyeable Item</translate> <br/> }}<!-- | |||
-->{{#ifeq:{{#yh_data:item_prototypes|{{{1}}}|StatusEffectId}}|0|| <hr/>{{#yh_data_format:{{#yh_data:status_effects|1022001402|Description}}|full}} }}<!-- | -->{{#ifeq:{{#yh_data:item_prototypes|{{{1}}}|StatusEffectId}}|0|| <hr/>{{#yh_data_format:{{#yh_data:status_effects|1022001402|Description}}|full}} }}<!-- |
Revision as of 07:27, 11 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}}