Template:ItemInfoBox: Difference between revisions
From Ymirheim Wiki
No edit summary |
(Marked this version for translation) |
||
Line 34: | Line 34: | ||
-->{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|CanTrade}} | 0 | <translate nowrap>Cannot trade this item.</translate> <br/> }}<!-- | -->{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|CanTrade}} | 0 | <translate nowrap><!--T:45--> Cannot trade this item.</translate> <br/> }}<!-- | ||
-->{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|CanSell}} | 0 | <translate nowrap>Cannot sell this item.</translate> <br/> }}<!-- | -->{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|CanSell}} | 0 | <translate nowrap><!--T:46--> Cannot sell this item.</translate> <br/> }}<!-- | ||
-->{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|CanThrow}} | 0 | <translate nowrap>Cannot throw this item away.</translate> <br/> }}<!-- | -->{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|CanThrow}} | 0 | <translate nowrap><!--T:47--> Cannot throw this item away.</translate> <br/> }}<!-- | ||
Line 59: | Line 59: | ||
-->{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|IsDyeing}} | 0 || <translate nowrap><!--T:44--> Dyeable Item</translate> <br/> }}<!-- | -->{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|IsDyeing}} | 0 || <translate nowrap><!--T:44--> Dyeable Item</translate> <br/> }}<!-- | ||
-->{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|CanSeal}} | 1 | <translate nowrap>Sealed.</translate> <br/> }}<!-- | -->{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|CanSeal}} | 1 | <translate nowrap><!--T:48--> Sealed.</translate> <br/> }}<!-- | ||
Revision as of 14:44, 11 July 2024
This template can be used to display an information box about a specific item on a page.
Usage
{{ItemInfoBox|ITEM_ID | obtain_by_purchase = no | obtain_by_trade = no }}
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 | obtain_by_purchase = no | obtain_by_trade = no }}
{{ItemInfoBox|1601006401 | obtain_by_purchase = no | obtain_by_trade = no }}
{{ItemInfoBox|1022001402 | obtain_by_purchase = no | obtain_by_trade = yes }}