Template:TradeInfoRow: Difference between revisions

From Ymirheim Wiki
No edit summary
No edit summary
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="wikitable"
<includeonly>|-
|+
!Items
!Level
!Materials
|-
|<!--
|<!--
-->{{TradeInfoItem|{{{1}}}|Products|0}}<!--
-->{{TradeInfoItem|{{{1}}}|Products|1}}<!--
-->{{TradeInfoItem|{{{1}}}|Products|2}}<!--
-->{{TradeInfoItem|{{{1}}}|Products|3}}<!--
-->{{TradeInfoItem|{{{1}}}|Products|4}}<!--
-->{{#ifeq: {{#yh_data:trade_data|{{{1}}}|RewardMoney}} |0||{{PriceFormatted| {{#yh_data:trade_data|{{{1}}}|RewardMoney}} }}<br/> }}<!--


-->{{#if:{{#explode:{{#yh_data:trade_data|{{{1}}}|Products}}|;|0}}|
-->
{{#explode:
|{{#yh_data:trade_data|{{{1}}}|RequiredLevel}}
{{#explode:{{#yh_data:trade_data|{{{1}}}|Products}}|;|0}}
|<!--
|,
|1
}}<!--
-->&nbsp;<!--
-->{{ItemLink|{{#explode:
{{#explode:{{#yh_data:trade_data|{{{1}}}|Products}}|;|0}}
|,
|0
}}
}} }}<br/><!--


-->{{#if:{{#explode:{{#yh_data:trade_data|{{{1}}}|Products}}|;|1}}|
-->{{TradeInfoItem|{{{1}}}|Materials1|0}}<!--
{{#explode:
-->{{TradeInfoItem|{{{1}}}|Materials1|1}}<!--
{{#explode:{{#yh_data:trade_data|{{{1}}}|Products}}|;|1}}
-->{{TradeInfoItem|{{{1}}}|Materials1|2}}<!--
|,
-->{{TradeInfoItem|{{{1}}}|Materials1|3}}<!--
|1
-->{{TradeInfoItem|{{{1}}}|Materials1|4}}<!--
}}<!--
-->{{#ifeq: {{#yh_data:trade_data|{{{1}}}|Cost}} |0||{{PriceFormatted| {{#yh_data:trade_data|{{{1}}}|Cost}} }}<br/> }}<!--
-->&nbsp;<!--
-->{{ItemLink|{{#explode:
{{#explode:{{#yh_data:trade_data|{{{1}}}|Products}}|;|1}}
|,
|0
}}
}} }}<br/><!--


-->{{#if:{{#explode:{{#yh_data:trade_data|{{{1}}}|Products}}|;|2}}|
--></includeonly><noinclude>
{{#explode:
{{#explode:{{#yh_data:trade_data|{{{1}}}|Products}}|;|2}}
|,
|1
}}<!--
-->&nbsp;<!--
-->{{ItemLink|{{#explode:
{{#explode:{{#yh_data:trade_data|{{{1}}}|Products}}|;|2}}
|,
|0
}}
}} }}<br/><!--


-->{{#if:{{#explode:{{#yh_data:trade_data|{{{1}}}|Products}}|;|3}}|
This template renders a single row in the trade info table.
{{#explode:
{{#explode:{{#yh_data:trade_data|{{{1}}}|Products}}|;|3}}
|,
|1
}}<!--
-->&nbsp;<!--
-->{{ItemLink|{{#explode:
{{#explode:{{#yh_data:trade_data|{{{1}}}|Products}}|;|3}}
|,
|0
}}
}} }}<br/><!--


-->{{#if:{{#explode:{{#yh_data:trade_data|{{{1}}}|Products}}|;|4}}|
== Examples ==
{{#explode:
{{#explode:{{#yh_data:trade_data|{{{1}}}|Products}}|;|4}}
|,
|1
}}<!--
-->&nbsp;<!--
-->{{ItemLink|{{#explode:
{{#explode:{{#yh_data:trade_data|{{{1}}}|Products}}|;|4}}
|,
|0
}}
}} }}<br/><!--


<pre><nowiki>{{TradeInfoRow|100101}}</nowiki></pre>
{| class="wikitable"
{{TradeInfoRow|100101}}
|}


-->
[[Category:Game Data Templates]]
|{{#yh_data:trade_data|{{{1}}}|RequiredLevel}}
</noinclude>
|
{{#explode: {{#explode:{{#yh_data:trade_data|{{{1}}}|Materials1}}|;|0}} |,|1}}&nbsp;{{ItemLink| {{#explode: {{#explode:{{#yh_data:trade_data|{{{1}}}|Materials1}}|;|0}} |,|0}} }}<br/>
{{#explode: {{#explode:{{#yh_data:trade_data|{{{1}}}|Materials1}}|;|1}} |,|1}}&nbsp;{{ItemLink| {{#explode: {{#explode:{{#yh_data:trade_data|{{{1}}}|Materials1}}|;|1}} |,|0}} }}<br/>
{{#explode: {{#explode:{{#yh_data:trade_data|{{{1}}}|Materials1}}|;|2}} |,|1}}&nbsp;{{ItemLink| {{#explode: {{#explode:{{#yh_data:trade_data|{{{1}}}|Materials1}}|;|2}} |,|0}} }}<br/>
{{#explode: {{#explode:{{#yh_data:trade_data|{{{1}}}|Materials1}}|;|3}} |,|1}}&nbsp;{{ItemLink| {{#explode: {{#explode:{{#yh_data:trade_data|{{{1}}}|Materials1}}|;|3}} |,|0}} }}<br/>
{{#explode: {{#explode:{{#yh_data:trade_data|{{{1}}}|Materials1}}|;|4}} |,|1}}&nbsp;{{ItemLink| {{#explode: {{#explode:{{#yh_data:trade_data|{{{1}}}|Materials1}}|;|4}} |,|0}} }}<br/>
|}

Latest revision as of 15:56, 10 July 2024


This template renders a single row in the trade info table.

Examples

{{TradeInfoRow|100101}}
icon Small Healing Potion ×1
1 icon Pukui Slice ×1
icon Empty Bottle ×1