No edit summary
No edit summary
Line 88: Line 88:


== Usage ==
== 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.
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).
[[Naming Conventions]] are enforced and icon images must follow the format <code>Name Icon.png</code> (case sensitive).
Line 95: Line 95:


<pre style="width:auto; overflow:auto">
<pre style="width:auto; overflow:auto">
{{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}}
{{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>
</pre>


displays as:
displays as:
{{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}}


{{Shopkeeper Inventory
{{Shopkeeper Inventory
|Caption=Rewards
|Caption=Spell Components
|Bonecrunch's Hammer|50,000p
|Lead Scarab|10p
|Burnja's Board with Nails|1,000p
|Iron Scarab|50p
|Drudge Scrying Orb|500p
|Copper Scarab|100p
|Protective Drudge Charm|250p
|Silver Scarab|250p
|Scroll of Flame Chain|100p
|Gold Scarab|500p
|Pyreal Scarab|1,000p
|Platinum Scarab|40,000p
}}
}}


</noinclude>
</noinclude>

Revision as of 21:35, 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. 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 Name Icon.png (case sensitive).

For example:

{{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
}}

displays as:


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