Difference between revisions of "Template:Vendor item table result format"

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
m
m
Line 1: Line 1:
<includeonly>
<includeonly>
|- {{#ifeq: {{{7|}}} | true | title="Vendor currently unavailable" class="gray" }}
|- {{#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>&nbsp;[[{{{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>&nbsp;[[{{{2}}}|{{#show:{{#explode:{{{2}}}|#}}|?Has canonical name|default={{#explode:{{{2}}}|#}}}}]]
| {{cname|{{{3}}}}} {{#ifeq: {{{4|}}} | General || ({{{4}}}) }}
| {{cname|{{{3}}}}} {{#ifeq: {{{4|}}} | General || ({{{4}}}) }}
| {{#arraymap: {{#vardefineecho:vitr_area|{{#show:{{{3|}}}|?Has vendor location|default=|link=none|format=list|sep=;}}}}|;|@@@|[[@@@]]|<br>}}
| {{#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:{{{6}}}|1|<!--Nothing-->|{{{6}}}&nbsp;/&nbsp;}}<!-- Quantity
| style="text-align:{{#if:{{#var:showCostText|}}|left|right}}" | {{#ifeq:{{{7}}}|1|<!--Nothing-->|{{{7}}}&nbsp;/&nbsp;}}<!-- Quantity
--> {{#arraymap: {{#replace:{{{5|}}}| |}}<!--fix for languages using nbsp as thousand separators -->, | ), | @@@ | {{currency|{{#replace:{{#explode:@@@| }}|,|}}| {{#sub:@@@|{{#pos:__@@@| }}}}|text={{#if:{{#var:showCostText|}}|+}}}} | &nbsp;+&nbsp; }}</includeonly><noinclude>
--> {{#arraymap: {{#replace:{{{6|}}}| |}}<!--fix for languages using nbsp as thousand separators -->, | ), | @@@ | {{currency|{{#replace:{{#explode:@@@| }}|,|}}| {{#sub:@@@|{{#pos:__@@@| }}}}|text={{#if:{{#var:showCostText|}}|+}}}} | &nbsp;+&nbsp; }}</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:

  1. Vendor subobject
  2. Sells item
  3. Has vendor
  4. Has vendor section
  5. Has vendor location
  6. Has item cost
  7. Has item quantity

See also