Difference between revisions of "Template:Vendor list result format"
Jump to navigation
Jump to search
JohnnySolas (talk | contribs) |
|||
Line 1: | Line 1: | ||
<includeonly>|- {{#vardefine:item_data|{{#arraymap:{{{5|}}}^{{{6|}}}^{{{7|}}}^{{{8|}}}|^|@@@|{{#if:@@@|{{#ifeq:{{#explode:@@@|(|0}}|{{{userparam|}}}|{{#normalizerec:@@@}}|}}}}|}}}} | <includeonly>|- {{#ifeq: {{{15|false}}} | true | title="Vendor currently unavailable" class="gray" | ||
| {{#ifeq: {{{14|false}}} | true | title="Item currently unavailable" class="gray" }} }} | |||
{{#vardefine:item_data|{{#arraymap:{{{5|}}}^{{{6|}}}^{{{7|}}}^{{{8|}}}|^|@@@|{{#if:@@@|{{#ifeq:{{#explode:@@@|(|0}}|{{{userparam|}}}|{{#normalizerec:@@@}}|}}}}|}}}} | |||
| {{#vardefine:smw_name|{{#show:{{{2|}}}|?Has canonical name}}}} data-sort-value="{{#if: {{#var:smw_name}} | {{#var:smw_name}} | {{{2}}} }}" | {{#if: {{#var:smw_name}} | [[{{{1}}}|{{#var:smw_name}}]] | [[{{{1}}}|{{{2}}}]] }} | | {{#vardefine:smw_name|{{#show:{{{2|}}}|?Has canonical name}}}} data-sort-value="{{#if: {{#var:smw_name}} | {{#var:smw_name}} | {{{2}}} }}" | {{#if: {{#var:smw_name}} | [[{{{1}}}|{{#var:smw_name}}]] | [[{{{1}}}|{{{2}}}]] }} | ||
{{#ifeq:{{#var:showSection|false}}|true| {{!}} style="max-width:180px;" {{!}} {{{3}}} }} | {{#ifeq:{{#var:showSection|false}}|true| {{!}} style="max-width:180px;" {{!}} {{{3}}} }} | ||
Line 21: | Line 23: | ||
#Has item cost 4 | #Has item cost 4 | ||
#Has vendor coordinates | #Has vendor coordinates | ||
#Is historical | |||
#Has vendor.Is historical | |||
[[Category:Vendor formatting templates]] | [[Category:Vendor formatting templates]] | ||
[[Category:Semantic result templates]] | [[Category:Semantic result templates]] | ||
</noinclude> | </noinclude> |
Revision as of 21:03, 22 July 2021
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
- Is historical
- Has vendor.Is historical