Difference between revisions of "Template:Vendor item table result format"
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
| {{#var:item_data}}{{cname|{{{6}}}}} | | {{#var:item_data}}{{cname|{{{6}}}}} | ||
| {{#if:{{{8|}}}|[[{{#vardefineecho:vitr_area|{{{8|}}}}}]]}} ({{#show:{{{6}}}|?Has x coordinate|default=}}, {{#show:{{{6}}}|?Has y coordinate|default=}}) | | {{#if:{{{8|}}}|[[{{#vardefineecho:vitr_area|{{{8|}}}}}]]}} ({{#show:{{{6}}}|?Has x coordinate|default=}}, {{#show:{{{6}}}|?Has y coordinate|default=}}) | ||
| {{{7|}}} | | {{{7|}}}<!-- comment out unneeded region column | ||
| {{#if: {{#var:vitr_area}} | {{#if: {{#pos: {{#var:vitr_area}} |;}}<!-- check if more than one area --> | | {{#if: {{#var:vitr_area}} | {{#if: {{#pos: {{#var:vitr_area}} |;}}<!-- check if more than one area --> | ||
| – <!-- more than one area, don't show every parent zone (could be duplicates) --> | | – <!-- more than one area, don't show every parent zone (could be duplicates) --> | ||
| {{#show:{{#var:vitr_area}}|?Located in|default=–}} | | {{#show:{{#var:vitr_area}}|?Located in|default=–}} | ||
}} }} | }} }}--> | ||
| style="text-align:{{#if:{{#var:showCostText|}}|left|left}}" | {{#arraymap:{{{9|}}}^{{{10|}}}^{{{11|}}}^{{{12|}}} |^| @@@ | {{#if:@@@|{{#vardefine:currency_amount|{{#explode:@@@|(|0}}}}{{#vardefine:currency_details|{{#sub:{{#explode:@@@|(|1}}|0|-1}}}}}}<!-- | | style="text-align:{{#if:{{#var:showCostText|}}|left|left}}" | {{#arraymap:{{{9|}}}^{{{10|}}}^{{{11|}}}^{{{12|}}} |^| @@@ | {{#if:@@@|{{#vardefine:currency_amount|{{#explode:@@@|(|0}}}}{{#vardefine:currency_details|{{#sub:{{#explode:@@@|(|1}}|0|-1}}}}}}<!-- | ||
-->{{currency|{{#var:currency_amount}}|{{#explode:{{#var:currency_details}}|,|0}}|hq={{#ifeq:{{#explode:{{#var:currency_details}}|,|2}}|true|y|}}| text = {{#if:{{#var:showCostText|}}|+}}}} {{#ifeq:{{#vardefineecho:item_collectability|{{#explode:{{#var:currency_details}}|,|1}}|?||({{Collectable|12}} {{#var:item_collectability}})}} }} | + }} | -->{{currency|{{#var:currency_amount}}|{{#explode:{{#var:currency_details}}|,|0}}|hq={{#ifeq:{{#explode:{{#var:currency_details}}|,|2}}|true|y|}}| text = {{#if:{{#var:showCostText|}}|+}}}} {{#ifeq:{{#vardefineecho:item_collectability|{{#explode:{{#var:currency_details}}|,|1}}|?||({{Collectable|12}} {{#var:item_collectability}})}} }} | + }} |
Revision as of 01:54, 19 November 2023
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 (2)
- Sells item 1 (3)
- Sells item 2 (4)
- Sells item 3 (5)
- Sells item 4 (6)
- Has vendor (7)
- Has vendor section (8)
- Has vendor location (9)
- Has item cost 1 (10)
- Has item cost 2 (11)
- Has item cost 3 (12)
- Has item cost 4 (13)
- Has vendor.Is historical (14)
- Is historical (15)
- Has item additional requirement (16)
- Has vendor.Has vendor quest unlock (17)
- Has vendor.Has vendor misc unlock (18)
- Suppress vendor unlock (19)
See also
- {{Vendor list result format}} - a similar template used by {{Vendor list}}.