Difference between revisions of "Template:Vendor item table result format"
Jump to navigation
Jump to search
m |
m |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
|- {{#ifeq: {{{ | |- {{#ifeq: {{{8|}}} | true | title="Vendor currently unavailable" class="gray" }} | ||
| data-sort-value="{{{2}}}" | <span class="small item-icon thumb-icon" style="display:inline-block;overflow:hidden; width:20px; height:20px;vertical-align:middle;">[[{{#show:{{{2}}}|?Has game icon|link=none|default=File:Skill.png}}|20x20px|bottom|link={{{2}}}]]</span> [[{{{2}}}|{{#show:{{#explode:{{{2}}}|#}}|?Has canonical name|default={{#explode:{{{2}}}|#}}}}]] | | data-sort-value="{{{2}}}" | <span class="small item-icon thumb-icon" style="display:inline-block;overflow:hidden; width:20px; height:20px;vertical-align:middle;">[[{{#show:{{{2}}}|?Has game icon|link=none|default=File:Skill.png}}|20x20px|bottom|link={{{2}}}]]</span> [[{{{2}}}|{{#show:{{#explode:{{{2}}}|#}}|?Has canonical name|default={{#explode:{{{2}}}|#}}}}]] | ||
| {{cname|{{{3}}}}} {{#ifeq: {{{4|}}} | General || ({{{4}}}) }} | | {{cname|{{{3}}}}} {{#ifeq: {{{4|}}} | General || ({{{4}}}) }} | ||
| {{# | | {{#if:{{{5|}}}|[[{{#vardefineecho:vitr_area|{{{5|}}}}}]]}} | ||
| {{#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 --> | ||
| - <!-- more than one area, don't show every parent zone (could be duplicates) --> | | - <!-- more than one area, don't show every parent zone (could be duplicates) --> | ||
| {{#show:{{#var:vitr_area}}|?Located in|default=–}} | | {{#show:{{#var:vitr_area}}|?Located in|default=–}} | ||
}} }} | }} }} | ||
| style="text-align:{{#if:{{#var:showCostText|}}|left|right}}" | {{#ifeq:{{{ | | style="text-align:{{#if:{{#var:showCostText|}}|left|right}}" | {{#ifeq:{{{7}}}|1|<!--Nothing-->|{{{7}}} / }}<!-- Quantity | ||
--> {{#arraymap: {{#replace:{{{ | --> {{#arraymap: {{#replace:{{{6|}}}| |}}<!--fix for languages using nbsp as thousand separators -->, | ), | @@@ | {{currency|{{#replace:{{#explode:@@@| }}|,|}}| {{#sub:@@@|{{#pos:__@@@| }}}}|text={{#if:{{#var:showCostText|}}|+}}}} | + }}</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: | ||
#Vendor subobject | #Vendor subobject |
Revision as of 12:41, 28 August 2018
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
- Has vendor
- Has vendor section
- Has vendor location
- Has item cost
- Has item quantity
See also
- {{Vendor list result format}} - a similar template used by {{Vendor list}}.