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 33: Line 33:




-->{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|CanTrade}} | 0 | Cannot trade this item. <br/> }}<!--
-->{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|CanSell}} | 0 | Cannot sell this item. <br/> }}<!--
-->{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|CanThrow}} | 0 | Cannot throw this item away. <br/> }}<!--




Line 52: Line 58:


-->{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|IsDyeing}} | 0 || Dyeable Item <br/> }}<!--
-->{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|IsDyeing}} | 0 || Dyeable Item <br/> }}<!--
-->{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|CanSeal}} | 1 | Sealed. <br/> }}<!--




Line 65: Line 73:
--><hr/><!--
--><hr/><!--
-->Price: {{PriceFormatted| {{#yh_data:item_prototypes|{{{1}}}|Price}} }}<br/><!--
-->Price: {{PriceFormatted| {{#yh_data:item_prototypes|{{{1}}}|Price}} }}<br/><!--
-->Selling price: {{PriceFormatted| {{#expr: {{#yh_data:item_prototypes|{{{1}}}|Price}} / 4 }} }}<!--
 
-->{{#ifeq:{{#yh_data:item_prototypes|{{{1}}}|CanSell}}|1|Selling price: {{PriceFormatted| {{#expr: {{#yh_data:item_prototypes|{{{1}}}|Price}} / 4 }} }}}}<!--
-->}}<!--
-->}}<!--


Line 73: Line 82:
== Usage ==
== Usage ==


  <nowiki>{{ItemInfoBox|ITEM_ID}}</nowiki>
  <nowiki>{{ItemInfoBox|ITEM_ID
| obtain_by_purchase = no
| obtain_by_trade = no
}}</nowiki>


You have to supply the specific item ID, not the item name.
You have to supply the specific item ID, not the item name.
Line 88: Line 100:


== Examples ==
== Examples ==
{{ItemInfoBox|1330000004}}
{{ItemInfoBox|1330000004
<nowiki>{{ItemInfoBox|1330000004}}</nowiki>
| obtain_by_purchase = no
| obtain_by_trade = no
}}
<pre><nowiki>{{ItemInfoBox|1330000004
| obtain_by_purchase = no
| obtain_by_trade = no
}}</nowiki></pre>




{{Clear}}
{{Clear}}
{{ItemInfoBox|1601006401}}
{{ItemInfoBox|1601006401
<nowiki>{{ItemInfoBox|1601006401}}</nowiki>
| obtain_by_purchase = no
| obtain_by_trade = no
}}
<pre><nowiki>{{ItemInfoBox|1601006401
| obtain_by_purchase = no
| obtain_by_trade = no
}}</nowiki></pre>




{{Clear}}
{{Clear}}
{{ItemInfoBox|1022001402}}
{{ItemInfoBox|1022001402
<nowiki>{{ItemInfoBox|1022001402}}</nowiki>
| obtain_by_purchase = no
| obtain_by_trade = no
}}
<pre><nowiki>{{ItemInfoBox|1022001402
| obtain_by_purchase = no
| obtain_by_trade = yes
}}</nowiki></pre>





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.


How to find Item ID

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

icon
Pukui Slice
Normal
Weight: 0.080
Max stack: 20

A small juicy piece. The ancients loved to enjoy them for dessert.
Price: 20 Rupee
Selling price: 5 Rupee
{{ItemInfoBox|1330000004
| obtain_by_purchase = no
| obtain_by_trade = no
}}


icon
Flatro Card
Card
Dagger
Weight: 0.001
Max stack: 20
This item can't be sold.

A magic card enchanted with Flatro Spirit.
By casting the spell written on this card you can transfer the spirit into a piece of equipment.

When enchanted:
Melee Defense Penetration +3
{{ItemInfoBox|1601006401
| obtain_by_purchase = no
| obtain_by_trade = no
}}


icon
Reinforced Wooden Chestpiece
Armor
Weight: 2.500
Max Durability: 1260
Level 11 required.
5 Strength required.
Dyeable Item

Physical Defense +7
Maximum Health +50
Decent protection, although not very durable.
Price: 3712 Rupee
Selling price: 928 Rupee
{{ItemInfoBox|1022001402
| obtain_by_purchase = no
| obtain_by_trade = yes
}}