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

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
m
m
Line 9: Line 9:
   }} }}
   }} }}
| style="text-align:{{#if:{{#var:showCostText|}}|left|right}}" | <!-- min qty --> {{#vardefine:item_min_output|{{#explode:{{{7|1}}}|(|0}}}}<!-- max qty -->{{#vardefine:item_max_output|{{#replace:{{#explode:{{{7}}}|(|1}}|)|}}}}<!-- check -->{{#ifeq:{{#var:item_min_output}}|1|<!--Nothing-->|({{#var:item_min_output}}{{#if:{{#var:item_max_output}}|-{{#var:item_max_output}}}})&nbsp;/&nbsp;}}<!-- Quantity
| style="text-align:{{#if:{{#var:showCostText|}}|left|right}}" | <!-- min qty --> {{#vardefine:item_min_output|{{#explode:{{{7|1}}}|(|0}}}}<!-- max qty -->{{#vardefine:item_max_output|{{#replace:{{#explode:{{{7}}}|(|1}}|)|}}}}<!-- check -->{{#ifeq:{{#var:item_min_output}}|1|<!--Nothing-->|({{#var:item_min_output}}{{#if:{{#var:item_max_output}}|-{{#var:item_max_output}}}})&nbsp;/&nbsp;}}<!-- Quantity
--> {{#arraymap: {{#replace:{{{6|}}}| |}}<!--fix for languages using nbsp as thousand separators -->, | ), | @@@ | {{currency|{{#replace:{{#explode:@@@| }}|,|}}| {{#sub:@@@|{{#pos:__@@@| }}}}|text={{#if:{{#var:showCostText|}}|+}}}} | &nbsp;+&nbsp; }}
--> "{{{6|}}}"{{#arraymap: {{#replace:{{{6|}}}| |}}<!--fix for languages using nbsp as thousand separators -->, | ), | @@@ | {{currency|{{#replace:{{#explode:@@@| }}|,|}}| {{#sub:@@@|{{#pos:__@@@| }}}}|text={{#if:{{#var:showCostText|}}|+}}}} | &nbsp;+&nbsp; }}
</includeonly><noinclude>
</includeonly><noinclude>
This semantic result template is used for formatting results from {{tl|Vendor item table row}} and {{tl|Vendor table}}. The following parameters are passed to the template:
This semantic result template is used for formatting results from {{tl|Vendor item table row}} and {{tl|Vendor table}}. The following parameters are passed to the template:

Revision as of 14:12, 28 August 2018

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
  3. Has vendor
  4. Has vendor section
  5. Has vendor location
  6. Has item cost
  7. Has item quantity

See also