Difference between revisions of "Template:Vendor item table result format"
Jump to navigation
Jump to search
m |
m |
||
Line 8: | Line 8: | ||
| {{#show:{{#var:vitr_area}}|?Located in|default=–}} | | {{#show:{{#var:vitr_area}}|?Located in|default=–}} | ||
}} }} | }} }} | ||
| style="text-align:{{#if:{{#var:showCostText|}}|left| | | style="text-align:{{#if:{{#var:showCostText|}}|left|left}}" | <!-- 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}}}}) / }}<!-- Quantity | ||
--> {{#arraymap: {{#replace:{{{6|}}}| |}}<!--fix for languages using nbsp as thousand separators --> | ) | @@@ | {{currency|{{#replace:{{#explode:@@@| }}|,|}}| {{#sub:@@@|{{#pos:__@@@| }}}}|text={{#if:{{#var:showCostText|}}|+}}}} | + }} | --> {{#arraymap: {{#replace:{{{6|}}}| |}}<!--fix for languages using nbsp as thousand separators --> | ) | @@@ | {{currency|{{#replace:{{#explode:@@@| }}|,|}}| {{#sub:@@@|{{#pos:__@@@| }}}}|text={{#if:{{#var:showCostText|}}|+}}}} | + }} | ||
</includeonly><noinclude> | </includeonly><noinclude> |
Revision as of 15:03, 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:
- Vendor subobject
- Sells item
- Has vendor
- Has vendor section
- Has vendor location
- Has item cost
- Has item quantity
See also
- {{Vendor list result format}} - a similar template used by {{Vendor list}}.