Template:Inventory

From Old School RuneScape Wiki
Jump to: navigation, search
Template documentation[edit] [purge]
This documentation is transcluded from Template:Inventory/doc.
Template:Inventory invokes Module:Inventory using Lua.

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.

Examples

If you want to suggest an inventory for Ectofuntus trips, you could do the following:

Ectophial.png
Bones.png
Bones.pngBones.pngBones.pngBones.png
Bones.pngBones.pngBones.pngBones.png
{{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:

Cannonball.png12Steel bar.png
Steel bar.pngSteel bar.pngSteel bar.pngSteel bar.png
Steel bar.pngSteel bar.pngSteel bar.pngSteel bar.png
Steel bar.pngSteel bar.pngSteel bar.pngSteel bar.png
Steel bar.pngSteel bar.pngSteel bar.pngSteel bar.png
Steel bar.pngSteel bar.pngSteel bar.pngSteel bar.png
Steel bar.pngSteel bar.pngSteel bar.pngSteel bar.png
{{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).

Shark.png1
Magic logs.png100
Runite ore.png50
{{Inventory|align=right
|Shark;n | | | 
| | |Magic logs;n\100 | 
| | | | 
|Runite ore\50;n | | | 
| | | | 
| | | | 
| | | | 
}}

Quick Copy

{{Inventory|align=right
| | | | 
| | | | 
| | | | 
| | | | 
| | | | 
| | | | 
| | | | 
}}

See also

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.

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.

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
Alignalign

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.

Default
empty
Example
right
Auto value
empty
Stringoptional
Orientorient

To switch to a horizontal table, use |orient=h

Default
empty
Example
h
Auto value
empty
Stringoptional
Item11

The name of the item

Default
empty
Example
Ectophial
Auto value
empty
Pagesuggested
Item22

The name of the item

Default
empty
Example
Bones
Auto value
empty
Pagesuggested
Item33

The name of the item

Default
empty
Example
Steel bar
Auto value
empty
Pagesuggested
Item44

The name of the item

Default
empty
Example
Cannonball
Auto value
empty
Pagesuggested
Item55

The name of the item

Default
empty
Example
Rune arrow
Auto value
empty
Pagesuggested
Item66

The name of the item

Default
empty
Example
Fire rune
Auto value
empty
Pagesuggested
Item77

The name of the item

Default
empty
Example
Rune mace
Auto value
empty
Pagesuggested
Item88

The name of the item

Default
empty
Example
Bronze dagger
Auto value
empty
Pagesuggested
Item99

The name of the item

Default
empty
Example
Waterskin(4)
Auto value
empty
Pagesuggested
Item1010

The name of the item

Default
empty
Example
Desert shirt
Auto value
empty
Pagesuggested
Item1111

The name of the item

Default
empty
Example
Choc-ice
Auto value
empty
Pagesuggested
Item112

The name of the item

Default
empty
Example
Fez
Auto value
empty
Pagesuggested
Item1313

The name of the item

Default
empty
Example
Knife
Auto value
empty
Pagesuggested
Item1414

The name of the item

Default
empty
Example
Master wand
Auto value
empty
Pagesuggested
Item1515

The name of the item

Default
empty
Example
Holy wrench
Auto value
empty
Pagesuggested
Item1616

The name of the item

Default
empty
Example
Teleport card
Auto value
empty
Pagesuggested
Item1717

The name of the item

Default
empty
Example
Mithril dart
Auto value
empty
Pagesuggested
Item1818

The name of the item

Default
empty
Example
Cyan crystal
Auto value
empty
Pagesuggested
Item1919

The name of the item

Default
empty
Example
Coins
Auto value
empty
Pagesuggested
Item2020

The name of the item

Default
empty
Example
Bronze spear
Auto value
empty
Pagesuggested
Item2121

The name of the item

Default
empty
Example
Armadyl cloak
Auto value
empty
Pagesuggested
Item2222

The name of the item

Default
empty
Example
Morytania legs 2
Auto value
empty
Pagesuggested
Item2323

The name of the item

Default
empty
Example
Black prism
Auto value
empty
Pagesuggested
Item2424

The name of the item

Default
empty
Example
Weapon poison(++)
Auto value
empty
Pagesuggested
Item2525

The name of the item

Default
empty
Example
Willow longbow
Auto value
empty
Pagesuggested
Item2626

The name of the item

Default
empty
Example
Black cog
Auto value
empty
Pagesuggested
Item2727

The name of the item

Default
empty
Example
Saradomin godsword
Auto value
empty
Pagesuggested
Item2828

The name of the item

Default
empty
Example
Larupia hat
Auto value
empty
Pagesuggested