Difference between revisions of "Template:Vendor item table result format"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
|- {{#ifeq: {{{8|}}} | true | title="Vendor currently unavailable" class="gray" }} | |- {{#ifeq: {{{8|}}} | true | title="Vendor currently unavailable" class="gray" }} | ||
| data-sort-value="" | {{#arraymap:{{{2|}}}^{{{3|}}}^{{{4|}}}^{{{5|}}}|^|@@@|{{#vardefine:item_data|{{Normalize record|@@@}}}}{{#vardefine:item_page|{{#explode:{{#var:item_data}}|,|0}}}}<!-- | | data-sort-value="" | {{#arraymap:{{{2|}}}^{{{3|}}}^{{{4|}}}^{{{5|}}}|^|@@@|{{#vardefine:item_data|{{Normalize record|@@@}}}}{{#vardefine:item_page|{{#explode:{{#var:item_data}}|,|0}}}}<!-- | ||
--><!-- | --><!-- Icon -->{{STFI|icon={{#if:{{#vardefineecho:item_icon|{{#explode:{{#show:{{#var:item_page}}|?Has game icon|link=none}}|:|1}}}}|{{#var:item_icon}}|{{#var:item_page}}.png}}|link={{#var:item_page}}|size=small}}<!-- | ||
--><!-- HQ -->{{#ifeq:{{#explode:{{#var:item_data}}|,|3}}|true| {{HQ|12|dark=y}}}}<!-- | --><!-- HQ -->{{#ifeq:{{#explode:{{#var:item_data}}|,|3}}|true| {{HQ|12|dark=y}}}}<!-- | ||
--><!-- Name --> [[{{#var:item_page}}|{{#show:{{#var:item_page}}|?Has canonical name|default={{#var:item_page}}}}]]<!-- | --><!-- Name --> [[{{#var:item_page}}|{{#show:{{#var:item_page}}|?Has canonical name|default={{#var:item_page}}}}]]<!-- |
Revision as of 15:55, 15 August 2019
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 1
- Sells item 2
- Sells item 3
- Sells item 4
- Has vendor
- Has vendor section
- Has vendor location
- Has item cost 1
- Has item cost 2
- Has item cost 3
- Has item cost 4
See also
- {{Vendor list result format}} - a similar template used by {{Vendor list}}.