Difference between revisions of "Template:Vendor item table result format"
Jump to navigation
Jump to search
JohnnySolas (talk | contribs) (Undo revision 407166 by JohnnySolas (talk)) Tag: Undo |
(Fix template to work as intended) |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
|- | |- | ||
| data-sort-value="" | {{#arraymap:{{{2|}}}^{{{3|}}}^{{{4|}}}^{{{5|}}}|^|@@@|{{#vardefine: | | data-sort-value="" | {{#arraymap:{{{2|}}}^{{{3|}}}^{{{4|}}}^{{{5|}}}|^|@@@|{{#vardefine:item_page|{{#explode:@@@|(|0}}}}{{#vardefine:item_details|{{#sub:{{#explode:@@@|(|1}}|0|-1}}}}<!-- | ||
--><!-- 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: | --><!-- HQ -->{{#ifeq:{{#explode:{{#var:item_details}}|,|2}}|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}}}}]]<!-- | ||
--><!-- Quantity -->{{#vardefine:item_min_qty|{{#explode:{{#var: | --><!-- 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>}} | ||
| {{cname|{{{6}}}}} {{#ifeq: {{{7|}}} | General || ({{{7}}}) }} | | {{#var:item_data}}{{cname|{{{6}}}}} {{#ifeq: {{{7|}}} | General || ({{{7}}}) }} | ||
| {{#if:{{{8|}}}|[[{{#vardefineecho:vitr_area|{{{8|}}}}}]]}} | | {{#if:{{{8|}}}|[[{{#vardefineecho:vitr_area|{{{8|}}}}}]]}} | ||
| {{#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 --> | ||
Line 12: | Line 12: | ||
| {{#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: | | 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| | -->{{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}})}} }} | + }} | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
This semantic result template is used for formatting results from {{tl|Vendor item table row}} and {{tl|Vendor table}}. The following parameters are passed to the template: | This semantic result template is used for formatting results from {{tl|Vendor item table row}} and {{tl|Vendor table}}. The following parameters are passed to the template: |
Revision as of 13:08, 12 February 2022
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}}.