Template:ShopInfoRow: Difference between revisions

From Ymirheim Wiki
No edit summary
Tag: Reverted
(Undo revision 14492 by Neris (talk))
Tag: Undo
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><tr>
<includeonly><tr>
<td>{{ItemLink|{{{1}}}}}</td>
<td>{{ItemLink|{{{1}}}}}</td>
<td>{{PriceFormatted| {{#yh_data:item_prototypes|{{{1}}}|Price}} }}</td><!--
<td data-sort-value="{{#yh_data:item_prototypes|{{{1}}}|Price}}">{{PriceFormatted| {{#yh_data:item_prototypes|{{{1}}}|Price}} }}</td>{{#if:{{{withLevel|}}}|<td>{{#ifeq:{{#yh_data:item_prototypes|{{{1}}}|Req_BaseLevel}}|0|| {{#yh_data:item_prototypes|{{{1}}}|Req_BaseLevel}} }}</td>}}{{#if:{{{withPart|}}}|<td>{{#ifeq:{{#yh_data:item_prototypes|{{{1}}}|Part}}|0|| {{ItemEquipmentPartName|{{#yh_data:item_prototypes|{{{1}}}|Part}}}} }}</td>}}{{#if:{{{withStatusEffect|}}}|<td>{{#if:{{#yh_data:item_prototypes|{{{1}}}|StatusEffectId}}| {{#yh_data_format:{{#yh_data:status_effects|{{{1}}}|Description}}}}  }}</td>}}{{#if:{{{withDescription|}}}|<td>{{#yh_data_format:{{#yh_data:item_prototypes|{{{1}}}|Description}}}}</td>}}
-->{{#if:{{{withStatusEffect|}}}|<td>{{#if:{{#yh_data:item_prototypes|{{{1}}}|StatusEffectId}}| {{#yh_data_format:{{#yh_data:status_effects|{{{1}}}|Description}}}}  }}</td>}}<!--
</tr></includeonly><noinclude>
-->{{#if:{{{withDescription|}}}|<td>{{#yh_data_format:{{#yh_data:item_prototypes|{{{1}}}|Description}}}}</td>}}<!--
--></tr></includeonly><noinclude>
This template is used to render a table row for the NPC shop item list.
This template is used to render a table row for the NPC shop item list.


== Examples ==
== Examples ==


<pre><nowiki>{{ShopInfoRow|1310100101}}</nowiki></pre>
<pre><nowiki>
{{ShopInfoRow|1310100101}}
{{ShopInfoRow|1022001401|withLevel=1|withPart=1|withStatusEffect=1|withDescription=1}}
</nowiki></pre>
<table class="wikitable">
<table class="wikitable">
{{ShopInfoRow|1310100101}}
{{ShopInfoRow|1310100101}}
{{ShopInfoRow|1022001401|withLevel=1|withPart=1|withStatusEffect=1|withDescription=1}}
</table>
</table>


[[Category:Game Data Templates{{#translation:}}]]
[[Category:Game Data Templates{{#translation:}}]]
</noinclude>
</noinclude>

Latest revision as of 17:51, 18 July 2024

This template is used to render a table row for the NPC shop item list.

Examples

{{ShopInfoRow|1310100101}}
{{ShopInfoRow|1022001401|withLevel=1|withPart=1|withStatusEffect=1|withDescription=1}}
icon Small Healing Potion 95 Rupee
icon Wooden Chestpiece 2712 Rupee10ArmorPhysical Defense +7Decent protection, although not very durable.