Difference between revisions of "Template:Vendor list result format"

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
(Undo revision 645659 by Dr Agon (talk))
Tag: Undo
Line 2: Line 2:
                                               | {{#ifeq: {{{15|false}}} | true | title="Item currently unavailable" class="gray" }} }}
                                               | {{#ifeq: {{{15|false}}} | true | title="Item currently unavailable" class="gray" }} }}
{{#vardefine:item_data|{{#arraymap:{{{6|}}}^{{{7|}}}^{{{8|}}}^{{{9|}}}|^|@@@|{{#if:@@@|{{#ifeq:{{#explode:@@@|(|0}}|{{{userparam|}}}|{{#normalizerec:@@@}}|}}}}|}}}}
{{#vardefine:item_data|{{#arraymap:{{{6|}}}^{{{7|}}}^{{{8|}}}^{{{9|}}}|^|@@@|{{#if:@@@|{{#ifeq:{{#explode:@@@|(|0}}|{{{userparam|}}}|{{#normalizerec:@@@}}|}}}}|}}}}
| {{#vardefine:smw_name|{{{1|}}}{{#show:{{{2|}}}|?Has canonical name}}}} data-sort-value="{{#if: {{#var:smw_name}} | {{#var:smw_name}} | {{{2}}} }}" |  {{#if: {{#var:smw_name}} | [[{{{1}}}|{{#var:smw_name}}]] | [[{{{1}}}|{{{2}}}]] }}
| {{#vardefine:smw_name|{{#show:{{{2|}}}|?Has canonical name}}}} data-sort-value="{{#if: {{#var:smw_name}} | {{#var:smw_name}} | {{{2}}} }}" |  {{#if: {{#var:smw_name}} | [[{{{1}}}|{{#var:smw_name}}]] | [[{{{1}}}|{{{2}}}]] }}
{{#ifeq:{{#var:showSection|false}}|true| {{!}} style="max-width:180px;" {{!}} {{{3}}} }}
{{#ifeq:{{#var:showSection|false}}|true| {{!}} style="max-width:180px;" {{!}} {{{3}}} }}
| style="max-width:400px;" | {{#if:{{{4|}}}|{{cname|{{{4}}}}}|{{#show:{{{2|}}}|?Located in|default=–|sep=;}}}} ({{#if:{{{5|}}}|{{cname|{{{5}}}}}|{{#show:{{{2|}}}|?Has x coordinate|default=–|sep=;}}}}, {{#if:{{{5|}}}|{{cname|{{{5}}}}}|{{#show:{{{2|}}}|?Has y coordinate|default=–|sep=;}}}})
| style="max-width:400px;" | {{#if:{{{4|}}}|{{cname|{{{4}}}}}|{{#show:{{{2|}}}|?Located in|default=–|sep=;}}}} ({{#if:{{{5|}}}|{{cname|{{{5}}}}}|{{#show:{{{2|}}}|?Has x coordinate|default=–|sep=;}}}}, {{#if:{{{5|}}}|{{cname|{{{5}}}}}|{{#show:{{{2|}}}|?Has y coordinate|default=–|sep=;}}}})

Revision as of 19:15, 21 August 2023

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

  1. Vendor subobject (2)
  2. Has vendor (3)
  3. Has vendor section (4)
  4. Has vendor location (5)
  5. Sells item 1 (6)
  6. Sells item 2 (7)
  7. Sells item 3 (8)
  8. Sells item 4 (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 coordinates (14)
  14. Has vendor.Is historical (15)
  15. Is historical (16)