Difference between revisions of "Template:Vendor list result format"
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
{{#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}})}} }}| + }}{{#switch:{{#show:{{#if:T|{{#explode:{{#var:item_cost}}|,<nowiki> </nowiki>|1}}}}|?Has context}}|Item|Currency=|#default=[[Category:Pages with non-item vendor costs]]{{#set:Has non-item vendor cost=true}}}} | -->{{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}})}} }}| + }}{{#switch:{{#show:{{#if:T|{{#explode:{{#var:item_cost}}|,<nowiki> </nowiki>|1}}}}|?Has context}}|Item|Currency=|#default=[[Category:Pages with non-item vendor costs]]{{#set:Has non-item vendor cost=true}}}} | ||
|<!--Additional unlock requirements-->{{#if:{{{17|}}}|{{{17|}}}|-}} | |||
</includeonly><noinclude> | </includeonly><noinclude> | ||
This semantic result template is used for formatting results from {{tl|vendor list}} and {{tl|vendor table}}. The following parameters are passed to the template: | This semantic result template is used for formatting results from {{tl|vendor list}} and {{tl|vendor table}}. The following parameters are passed to the template: | ||
Line 25: | Line 26: | ||
#Has vendor.Is historical (15) | #Has vendor.Is historical (15) | ||
#Is historical (16) | #Is historical (16) | ||
#Has item additional requirement (17) | |||
[[Category:Vendor formatting templates]] | [[Category:Vendor formatting templates]] | ||
[[Category:Semantic result templates]] | [[Category:Semantic result templates]] | ||
</noinclude> | </noinclude> |
Revision as of 07:45, 5 November 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 (2)
- Has vendor (3)
- Has vendor section (4)
- Has vendor location (5)
- Sells item 1 (6)
- Sells item 2 (7)
- Sells item 3 (8)
- Sells item 4 (9)
- Has item cost 1 (10)
- Has item cost 2 (11)
- Has item cost 3 (12)
- Has item cost 4 (13)
- Has vendor coordinates (14)
- Has vendor.Is historical (15)
- Is historical (16)
- Has item additional requirement (17)