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

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
Tag: Reverted
 
(One intermediate revision by one other user not shown)
Line 4: Line 4:
--><!-- Types -->{{#vardefine:item_types|{{#var:item_types}}<br>{{#show:{{#var:item_page}}|?Has item type|link=none|outro=<br>|default=—}}}}<!--
--><!-- Types -->{{#vardefine:item_types|{{#var:item_types}}<br>{{#show:{{#var:item_page}}|?Has item type|link=none|outro=<br>|default=—}}}}<!--
--><!-- Levels -->{{#vardefine:item_levels|{{#var:item_levels}}{{#show:{{#var:item_page}}|?Has level requirement|link=none|outro=<br>|default=—}}}}<!--
--><!-- Levels -->{{#vardefine:item_levels|{{#var:item_levels}}{{#show:{{#var:item_page}}|?Has level requirement|link=none|outro=<br>|default=—}}}}<!--
     --><!-- Item quantity --><!--
     --><!-- 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}}}}<!--
     --><!-- 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}}}}<!--
--><!-- 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}}}}<!--
-->{{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}}}} <!--
-->{{{{#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>}}<!--
-->&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:showType}}  | true | {{!!}} style="text-align:center" {{!}} {{#arraymap:{{#var:item_types}}|<br>|@@@|{{#arraymap:@@@|,|@@@@|{{#ifeq:@@@@|—|—|[[@@@@]]}}|,&nbsp;}}|<br>}} }}<!--

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.