Difference between revisions of "Template:Vendor item table result format"
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}}}}) / }}<!-- 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}}}}) / }}<!-- Quantity | ||
--> {{#arraymap: {{#replace:{{{6|}}}| |}}<!--fix for languages using nbsp as thousand separators -->, | ), | @@@ | {{currency|{{#replace:{{#explode:@@@| }}|,|}}| {{#sub:@@@|{{#pos:__@@@| }}}}|text={{#if:{{#var:showCostText|}}|+}}}} | + }} | --> "{{{6|}}}"{{#arraymap: {{#replace:{{{6|}}}| |}}<!--fix for languages using nbsp as thousand separators -->, | ), | @@@ | {{currency|{{#replace:{{#explode:@@@| }}|,|}}| {{#sub:@@@|{{#pos:__@@@| }}}}|text={{#if:{{#var:showCostText|}}|+}}}} | + }} | ||
</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:
- 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}}.