Template:Inventory

From the RuneScape Wiki, the wiki for all things RuneScape
Jump to: navigation, search
Template documentation
This documentation is transcluded from Template:Inventory/doc. [edit] [purge]
Template:Inventory invokes function main in 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
}}

To specify an amount, use a backslash and enter the amount for that item. To depict noted items, append ;n after the item name or quantity. For example:

Cannonball.png50Steel 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\50;n | | |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
}}

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.

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
Rainbow wand token
Auto value
empty
Pagesuggested
Item1515

The name of the item

Default
empty
Example
Portent of passage VII
Auto value
empty
Pagesuggested
Item1616

The name of the item

Default
empty
Example
Radiant energy
Auto value
empty
Pagesuggested
Item1717

The name of the item

Default
empty
Example
Chronicle fragment
Auto value
empty
Pagesuggested
Item1818

The name of the item

Default
empty
Example
Light core
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
Dervish shoes (violet)
Auto value
empty
Pagesuggested
Item2121

The name of the item

Default
empty
Example
Wolf bone arrowheads
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
Heim crab & gissel potato
Auto value
empty
Pagesuggested
Item2525

The name of the item

Default
empty
Example
Raw heim crab
Auto value
empty
Pagesuggested
Item2626

The name of the item

Default
empty
Example
Raw vile fish
Auto value
empty
Pagesuggested
Item2727

The name of the item

Default
empty
Example
Golden Saradomin godsword
Auto value
empty
Pagesuggested
Item2828

The name of the item

Default
empty
Example
Willow sentinel helm
Auto value
empty
Pagesuggested