Template:Inventory Table

Revision as of 18:13, 12 March 2009 by 127.0.0.1 (talk) (New page: <includeonly>{|cellpadding=3 style="width:400px; border:1px solid #e5e5e5; background:#f9f9f9; vertical-align:top;" !colspan=2 bgcolor=#d0d0d0 align=left| Item !width=10% bgcolor=#d0d0d0 a...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Related topics: Wiki Templates, Vendor NPC Template

Syntax

{{Inventory Table
 | Table Rows = 
{{Inventory Item |  |  }}
{{Inventory Item |  |  }}
{{Inventory Item |  |  }}
{{Inventory Item |  |  }}
}}
{{Inventory Table
 | Table Rows = 
{{Inventory Item|<Name>|<Price>|Alias=<Name>}}
{{Inventory Item|<Name>|<Price>}}
{{Inventory Item|<Name>|<Price>}}
{{Inventory Item|<Name>|<Price>}}
}}

Usage

Displays icons and links for items in a shopkeeper's inventory. Creature a table for each type of items (from the drop down menu in game). Link text will not wrap below icons, only to the side.

  • Naming Conventions are enforced and icon images must follow the format Name Icon.png (case sensitive).
  • If you wish to display a name other than the actual page name, add | Alias = <Name> to the Inventory Item.

For more information on usage see Vendor NPC Template.

For example:

{{Inventory Table
 | Table Rows = 
{{Inventory Item | Lead Scarab | 10 }}
{{Inventory Item | Iron Scarab | 50 }}
{{Inventory Item | Copper Scarab | 100 }}
{{Inventory Item | Silver Scarab | 250 }}
{{Inventory Item | Gold Scarab | 500 }}
{{Inventory Item | Pyreal Scarab | 1,000 }}
{{Inventory Item | Platinum Scarab | 40,000 | Alias = Platinum }}
}}

displays as:

{{Inventory Table

| Table Rows = 

|align=center width=32px| |align=left| Lead Scarab |align=right| 10   |-

|align=center width=32px| |align=left| Iron Scarab |align=right| 50   |-

|align=center width=32px| |align=left| Copper Scarab |align=right| 100   |-

|align=center width=32px| |align=left| Silver Scarab |align=right| 250   |-

|align=center width=32px| |align=left| Gold Scarab |align=right| 500   |-

|align=center width=32px| |align=left| Pyreal Scarab |align=right| 1,000   |-

|align=center width=32px| |align=left| Platinum |align=right| 40,000   |-