Difference between revisions of "Template:Vendor table row result format"

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
m
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{STFI|icon={{#if:{{{3|}}}|{{#explode:{{{3}}}|:|1}}|{{{1}}}.png}}|link={{{1}}}|size=small}} <!--
<includeonly>{{#vardefine:item_rarities|}}{{#vardefine:item_types|}}{{#vardefine:item_levels|}}{{#vardefine:data_store_obj|}}{{#arraymap:{{{item|}}}|+|@@@|<!--
-->&nbsp;{{#if: {{{2|}}} |[[{{{1}}}|{{{2|{{{1}}}}}}]] | [[{{{1}}}]] }} {{#ifexpr: {{#explode:{{{userparam|0}}}|-|0}} > 1 | ({{{userparam}}}) }}<!--
--><!-- Item page -->{{#iferror:{{#expr:{{#explode:{{#vardefineecho:item_qty_data|{{#explode:@@@| |0}}}}|&|0}}}}|{{#vardefine:item_qty_data|1}}{{#vardefine:item_page|@@@}}|{{#vardefine:item_page|{{#sub:@@@|{{#pos:@@@| }}}}}} }}<!--
-->{{#ifeq:{{#var:showType}}   | true | {{!!}} style="text-align:center" {{!}} {{#if: {{{4|}}} | {{#if: {{{3|}}} | {{{3}}} [[{{lcfirst:{{{4|}}}}}]] | [[{{{4|}}}]] }} | }} }}<!--
--><!-- Rarity -->{{#vardefine:item_rarities|{{#var:item_rarities}}<br>{{#show:{{#var:item_page}}|?Has item rarity|link=none|outro=<br>|default=—}}}}<!--
-->{{#ifeq:{{#var:showRarity}} | true | {{!!}} style="text-align:center" {{!}} {{#if: {{{5|}}} | {{#arraymap:{{{5}}}|,|@@@|{{rarity|@@@}}}}| }} }}<!--
--><!-- Types -->{{#vardefine:item_types|{{#var:item_types}}<br>{{#show:{{#var:item_page}}|?Has item type|link=none|outro=<br>|default=—}}}}<!--
-->{{#ifeq:{{#var:showLevel}} | true | {{!!}} style="text-align:center" {{!}} {{#if: {{{6|}}}  | {{{6}}} | — }} }}</includeonly><noinclude>
--><!-- Levels -->{{#vardefine:item_levels|{{#var:item_levels}}{{#show:{{#var:item_page}}|?Has level requirement|link=none|outro=<br>|default=—}}}}<!--
    --><!-- Item quantity -->{{#vardefine:item_qty|{{#explode:{{#var:item_qty_data|1}}|&|0}}}}{{#vardefine:item_qty_min|{{#explode:{{#var:item_qty|1}}|-|0}}}}{{#vardefine:item_qty_max|{{#explode:{{#var:item_qty}}|-|1}}}}<!--
    --><!-- Item HQ? -->{{#vardefine:item_hq|{{#explode:{{#var:item_qty_data}}|&|1}}}}<!--
--><!-- Data Store Obj -->{{#vardefine:data_store_obj|{{#var:data_store_obj}}{{#if:{{#var:data_store_obj}}|^}}{{#var:item_page}};{{#var:item_qty_min}};{{#var:item_qty_max|?}};{{#if:{{#var:item_hq}}|true|false}}}}<!--
-->{{{{#if:{{#var:item_hq}}|STFI HQ|STFI}}|icon={{#if:{{#vardefineecho:item_icon|{{#explode:{{#show:{{#var:item_page}}|?Has game icon|link=none}}|:|1}}}}|{{#var:item_icon}}|{{#var:item_page}}.png}}|link={{#var:item_page}}|size=small}} {{#if:{{#var:item_hq}}|{{HQ|12|dark=y}}}} <!--
-->&nbsp;{{#if: {{#vardefineecho:item_name|{{#show:{{#var:item_page}}|?Has canonical name}}}} |[[{{#var:item_page}}|{{#var:item_name}}]] | [[{{#var:item_page}}]] }} {{#ifexpr: {{#var:item_qty_min|1}} > 1 | ({{#var:item_qty_min}}{{#if:{{#var:item_qty_max}}|-{{#var:item_qty_max}}}}) }}|<br>}}<!--
-->{{#ifeq:{{#var:showType}}   | true | {{!!}} style="text-align:center" {{!}} {{#arraymap:{{#var:item_types}}|<br>|@@@|{{#arraymap:@@@|,|@@@@|{{#ifeq:@@@@|—|—|[[@@@@]]}}|,&nbsp;}}|<br>}} }}<!--
-->{{#ifeq:{{#var:showRarity}} | true | {{!!}} style="text-align:center" {{!}} {{#arraymap:{{#var:item_rarities}}|<br>|@@@|{{#ifeq:@@@|—|—|{{rarity|@@@}}}}|<br>}} }}<!--
-->{{#ifeq:{{#var:showLevel}}  | true | {{!!}} style="text-align:center" {{!}} {{#var:item_levels}} }}</includeonly><noinclude>
This template helps to format the row result for {{tl|Vendor table row}}. It contributes all columns apart from the cost.
This template helps to format the row result for {{tl|Vendor table row}}. It contributes all columns apart from the cost.
=== Parameters ===
#(pagename)
#Has canonical name
#Has game icon
#Has item type
#Has item rarity
#Has level requirement
*userparam = quantity
<!-- == Note ==
* Also used by [[Template:Service table result format]]. -->


[[Category:Vendor formatting templates]][[Category:Semantic result templates]]
[[Category:Vendor formatting templates]][[Category:Semantic result templates]]
</noinclude>
</noinclude>

Latest revision as of 21:15, 22 December 2023

This template helps to format the row result for {{Vendor table row}}. It contributes all columns apart from the cost.