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

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
m (Protected "Template:Vendor item table result format" ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite)))
 
(27 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
|- {{#ifeq: {{{8|}}} | true | title="Vendor currently unavailable" class="gray" }}
|-  
| data-sort-value="{{{2}}}" | {{STFI|icon={{#if:{{#vardefineecho:item_icon_smw|{{#explode:{{#show:{{{2}}}|?Has game icon|link=none}}|:|1}}}}|{{#var:item_icon_smw}}|{{{2}}}.png}}|link={{{2}}}|size=small}}&nbsp;[[{{{2}}}|{{#show:{{#explode:{{{2}}}|#}}|?Has canonical name|default={{#explode:{{{2}}}|#}}}}]]
| data-sort-value="" | {{#arraymap:{{{2|}}}^{{{3|}}}^{{{4|}}}^{{{5|}}}|^|@@@|{{#vardefine:name_split|{{#rpos:@@@|(}}}}{{#vardefine:item_page|{{#sub:@@@|0|{{#var:name_split}}-1}}}}{{#vardefine:item_details|{{#sub:{{#sub:@@@|{{#var:name_split}}|-1}}|1|0}}}}<!--
| {{cname|{{{3}}}}} {{#ifeq: {{{4|}}} | General || ({{{4}}}) }}
--><!-- 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}}<!--
| {{#if:{{{5|}}}|[[{{#vardefineecho:vitr_area|{{{5|}}}}}]]}}
--><!-- HQ -->{{#ifeq:{{#explode:{{#var:item_details}}|,|2}}|true|&nbsp;{{HQ|12|}}}}<!--
| {{#if: {{#var:vitr_area}} | {{#if: {{#pos: {{#var:vitr_area}} |;}}<!-- check if more than one area -->
--><!-- Name -->&nbsp;[[{{#var:item_page}}|{{#show:{{#var:item_page}}|?Has canonical name|default={{#var:item_page}}}}]]<!--
   | - <!-- more than one area, don't show every parent zone (could be duplicates) -->
--><!-- Quantity -->{{#vardefine:item_min_qty|{{#explode:{{#var:item_details}}|,|0}}}}{{#vardefine:item_max_qty|{{#explode:{{#var:item_details}}|,|1}}}}{{#ifeq:{{#var:item_min_qty}}|1||&nbsp;({{#var:item_min_qty}}{{#ifeq:{{#var:item_max_qty}}|?||-{{#var:item_max_qty}}}})}}|<br>}}
| {{#var:item_data}}{{cname|{{{6}}}}}  
| {{#if:{{{8|}}}|[[{{#vardefineecho:vitr_area|{{{8|}}}}}]]}} ({{#show:{{{6}}}|?Has x coordinate|default=}}, {{#show:{{{6}}}|?Has y coordinate|default=}})
| {{{7|}}}<!-- comment out unneeded region column
| {{#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=–}}
   | {{#show:{{#var:vitr_area}}|?Located in|default=–}}
   }} }}
   }} }}-->
| style="text-align:{{#if:{{#var:showCostText|}}|left|left}}" | <!-- min qty --> {{#vardefine:item_min_output|{{#explode:{{{7|1}}}|(|0}}}}<!-- max qty -->{{#vardefine:item_max_output|{{#replace:{{#explode:{{{7}}}|(|1}}|)|}}}}<!-- check -->{{#ifeq:{{#var:item_min_output}}|1|<!--Nothing-->|({{#var:item_min_output}}{{#if:{{#var:item_max_output}}|-{{#var:item_max_output}}}})&nbsp;/&nbsp;}}<!-- Quantity
| style="text-align:{{#if:{{#var:showCostText|}}|left|left}}" | {{#arraymap:{{{9|}}}^{{{10|}}}^{{{11|}}}^{{{12|}}} |^| @@@ | {{#if:@@@|{{#vardefine:currency_amount|{{#explode:@@@|(|0}}}}{{#vardefine:currency_details|{{#replace:{{#replace:{{#sub:{{#explode:@@@|(|1}}|0|-1}}|<|(}}|>|)}}}}}}<!--
--> {{#arraymap: {{#replace:{{{6|}}}| |}}<!--fix for languages using nbsp as thousand separators --> | ) | @@@ | {{currency|{{#replace:{{#explode:@@@| }}|,|}}| {{#sub:@@@|{{#pos:__@@@| }}}}|text={{#if:{{#var:showCostText|}}|+}}}} | &nbsp;+&nbsp; }}
-->{{currency|{{#var:currency_amount}}|{{#explode:{{#var:currency_details}}|,|0}}|hq={{#ifeq:{{#explode:{{#var:currency_details}}|,|2}}|true|y|}}| text = {{#if:{{#var:showCostText|}}|+}}}} {{#ifeq:{{#vardefineecho:item_collectability|{{#explode:{{#var:currency_details}}|,|1}}|?||({{Collectable|12}} {{#var:item_collectability}})}} }} | &nbsp;+&nbsp; }}
|<!--Additional unlock requirements-->{{#if:{{{16|}}}{{{17|}}}{{{18|}}}|{{#if:{{{16|}}}|{{{16|}}}<br>}}{{#if:{{{18|}}}|{{{18|}}}<br>}}{{#if:{{{19|}}}||{{#if:{{{17|}}}|{{questlink|{{#show:{{{17|}}}|?Has quest type}}|{{{17|}}}}}}}}}|}}
</includeonly><noinclude>
</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:
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
#Vendor subobject (2)
#Sells item
#Sells item 1 (3)
#Has vendor
#Sells item 2 (4)
#Has vendor section
#Sells item 3 (5)
#Has vendor location
#Sells item 4 (6)
#Has item cost
#Has vendor (7)
#Has item quantity
#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 (13)
#Has vendor.Is historical (14)
#Is historical (15)
#Has item additional requirement (16)
#Has vendor.Has vendor quest unlock (17)
#Has vendor.Has vendor misc unlock (18)
#Suppress vendor unlock (19)


== See also ==
== See also ==

Latest revision as of 00:48, 21 January 2024

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)
  2. Sells item 1 (3)
  3. Sells item 2 (4)
  4. Sells item 3 (5)
  5. Sells item 4 (6)
  6. Has vendor (7)
  7. Has vendor section (8)
  8. Has vendor location (9)
  9. Has item cost 1 (10)
  10. Has item cost 2 (11)
  11. Has item cost 3 (12)
  12. Has item cost 4 (13)
  13. Has vendor.Is historical (14)
  14. Is historical (15)
  15. Has item additional requirement (16)
  16. Has vendor.Has vendor quest unlock (17)
  17. Has vendor.Has vendor misc unlock (18)
  18. Suppress vendor unlock (19)

See also