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

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
Line 9: Line 9:
{{#if:@@@|{{#vardefine:item_cost|{{#normalizerec:@@@}}}}<!--
{{#if:@@@|{{#vardefine:item_cost|{{#normalizerec:@@@}}}}<!--
-->{{currency|{{#explode:{{#var:item_cost}}|,<nowiki> </nowiki>|0}}|{{#if:T|{{#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;}}{{#switch:{{#show:{{#if:T|{{#explode:{{#var:item_cost}}|,<nowiki> </nowiki>|1}}}}|?Has context}}|Item|Currency=|#default=[[Category:Pages with non-item vendor costs]]{{#set:Has non-item vendor cost=true}}}}|Free}}
-->{{currency|{{#explode:{{#var:item_cost}}|,<nowiki> </nowiki>|0}}|{{#if:T|{{#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;}}{{#switch:{{#show:{{#if:T|{{#explode:{{#var:item_cost}}|,<nowiki> </nowiki>|1}}}}|?Has context}}|Item|Currency=|#default=[[Category:Pages with non-item vendor costs]]{{#set:Has non-item vendor cost=true}}}}|Free}}
|<!--Additional unlock requirements-->{{#if:{{{16|}}}{{{17|}}}|{{#if:{{{16|}}}|{{{16|}}}<br>}}{{#if:{{{18|}}}||{{#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|}}}}}}}}}|—}}
</includeonly><noinclude>
</includeonly><noinclude>
This semantic result template is used for formatting results from {{tl|vendor list}} and {{tl|vendor table}}. The following parameters are passed to the template:
This semantic result template is used for formatting results from {{tl|vendor list}} and {{tl|vendor table}}. The following parameters are passed to the template:
Line 28: Line 28:
#Has item additional requirement (16)
#Has item additional requirement (16)
#Has vendor.Has vendor quest unlock (17)
#Has vendor.Has vendor quest unlock (17)
#Suppress vendor unlock (18)
#Has vendor.Has vendor misc unlock (18)
#Suppress vendor unlock (19)


[[Category:Vendor formatting templates]]
[[Category:Vendor formatting templates]]
[[Category:Semantic result templates]]
[[Category:Semantic result templates]]
</noinclude>
</noinclude>

Revision as of 05:24, 13 November 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.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)