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

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
Tag: Reverted
Line 7: Line 7:
--><!-- 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>}}
--><!-- 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}}}}}  {{#ifeq: {{{7|}}} | General || ({{{7}}}) }}
| {{#var:item_data}}{{cname|{{{6}}}}}  {{#ifeq: {{{7|}}} | General || ({{{7}}}) }}
| {{#if:{{{8|}}}|[[{{#vardefineecho:vitr_area|{{{8|}}}}}]]}} ({{#show:{{{6}}}|?Has x coordinate|default=}}, {{#show:{{{6}}}|?Has y coordinate|default=}})
| {{#if:{{{8|}}}|[[{{#vardefineecho:vitr_area|{{{8|}}}}}]]}} ({{#show:{{{6}}}|?Has x coordinate|default=}},{{#show:{{{6}}}|?Has y coordinate|default=}})
| {{#if: {{#var:vitr_area}} | {{#if: {{#pos: {{#var:vitr_area}} |;}}<!-- check if more than one area -->
| {{#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) -->
   | &ndash; <!-- more than one area, don't show every parent zone (could be duplicates) -->

Revision as of 21:07, 7 March 2022

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