|
|
(6 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
| <includeonly>
| | #REDIRECT[[Template:Inventory Table]] |
| {{#ifeq:{{{Caption|}}}|||'''{{{Caption}}}'''}}
| |
| :{|border=0 cellpadding=2
| |
| |-
| |
| {{#ifeq:{{{1|}}}|||
| |
| {{!}} [[Image:{{{1}}} Icon.png]] {{!}}{{!}} [[{{{1}}}]] {{!}}{{!}} - {{!}}{{!}} {{{2}}}
| |
| {{!}}width=6{{!}}
| |
| }}
| |
| {{#ifeq:{{{3|}}}||
| |
| | |
| {{!}}-
| |
| | |
| |}}
| |
| {{#ifeq:{{{3|}}}|||
| |
| {{!}} [[Image:{{{3}}} Icon.png]] {{!}}{{!}} [[{{{3}}}]] {{!}}{{!}} - {{!}}{{!}} {{{4}}}
| |
| {{!}}width=6{{!}}
| |
| }}
| |
| {{#ifeq:{{{5|}}}||
| |
| | |
| {{!}}-
| |
| | |
| |}}
| |
| {{#ifeq:{{{5|}}}|||
| |
| {{!}} [[Image:{{{5}}} Icon.png]] {{!}}{{!}} [[{{{5}}}]] {{!}}{{!}} - {{!}}{{!}} {{{6}}}
| |
| {{!}}width=6{{!}}
| |
| }}
| |
| {{#ifeq:{{{7|}}}||
| |
| | |
| {{!}}-
| |
| | |
| |}}
| |
| {{#ifeq:{{{7|}}}|||
| |
| {{!}} [[Image:{{{7}}} Icon.png]] {{!}}{{!}} [[{{{7}}}]] {{!}}{{!}} - {{!}}{{!}} {{{8}}}
| |
| {{!}}width=6{{!}}
| |
| }}
| |
| {{#ifeq:{{{9|}}}||
| |
| | |
| {{!}}-
| |
| | |
| |}}
| |
| {{#ifeq:{{{9|}}}|||
| |
| | |
| {{!}}-
| |
| | |
| {{!}} [[Image:{{{9}}} Icon.png]] {{!}}{{!}} [[{{{9}}}]] {{!}}{{!}} - {{!}}{{!}} {{{10}}}
| |
| {{!}}width=6{{!}}
| |
| }}
| |
| {{#ifeq:{{{11|}}}||
| |
| | |
| {{!}}-
| |
| | |
| |}}
| |
| {{#ifeq:{{{11|}}}|||
| |
| {{!}} [[Image:{{{11}}} Icon.png]] {{!}}{{!}} [[{{{11}}}]] {{!}}{{!}} - {{!}}{{!}} {{{12}}}
| |
| {{!}}width=6{{!}}
| |
| }}
| |
| {{#ifeq:{{{13|}}}||
| |
| | |
| {{!}}-
| |
| | |
| |}}
| |
| {{#ifeq:{{{13|}}}|||
| |
| {{!}} [[Image:{{{13}}} Icon.png]] {{!}}{{!}} [[{{{13}}}]] {{!}}{{!}} - {{!}}{{!}} {{{14}}}
| |
| {{!}}width=6{{!}}
| |
| }}
| |
| {{#ifeq:{{{15|}}}||
| |
| | |
| {{!}}-
| |
| | |
| |}}
| |
| {{#ifeq:{{{15|}}}|||
| |
| {{!}} [[Image:{{{15}}} Icon.png]] {{!}}{{!}} [[{{{15}}}]] {{!}}{{!}} - {{!}}{{!}} {{{16}}}
| |
| {{!}}width=6{{!}}
| |
| }}
| |
| |}
| |
| </includeonly><noinclude>
| |
| {{Related|Wiki Templates}}
| |
| == Syntax ==
| |
| <pre style="width:auto; overflow:auto">
| |
| {{Shopkeeper Inventory
| |
| |Caption=caption
| |
| |Name|Price
| |
| |Name|Price
| |
| |Name|Price
| |
| |...
| |
| }}
| |
| </pre>
| |
| | |
| == Usage ==
| |
| Displays a icons and links four across for up to 32 items. An optional caption can be displayed. If more than 32 are needed, just add a second Item Table and leave out the caption. Link text will not wrap below icons, only to the side. Indicate the cost and unit (300p, 12cc, 25amc, etc). One quirk of this template is you cannot have any whitespace in the parameter list (spaces next to pipes).
| |
| | |
| [[Naming Conventions]] are enforced and icon images must follow the format <code>Name Icon.png</code> (case sensitive).
| |
| | |
| For example:
| |
| | |
| <pre style="width:auto; overflow:auto">
| |
| {{Shopkeeper Inventory
| |
| |Caption=Spell Components
| |
| |Lead Scarab|10p
| |
| |Iron Scarab|50p
| |
| |Copper Scarab|100p
| |
| |Silver Scarab|250p
| |
| |Gold Scarab|500p
| |
| |Pyreal Scarab|1,000p
| |
| |Platinum Scarab|40,000p
| |
| }}
| |
| </pre>
| |
| | |
| displays as:
| |
| | |
| {{Shopkeeper Inventory
| |
| |Caption=Spell Components
| |
| |Lead Scarab|10p
| |
| |Iron Scarab|50p
| |
| |Copper Scarab|100p
| |
| |Silver Scarab|250p
| |
| |Gold Scarab|500p
| |
| |Pyreal Scarab|1,000p
| |
| |Platinum Scarab|40,000p
| |
| }}
| |
| | |
| </noinclude>
| |