Template:Inventory/doc

From RuneRealm Wiki

This is the current revision of this page, as edited by Eq (talk | contribs) at 05:03, 14 October 2024 (Created page with "{{documentation}} This template provides basic formatting to display an inventory. ==Usage== This template can be used by entering the following onto a relevant page. <pre>{{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 }}</pre> To specify an amount for a stackable item, put a bac..."). The present address (URL) is a permanent link to this version.

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
This is a documentation subpage for Template:Inventory.
It contains usage information, categories, and other content that is not part of the original template page.
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.

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:

12
{{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).

1
100
50
{{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.

20
{{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.

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
Item 11

The name of the item.

Example
Ectophial
Page nameoptional
Item 22

The name of the item.

Example
Bones
Page nameoptional
Item 33

The name of the item.

Example
Steel bar
Page nameoptional
Item 44

The name of the item.

Example
Cannonball
Page nameoptional
Item 55

The name of the item.

Example
Rune arrow
Page nameoptional
Item 66

The name of the item.

Example
Fire rune
Page nameoptional
Item 77

The name of the item.

Example
Rune mace
Page nameoptional
Item 88

The name of the item.

Example
Bronze dagger
Page nameoptional
Item 99

The name of the item.

Example
Waterskin(4)
Page nameoptional
Item 1010

The name of the item.

Example
Desert shirt
Page nameoptional
Item 1111

The name of the item.

Example
Choc-ice
Page nameoptional
Item 1212

The name of the item.

Example
Fez
Page nameoptional
Item 1313

The name of the item.

Example
Knife
Page nameoptional
Item 1414

The name of the item.

Example
Master wand
Page nameoptional
Item 1515

The name of the item.

Example
Holy wrench
Page nameoptional
Item 1616

The name of the item.

Example
Teleport card
Page nameoptional
Item 1717

The name of the item.

Example
Mithril dart
Page nameoptional
Item 1818

The name of the item.

Example
Cyan crystal
Page nameoptional
Item 1919

The name of the item.

Example
Coins
Page nameoptional
Item 2020

The name of the item.

Example
Bronze spear
Page nameoptional
Item 2121

The name of the item.

Example
Armadyl cloak
Page nameoptional
Item 2222

The name of the item.

Example
Morytania legs 2
Page nameoptional
Item 2323

The name of the item.

Example
Black prism
Page nameoptional
Item 2424

The name of the item.

Example
Weapon poison(++)
Page nameoptional
Item 2525

The name of the item.

Example
Willow longbow
Page nameoptional
Item 2626

The name of the item.

Example
Black cog
Page nameoptional
Item 2727

The name of the item.

Example
Saradomin godsword
Page nameoptional
Item 2828

The name of the item.

Example
Larupia hat
Page nameoptional
alignalign

To align the inventory to a specific side, use the align parameter.

Example
right
Stringoptional
orientorient

To switch to a horizontal table, set the parameter passed to "h".

Example
h
Stringoptional