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

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
m
m
Line 5: Line 5:
| style="text-align:left; padding-top: 0.4em;" | <!-- Quantity -->{{#vardefine:item_min_qty|{{#explode:{{#var:item_data}}|,|1}}}}{{#vardefine:item_max_qty|{{#explode:{{#var:item_data}}|,|2}}}}{{#ifeq:{{#var:item_min_qty}}|1||({{#var:item_min_qty}}{{#ifeq:{{#var:item_max_qty}}|?||-{{#var:item_max_qty}}}})&nbsp;/&nbsp;}}<!-- Costs -->{{#arraymap:{{{9|}}}^{{{10|}}}^{{{11|}}}^{{{12|}}}|^|@@@|
| style="text-align:left; padding-top: 0.4em;" | <!-- Quantity -->{{#vardefine:item_min_qty|{{#explode:{{#var:item_data}}|,|1}}}}{{#vardefine:item_max_qty|{{#explode:{{#var:item_data}}|,|2}}}}{{#ifeq:{{#var:item_min_qty}}|1||({{#var:item_min_qty}}{{#ifeq:{{#var:item_max_qty}}|?||-{{#var:item_max_qty}}}})&nbsp;/&nbsp;}}<!-- Costs -->{{#arraymap:{{{9|}}}^{{{10|}}}^{{{11|}}}^{{{12|}}}|^|@@@|
{{#if:@@@|{{#vardefine:item_cost|{{#tag:normalizerec|@@@}}}}<!--
{{#if:@@@|{{#vardefine:item_cost|{{#tag:normalizerec|@@@}}}}<!--
-->"IC:{{#explode:{{#var:item_cost}}|,|0}}x{{#explode:{{#var:item_cost}}|,|1}}"{{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;}}
-->"{{#var:item_cost}}~IC:{{#explode:{{#var:item_cost}}|,|0}}x{{#explode:{{#var:item_cost}}|,|1}}"{{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;}}
</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:

Revision as of 20:35, 13 November 2018

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. Has vendor
  3. Has vendor section
  4. Has vendor location
  5. Sells item 1
  6. Sells item 2
  7. Sells item 3
  8. Sells item 4
  9. Has item cost 1
  10. Has item cost 2
  11. Has item cost 3
  12. Has item cost 4