Template:Inventory
This template provides basic formatting to display an inventory.
Usage
This template can be used by entering the following onto a relevant page.
{{Inventory|align=right
|Item1 |Item2 |Item3 |Item4
|Item5 |Item6 |Item7 |Item8
|Item9 |Item10 |Item11 |Item12
|Item13 |Item14 |Item15 |Item16
|Item17 |Item18 |Item19 |Item20
|Item21 |Item22 |Item23 |Item24
|Item25 |Item26 |Item27 |Item28
}}
To specify an amount for a stackable item, put a backslash and insert the amount after the backslash.
To align the inventory to a specific side, use the align parameter. For example, use |align=right to move the table to the right of the page.
To switch to a horizontal table, use |orient=h.
If an item is noted, add ;n at the end of the item line.
If an item has a different in-game name than the #anchor link required for the article, add ;Itemname#Anchor after the item name. This can be used together with the above ;n flag and item amounts, if necessary.
Examples
If you want to suggest an inventory for Ectofuntus trips, you could do the following:
{{Inventory|align=right
|Ectophial | | |
| | | |
| | | |
| | | |
| | | |Bones
|Bones |Bones |Bones |Bones
|Bones |Bones |Bones |Bones
}}
- Quantity
To specify an amount, use a backslash and enter the amount for that item. For example:
{{Inventory|align=right|orient=h
|Cannonball\12 | | |Steel bar
|Steel bar |Steel bar |Steel bar |Steel bar
|Steel bar |Steel bar |Steel bar |Steel bar
|Steel bar |Steel bar |Steel bar |Steel bar
|Steel bar |Steel bar |Steel bar |Steel bar
|Steel bar |Steel bar |Steel bar |Steel bar
|Steel bar |Steel bar |Steel bar |Steel bar
}}
- Noted
To mark an item as noted, add ;n after the item name. Can be combined with quantity (in either order).
{{Inventory|align=right
|Shark;n | | |
| | |Magic logs;n\100 |
| | | |
|Runite ore\50;n | | |
| | | |
| | | |
| | | |
}}
- Anchoring
If an item name differs from the #anchor link required. Quantity and noted flag must be appended at the end.
{{Inventory|align=right
|Dragon dagger(p++);Dragon dagger#Poison++ | | |
| | |Divine super combat potion(2);Divine super combat potion#2 dose;n\20 |
| | | |
|Strange device;Strange device#Master | | |
| | | |
| | | |
| | | |
}}
Quick Copy
{{Inventory|align=right
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
}}
See also
Template data
| Show/hide template's data | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
The following information is used by extensions and applications, such as VisualEditor, to help users implement this template onto pages. Please ensure that it is up-to-date. This template provides basic formatting to display an inventory. To specify an amount for a stackable item, put a backslash and insert the amount after the backslash.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||