Template:ItemInfoBox/pt-br: Difference between revisions

From Ymirheim Wiki
(Created page with "Espírito")
(Updating to match new version of source page)
 
(30 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><templatestyles src="Template:ItemInfoBox/styles.css"/><div class="item-infobox"><!--
<includeonly><templatestyles src="Template:InfoBox/styles.css"/><templatestyles src="Template:ItemInfoBox/styles.css"/><div class="infobox-wrapper"><!--
 
-->{{#if:{{{hint|}}}|<div class="infobox-hint">{{{hint|}}}</div>}}<!--
 
--><div class="infobox item-infobox"><!--


-->[[File:Item Icon {{#yh_data:item_prototypes|{{{1}}}|Icon}}.png|64px|icon]]<!--
-->[[File:Item Icon {{#yh_data:item_prototypes|{{{1}}}|Icon}}.png|64px|icon]]<!--


--><span class="heading grade-{{#yh_data:item_prototypes|{{{1}}}|Grade}}">{{#yh_data:item_prototypes|{{{1}}}|Name}}</span><br/><!--
--><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 = Consumível
  | 1 = Consumível
  | 2 = Material
  | 2 = Material
Line 21: Line 25:
  | 31 = Espírito
  | 31 = Espírito
  | 32 = Espírito
  | 32 = Espírito
}}{{#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/>}}{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|Req_Equip_Part}} |19| {{ItemWeaponRequirements|{{{1}}}}} |{{ItemEquipmentPartName|{{#yh_data:item_prototypes|{{{1}}}|Req_Equip_Part}}}} }}
| 1 = Top
| {{ItemEquipmentPartName|{{#yh_data:item_prototypes|{{{1}}}|Part}}}} }}</div><!--
| 2 = Armor
| 6 = Shield
| 7 = Gloves
| 8 = Footwear
| 9 = Bottom
| 10 = Head Accessory
| 11 = Backpack
| 12 = Cape
| 13 = Face Accessory
| 14 = Ring
| 15 = Necklace
| 16 = Belt
| 17 = Earring
| 19 = Weapon
}}</div><br/><!--


-->Weight: {{padright:{{#expr: {{#yh_data:item_prototypes|{{{1}}}|Weight}} / 1000 }}|5}}<br/><!--
--><div style="clear: left;"></div><!--


-->{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|MaxStackQuantity}} | 1 || Max stack: {{#yh_data:item_prototypes|{{{1}}}|MaxStackQuantity}} }}<br/><!--
-->Peso: {{#expr: floor({{#yh_data:item_prototypes|{{{1}}}|Weight}} / 1000) }}.{{padleft:{{#expr: {{#yh_data:item_prototypes|{{{1}}}|Weight}} mod 1000 }}|3}}<br/><!--
 
-->{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|MaxStackQuantity}} | 1 || Pilha máxima: {{#yh_data:item_prototypes|{{{1}}}|MaxStackQuantity}}<br/> }}<!--
 
-->{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|MaxDurability}} | 0 || Durabilidade máxima: {{#yh_data:item_prototypes|{{{1}}}|MaxDurability}}<br/> }}<!--
 
 
 
-->{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|CanTrade}} | 0 | Este item não pode ser trocado. <br/> }}<!--
 
-->{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|CanSell}} | 0 | Este item não pode ser vendido. <br/> }}<!--
 
-->{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|CanThrow}} | 0 | Este item não pode ser descartado. <br/> }}<!--
 
 
-->{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|Req_BaseLevel}} | 0 || Nível {{#yh_data:item_prototypes|{{{1}}}|Req_BaseLevel}} necessário. <br/> }}<!--
 
-->{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|Req_AllowMale}} | 0 | Apenas mulheres. <br/> }}<!--
 
-->{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|Req_AllowFemale}} | 0 | Apenas homens. <br/> }}<!--
 
-->{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|Req_STR}} | 0 || {{#yh_data:item_prototypes|{{{1}}}|Req_STR}} Força necessária. <br/> }}<!--
 
-->{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|Req_DEX}} | 0 || {{#yh_data:item_prototypes|{{{1}}}|Req_DEX}} Destreza necessária. <br/> }}<!--
 
-->{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|Req_INT}} | 0 || {{#yh_data:item_prototypes|{{{1}}}|Req_INT}} Inteligência necessária. <br/> }}<!--
 
-->{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|Req_CON}} | 0 || {{#yh_data:item_prototypes|{{{1}}}|Req_CON}} Concentração necessária. <br/> }}<!--
 
-->{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|Req_LUK}} | 0 || {{#yh_data:item_prototypes|{{{1}}}|Req_LUK}} Sorte necessária. <br/> }}<!--
 
-->{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|IsDyeing}} | 0 || Item tingível <br/> }}<!--
 
-->{{#ifeq: {{#yh_data:item_prototypes|{{{1}}}|CanSeal}} | 1 | Selado. <br/> }}<!--
 
 
 
 
-->{{#if:{{#yh_data:item_prototypes|{{{1}}}|StatusEffectId}}| <hr/>{{#yh_data_format:{{#yh_data:status_effects|{{{1}}}|Description}}|full}}  }}<!--


--><hr/><!--
--><hr/><!--
Line 49: Line 76:
-->{{#ifeq:{{#yh_data:item_prototypes|{{{1}}}|Price}}|0||<!--
-->{{#ifeq:{{#yh_data:item_prototypes|{{{1}}}|Price}}|0||<!--
--><hr/><!--
--><hr/><!--
-->Price: {{PriceFormatted| {{#yh_data:item_prototypes|{{{1}}}|Price}} }}<br/><!--
-->Preço: {{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|Preço de venda: {{PriceFormatted| {{#expr: {{#yh_data:item_prototypes|{{{1}}}|Price}} / 4 }} }}}}<!--
-->}}<!--
-->}}<!--


--></div></includeonly><noinclude>
--></div></div></includeonly><noinclude>
[[Category:Game Data Templates]]
This template can be used to display an information box about a specific item on a page.
This template can be used to display an information box about a specific item on a page.


== 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 74: Line 104:


== 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}}
{{ItemInfoBox|1601006401
| obtain_by_purchase = no
| obtain_by_trade = no
}}
<pre><nowiki>{{ItemInfoBox|1601006401
| obtain_by_purchase = no
| obtain_by_trade = no
}}</nowiki></pre>
 
 
{{Clear}}
{{ItemInfoBox|1022001402
| obtain_by_purchase = no
| obtain_by_trade = no
}}
<pre><nowiki>{{ItemInfoBox|1022001402
| obtain_by_purchase = no
| obtain_by_trade = yes
}}</nowiki></pre>
 
 
 
[[Category:Game Data Templates{{#translation:}}]]
 
</noinclude>
</noinclude>

Latest revision as of 13:08, 25 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
Fatia de Pukui
Normal
Peso: 0.080
Pilha máxima: 20

Um pequeno pedaço suculento. Os antigos adoravam apreciá-los como sobremesa.
Preço: 20 Rupee
Preço de venda: 5 Rupee
{{ItemInfoBox|1330000004
| obtain_by_purchase = no
| obtain_by_trade = no
}}


icon
Carta Flatro
Carta
Adaga
Peso: 0.001
Pilha máxima: 20
Este item não pode ser vendido.

Uma carta mágica encantada com o Espírito Flatro.
Ao lançar o feitiço escrito nesta carta, você pode transferir o espírito para um equipamento.

Quando encantado:
Penetração de Defesa Corpo a Corpo +3
{{ItemInfoBox|1601006401
| obtain_by_purchase = no
| obtain_by_trade = no
}}


icon
Peitoral de madeira reforçada
Armadura
Peso: 2.500
Durabilidade máxima: 1260
Nível 11 necessário.
5 Força necessária.
Item tingível

Defesa Física +7
Saúde Máxima +50
Proteção decente, embora não muito durável.
Preço: 3712 Rupee
Preço de venda: 928 Rupee
{{ItemInfoBox|1022001402
| obtain_by_purchase = no
| obtain_by_trade = yes
}}