Difference between revisions of "Template:Vendor list result format"
Jump to navigation
Jump to search
Tag: Undo |
|||
Line 5: | Line 5: | ||
{{#ifeq:{{#var:showSection|false}}|true| {{!}} style="max-width:180px;" {{!}} {{{3}}} }} | {{#ifeq:{{#var:showSection|false}}|true| {{!}} style="max-width:180px;" {{!}} {{{3}}} }} | ||
| style="max-width:400px;" | {{#if:{{{4|}}}|{{cname|{{{4}}}}}|{{#show:{{{2|}}}|?Located in|default=–|sep=;}}}} ({{#if:{{{5|}}}|{{cname|{{{5}}}}}|{{#show:{{{2|}}}|?Has x coordinate|default=–|sep=;}}}}, {{#if:{{{5|}}}|{{cname|{{{5}}}}}|{{#show:{{{2|}}}|?Has y coordinate|default=–|sep=;}}}}) | | style="max-width:400px;" | {{#if:{{{4|}}}|{{cname|{{{4}}}}}|{{#show:{{{2|}}}|?Located in|default=–|sep=;}}}} ({{#if:{{{5|}}}|{{cname|{{{5}}}}}|{{#show:{{{2|}}}|?Has x coordinate|default=–|sep=;}}}}, {{#if:{{{5|}}}|{{cname|{{{5}}}}}|{{#show:{{{2|}}}|?Has y coordinate|default=–|sep=;}}}}) | ||
| 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||}}<!-- 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||}}<!-- Costs -->{{{12|}}}{{#arraymap:{{{9|}}}^{{{10|}}}^{{{11|}}}^{{{12|}}}|^|@@@| | ||
{{#if:@@@|{{#vardefine:item_cost|{{#normalizerec:@@@}}}}<!-- | {{#if:@@@|{{#vardefine:item_cost|{{#normalizerec:@@@}}}}<!-- | ||
-->{{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}})}} }}| + }} | -->{{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}})}} }}| + }} |
Revision as of 19:02, 21 August 2023
This semantic result template is used for formatting results from {{vendor list}} and {{vendor table}}. The following parameters are passed to the template:
- Vendor subobject
- Has vendor
- Has vendor section
- Has vendor location
- Sells item 1
- Sells item 2
- Sells item 3
- Sells item 4
- Has item cost 1
- Has item cost 2
- Has item cost 3
- Has item cost 4
- Has vendor coordinates
- Has vendor.Is historical
- Is historical