Template:Shopkeeper Inventory: Difference between revisions

From leaftidewiki
Jump to navigation Jump to search
imported>Tlosk
No edit summary
imported>Tlosk
No edit summary
Line 4: Line 4:
|-
|-
{{#ifeq:{{{1|}}}|||
{{#ifeq:{{{1|}}}|||
{{!}}width=10{{!}}
{{!}} [[Image:{{{1}}} Icon.png]] {{!}}{{!}} [[{{{1}}}]] {{!}}{{!}} {{{2}}}p
{{!}} [[Image:{{{1}}} Icon.png]] {{!}}{{!}} [[{{{1}}}]] {{!}}{{!}} {{{2}}}p
{{!}}width=10{{!}}
}}
}}
{{#ifeq:{{{3|}}}||
{{#ifeq:{{{3|}}}||
Line 14: Line 14:
{{#ifeq:{{{3|}}}|||
{{#ifeq:{{{3|}}}|||
{{!}} [[Image:{{{3}}} Icon.png]] {{!}}{{!}} [[{{{3}}}]] {{!}}{{!}} {{{4}}}p
{{!}} [[Image:{{{3}}} Icon.png]] {{!}}{{!}} [[{{{3}}}]] {{!}}{{!}} {{{4}}}p
{{!}}width=10{{!}}
}}
}}
{{#ifeq:{{{5|}}}||
{{#ifeq:{{{5|}}}||
Line 22: Line 23:
{{#ifeq:{{{5|}}}|||
{{#ifeq:{{{5|}}}|||
{{!}} [[Image:{{{5}}} Icon.png]] {{!}}{{!}} [[{{{5}}}]] {{!}}{{!}} {{{6}}}p
{{!}} [[Image:{{{5}}} Icon.png]] {{!}}{{!}} [[{{{5}}}]] {{!}}{{!}} {{{6}}}p
{{!}}width=10{{!}}
}}
}}
{{#ifeq:{{{7|}}}||
{{#ifeq:{{{7|}}}||
Line 30: Line 32:
{{#ifeq:{{{7|}}}|||
{{#ifeq:{{{7|}}}|||
{{!}} [[Image:{{{7}}} Icon.png]] {{!}}{{!}} [[{{{7}}}]] {{!}}{{!}} {{{8}}}p
{{!}} [[Image:{{{7}}} Icon.png]] {{!}}{{!}} [[{{{7}}}]] {{!}}{{!}} {{{8}}}p
{{!}}width=10{{!}}
}}
}}
{{#ifeq:{{{9|}}}||
{{#ifeq:{{{9|}}}||
Line 40: Line 43:
{{!}}-
{{!}}-


{{!}}width=10{{!}}
{{!}} [[Image:{{{9}}} Icon.png]] {{!}}{{!}} [[{{{9}}}]] {{!}}{{!}} {{{10}}}p
{{!}} [[Image:{{{9}}} Icon.png]] {{!}}{{!}} [[{{{9}}}]] {{!}}{{!}} {{{10}}}p
{{!}}width=10{{!}}
}}
}}
{{#ifeq:{{{11|}}}||
{{#ifeq:{{{11|}}}||
Line 50: Line 53:
{{#ifeq:{{{11|}}}|||
{{#ifeq:{{{11|}}}|||
{{!}} [[Image:{{{11}}} Icon.png]] {{!}}{{!}} [[{{{11}}}]] {{!}}{{!}} {{{12}}}p
{{!}} [[Image:{{{11}}} Icon.png]] {{!}}{{!}} [[{{{11}}}]] {{!}}{{!}} {{{12}}}p
{{!}}width=10{{!}}
}}
}}
{{#ifeq:{{{13|}}}||
{{#ifeq:{{{13|}}}||
Line 58: Line 62:
{{#ifeq:{{{13|}}}|||
{{#ifeq:{{{13|}}}|||
{{!}} [[Image:{{{13}}} Icon.png]] {{!}}{{!}} [[{{{13}}}]] {{!}}{{!}} {{{14}}}p
{{!}} [[Image:{{{13}}} Icon.png]] {{!}}{{!}} [[{{{13}}}]] {{!}}{{!}} {{{14}}}p
{{!}}width=10{{!}}
}}
}}
{{#ifeq:{{{15|}}}||
{{#ifeq:{{{15|}}}||
Line 66: Line 71:
{{#ifeq:{{{15|}}}|||
{{#ifeq:{{{15|}}}|||
{{!}} [[Image:{{{15}}} Icon.png]] {{!}}{{!}} [[{{{15}}}]] {{!}}{{!}} {{{16}}}p
{{!}} [[Image:{{{15}}} Icon.png]] {{!}}{{!}} [[{{{15}}}]] {{!}}{{!}} {{{16}}}p
{{!}}width=10{{!}}
}}
}}
|}
|}

Revision as of 14:17, 18 February 2009

Related topics: Wiki Templates

Syntax

{{Shopkeeper Inventory
 |Caption=caption
 |Name|Price
 |Name|Price
 |Name|Price
 |...
}}

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. Use just the number for the price.

Naming Conventions are enforced and icon images must follow the format Name Icon.png (case sensitive).

For example:

{{Shopkeeper Inventory|Caption=Rewards|Bonecrunch's Hammer|50,000|Burnja's Board with Nails|1,000|Drudge Scrying Orb|500|Protective Drudge Charm|250|Scroll of Flame Chain|100}}

displays as:


Rewards

Bonecrunch's Hammer Icon.png Bonecrunch's Hammer 50,000p Burnja's Board with Nails Icon.png Burnja's Board with Nails 1,000p Drudge Scrying Orb Icon.png Drudge Scrying Orb 500p Protective Drudge Charm Icon.png Protective Drudge Charm 250p
Scroll of Flame Chain Icon.png Scroll of Flame Chain 100p