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

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
(Undo revision 703495 by Dr Agon (talk))
Tag: Undo
Line 13: Line 13:
   | {{#show:{{#var:vitr_area}}|?Located in|default=–}}
   | {{#show:{{#var:vitr_area}}|?Located in|default=–}}
   }} }}-->
   }} }}-->
| style="text-align:{{#if:{{#var:showCostText|}}|left|left}}" | {{#arraymap:{{#replace:{{#replace:{{{9|}}}^{{{10|}}}^{{{11|}}}^{{{12|}}}|<|(}}|>|)}} |^| @@@ | {{#if:@@@|{{#vardefine:currency_amount|{{#explode:@@@|(|0}}}}{{#vardefine:currency_details|{{#sub:{{#explode:@@@|(|1}}|0|-1}}}}}}<!--
| style="text-align:{{#if:{{#var:showCostText|}}|left|left}}" | {{#arraymap:{{{9|}}}^{{{10|}}}^{{{11|}}}^{{{12|}}} |^| @@@ | {{#if:@@@|{{#vardefine:currency_amount|{{#explode:@@@|(|0}}}}{{#vardefine:currency_details|{{#sub:{{#explode:@@@|(|1}}|0|-1}}}}}}<!--
-->{{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; }}
-->{{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|}}}}}}}}}|—}}
|<!--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|}}}}}}}}}|—}}

Revision as of 20:55, 15 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