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

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
(creation)
 
 
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><span class="small item-icon thumb-icon" style="display: inline-block; overflow: hidden; width: 20px; height: 20px; vertical-align: middle;">[[{{#if:{{{3|}}} | {{{3}}} | File:{{{1}}}.png }}|20px|bottom|link={{{1}}}]]</span><!--
<includeonly>{{#vardefine:item_rarities|}}{{#vardefine:item_types|}}{{#vardefine:item_levels|}}{{#vardefine:data_store_obj|}}{{#arraymap:{{{item|}}}|+|@@@|<!--
-->&nbsp;{{#if: {{{2|}}} |[[{{{1}}}|{{{2|{{{1}}}}}}]] | [[{{{1}}}]] }} {{#ifexpr: {{{userparam|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: {{{5|}}} | {{#if: {{{4|}}} | {{{4}}} [[{{lcfirst:{{{5|}}}}}]] | [[{{{5|}}}]] }} | }} }}<!--
--><!-- 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: {{{6|}}} | {{#arraymap:{{{6}}}|,|@@@|{{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: {{{7|}}| {{{7}}} | }} }}<!--
--><!-- Levels -->{{#vardefine:item_levels|{{#var:item_levels}}{{#show:{{#var:item_page}}|?Has level requirement|link=none|outro=<br>|default=—}}}}<!--
-->{{#ifeq:{{#var:showFacts}} | true | {{!!}} {{#if: {{{8|}}} | {{#ifeq: {{{8|}}} | selectable | This item allows selection of stats. | {{item stat lookup|class={{{4|}}}|type={{{5|}}}|rarity={{{6|}}}|level={{{7|}}}}}{{prefix attributes|{{{8|}}}|rarity={{#var:rarity_std}}|supertype={{#var:supertype}}}}| — }} }}{{#if: {{{9|}}} | <br>{{item icon|{{{9}}}}} }} }}</includeonly><noinclude>
    --><!-- 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 item icon
#Has armor weight class
#Has item type
#Has item rarity
#Has level requirement
#Has equipment prefix
#Has upgrade component
*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.