Difference between revisions of "Template:Vendor item table result format"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
| data-sort-value="" | {{#arraymap:{{{2|}}}^{{{3|}}}^{{{4|}}}^{{{5|}}}|^|@@@|{{#vardefine:name_split|{{#rpos:@@@|(}}}}{{#vardefine:item_page|{{#sub:@@@|0|{{#var:name_split}}-1}}}}{{#vardefine:item_details|{{#sub:{{#sub:@@@|{{#var:name_split}}|-1}}|1|0}}}}<!-- | | data-sort-value="" | {{#arraymap:{{{2|}}}^{{{3|}}}^{{{4|}}}^{{{5|}}}|^|@@@|{{#vardefine:name_split|{{#rpos:@@@|(}}}}{{#vardefine:item_page|{{#sub:@@@|0|{{#var:name_split}}-1}}}}{{#vardefine:item_details|{{#sub:{{#sub:@@@|{{#var:name_split}}|-1}}|1|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}}<!-- | --><!-- 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_details}}|,|2}}|true| {{HQ|12| | --><!-- HQ -->{{#ifeq:{{#explode:{{#var:item_details}}|,|2}}|true| {{HQ|12|}}}}<!-- | ||
--><!-- 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}}}}]]<!-- | ||
--><!-- Quantity -->{{#vardefine:item_min_qty|{{#explode:{{#var:item_details}}|,|0}}}}{{#vardefine:item_max_qty|{{#explode:{{#var:item_details}}|,|1}}}}{{#ifeq:{{#var:item_min_qty}}|1|| ({{#var:item_min_qty}}{{#ifeq:{{#var:item_max_qty}}|?||-{{#var:item_max_qty}}}})}}|<br>}} | --><!-- Quantity -->{{#vardefine:item_min_qty|{{#explode:{{#var:item_details}}|,|0}}}}{{#vardefine:item_max_qty|{{#explode:{{#var:item_details}}|,|1}}}}{{#ifeq:{{#var:item_min_qty}}|1|| ({{#var:item_min_qty}}{{#ifeq:{{#var:item_max_qty}}|?||-{{#var:item_max_qty}}}})}}|<br>}} |
Latest revision as of 00:48, 21 January 2024
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}}.