Template:Inventory Table: Difference between revisions

From leaftidewiki
Jump to navigation Jump to search
imported>Tlosk
No edit summary
imported>Tlosk
No edit summary
Line 29: Line 29:


== Usage ==
== 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.
Displays icons and links for items in a shopkeeper's inventory. Create 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 <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).
* If you wish to display a name other than the actual page name, add <code> | Alias = <Name> </code> to the Inventory Item.
* If you wish to display a name other than the actual page name, add <code> | Alias = <Name> </code> to the Inventory Item.

Revision as of 18:45, 11 May 2009

Related topics: Wiki Templates, Shopkeeper NPC Template, {{Inventory Item}}

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. Create 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 Shopkeeper 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:

Item Price
Lead Scarab Icon.png Lead Scarab 10  
Iron Scarab Icon.png Iron Scarab 50  
Copper Scarab Icon.png Copper Scarab 100  
Silver Scarab Icon.png Silver Scarab 250  
Gold Scarab Icon.png Gold Scarab 500  
Pyreal Scarab Icon.png Pyreal Scarab 1,000  
Platinum Scarab Icon.png Platinum 40,000