User:Relyk/SMW/inventory

From Guild Wars 2 Wiki
Jump to navigationJump to search

Items offered[edit]

{{Vendor table header}}
{{vendor table row|<Item>}}
{{vendor table footer}}
{{vendor table header
 | showLevel     = true
 | showType      = true
 | showVariables = true
 | showRarity    = true
}}
{{vendor table row|<Item>
| name =
| plural =
| quantity =
}}
{{vendor table footer}}

Item[edit]

{{#ask:[[{{{1|}}}]]
|?Has item level
|?Has item rarity
|?Has item type
|?Has cost
|format=template
|template= Vendor result format
}}

Vendor result format[edit]

|-
| {{item icon|{{{1|}}}}}<!--
-->{{#ifeq:{{#var:showLevel}}|false| |
{{!}}{{!}} {{{2|-}}}
}}{{#ifeq:{{#var:showRarity}}|false| |
{{!}}{{!}} {{#if: {{{3}}} | {{rarity|{{{3}}}}} | '''Unknown'''}} 
}}{{#ifeq:{{#var:showType}}|false| |
{{!}}{{!}} [[{{{4|}}}]]
}}{{#ifeq:{{#var:showVariables}}|false| |
{{!}}{{!}} {{item variables|{{{1|}}}}}
}}{{#ifeq:{{#var:showCost|}}|false| |
{{!}}{{!}} align="right" {{!}} {{{5}}}
}}

Item variables[edit]

|{{#show:Has variables
|?Has variable 1
|?Has variable 2
|?Has variable 3
|format=template
|template= Variables result format
}}

Variables result format[edit]

{{item attribute|{{{1|}}}}}<br />{{item attribute|{{{2|}}}}}<br />{{item attribute|{{{3|}}}}}

Armor[edit]

{{#ask:[[{{{1|}}}]]
|?Has canonical name
|?Has armor class
|?Has armor slot
|?Has item level
|?Has item rarity
|?Has modifiers
|?Has cost
|format=template
|template= Armor result format
}}