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

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
(Blanked the page)
Line 1: Line 1:
<includeonly>
|- {{#ifeq: {{{8|}}} | true | title="Vendor currently unavailable" class="gray" }}
| data-sort-value="" | {{#arraymap:{{{2|}}}^{{{3|}}}^{{{4|}}}^{{{5|}}}|^|@@@|{{#vardefine:item_data|{{Normalize record|@@@}}}}{{#vardefine:item_page|{{#explode:{{#var:item_data}}|,|0}}}}<!--
--><!-- Icon -->{{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}}<!--
--><!-- HQ -->{{#ifeq:{{#explode:{{#var:item_data}}|,|3}}|true|&nbsp;{{HQ|12|dark=y}}}}<!--
--><!-- Name -->&nbsp;[[{{#var:item_page}}|{{#show:{{#var:item_page}}|?Has canonical name|default={{#var:item_page}}}}]]<!--
--><!-- Quantity -->{{#vardefine:item_min_qty|{{#explode:{{#var:item_data}}|,|1}}}}{{#vardefine:item_max_qty|{{#explode:{{#var:item_data}}|,|2}}}}{{#ifeq:{{#var:item_min_qty}}|1||&nbsp;({{#var:item_min_qty}}{{#ifeq:{{#var:item_max_qty}}|?||-{{#var:item_max_qty}}}})}}|<br>}}
| {{cname|{{{6}}}}} {{#ifeq: {{{7|}}} | General || ({{{7}}}) }}
| {{#if:{{{8|}}}|[[{{#vardefineecho:vitr_area|{{{8|}}}}}]]}}
| {{#if: {{#var:vitr_area}} | {{#if: {{#pos: {{#var:vitr_area}} |;}}<!-- check if more than one area -->
  | &ndash; <!-- more than one area, don't show every parent zone (could be duplicates) -->
  | {{#show:{{#var:vitr_area}}|?Located in|default=–}}
  }} }}
| style="text-align:{{#if:{{#var:showCostText|}}|left|left}}" | {{#arraymap:{{{9|}}}^{{{10|}}}^{{{11|}}}^{{{12|}}} |^| @@@ | {{#if:@@@|{{#vardefine:item_cost|{{Normalize record|@@@}}}}<!--
-->{{currency|{{#explode:{{#var:item_cost}}|,<nowiki> </nowiki>|0}}|{{#explode:{{#var:item_cost}}|,<nowiki> </nowiki>|1}}|hq={{#ifeq:{{#explode:{{#var:item_cost}}|,<nowiki> </nowiki>|3}}|true|y|}}| text = {{#if:{{#var:showCostText|}}|+}}}} {{#ifeq:{{#vardefineecho:item_collectability|{{#explode:{{#var:item_cost}}|,<nowiki> </nowiki>|2}}}}|?||({{Collectable|12}} {{#var:item_collectability}})}} }} | &nbsp;+&nbsp; }}
</includeonly><noinclude>
This semantic result template is used for formatting results from {{tl|Vendor item table row}} and {{tl|Vendor table}}. The following parameters are passed to the template:
#Vendor subobject
#Sells item 1
#Sells item 2
#Sells item 3
#Sells item 4
#Has vendor
#Has vendor section
#Has vendor location
#Has item cost 1
#Has item cost 2
#Has item cost 3
#Has item cost 4


== See also ==
* {{tl|Vendor list result format}} - a similar template used by {{tl|Vendor list}}.
[[Category:Vendor formatting templates]][[Category:Semantic result templates]]
</noinclude>

Revision as of 15:52, 15 August 2019

This semantic result template is used for formatting results from {{Vendor item table row}} and {{Vendor table}}. The following parameters are passed to the template:

  1. Vendor subobject
  2. Sells item 1
  3. Sells item 2
  4. Sells item 3
  5. Sells item 4
  6. Has vendor
  7. Has vendor section
  8. Has vendor location
  9. Has item cost 1
  10. Has item cost 2
  11. Has item cost 3
  12. Has item cost 4

See also