Template documentation
This documentation is transcluded from Template:Looting bag/doc. [edit] [history] [purge]
Template:Looting bag invokes function main in Module:Inventory using Lua.

This template provides basic formatting to display the contents of a looting bag.

Usage

This template can be used by entering the following onto a relevant page.

{{Looting bag|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.

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

{{Looting bag|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
{{Looting bag|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
{{Looting bag|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
{{Looting bag|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 | | |
| | | |
| | | |
| | | |
}}

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 the contents of a looting bag. 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[Edit template data]

This template prefers block formatting of parameters.

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.

Example
right
Stringoptional
orientorient

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

Example
h
Stringoptional
Item11

The name of the item

Example
Ectophial
Page namesuggested
Item22

The name of the item

Example
Bones
Page namesuggested
Item33

The name of the item

Example
Steel bar
Page namesuggested
Item44

The name of the item

Example
Cannonball
Page namesuggested
Item55

The name of the item

Example
Rune arrow
Page namesuggested
Item66

The name of the item

Example
Fire rune
Page namesuggested
Item77

The name of the item

Example
Rune mace
Page namesuggested
Item88

The name of the item

Example
Bronze dagger
Page namesuggested
Item99

The name of the item

Example
Waterskin(4)
Page namesuggested
Item1010

The name of the item

Example
Desert shirt
Page namesuggested
Item1111

The name of the item

Example
Choc-ice
Page namesuggested
Item112

The name of the item

Example
Fez
Page namesuggested
Item1313

The name of the item

Example
Knife
Page namesuggested
Item1414

The name of the item

Example
Master wand
Page namesuggested
Item1515

The name of the item

Example
Holy wrench
Page namesuggested
Item1616

The name of the item

Example
Teleport card
Page namesuggested
Item1717

The name of the item

Example
Mithril dart
Page namesuggested
Item1818

The name of the item

Example
Cyan crystal
Page namesuggested
Item1919

The name of the item

Example
Coins
Page namesuggested
Item2020

The name of the item

Example
Bronze spear
Page namesuggested
Item2121

The name of the item

Example
Armadyl cloak
Page namesuggested
Item2222

The name of the item

Example
Morytania legs 2
Page namesuggested
Item2323

The name of the item

Example
Black prism
Page namesuggested
Item2424

The name of the item

Example
Weapon poison(++)
Page namesuggested
Item2525

The name of the item

Example
Willow longbow
Page namesuggested
Item2626

The name of the item

Example
Black cog
Page namesuggested
Item2727

The name of the item

Example
Saradomin godsword
Page namesuggested
Item2828

The name of the item

Example
Larupia hat
Page namesuggested