FANDOM


Documentation icon Template documentation[edit] [purge]
This documentation is transcluded from Template:Infotable Bonuses header/doc.

This template is used when making a "Equipment bonuses" infotable. This is a good way to compress set information, similar items, and compared items into a simple list, while also assuring specific information is always present in a consistent manner.

Usage

Selecting type=mixed will add another column to the header to indicate the type of each individual piece. This column will appear between the "Item" column and the "Mainhand Info" column.

If used, the value entered for skill and skill2 should be a value that could be entered into {{Skill clickpic}}.

To change the width of image or image2 you can do imagename.png{{!}}__px.

{{Infotable Bonuses header
|type     = Equipment set type. Melee/Magic/Ranged/All/Hybrid/Mixed/None.
|noinv    = If exists, the Item header will have 1 column rather than 2.
|skill    = Adds a column for levels.
|skill2   = Adds a second column for levels.
|price    = If exists, adds a column at the end for the item prices.
|noweapon = If exists, suppresses the weapon style/damage/accuracy columns

  // The following only matter if you're using an image on the side.
|rows     = Number of items in the table.
|tot      = The number of times the totals template is used; defaults to zero.
|image    = An image's filename, with no "File:" (ex: name.png)
|image2   = A second image's filename, with no "File:"
}}

Quick copy-paste

{{InfoHeader|type=}}

Example

{{InfoHeader|type=Ranged|noweapon=true}}
| [[File:Robin Hood hat.png]] || [[Robin Hood hat]]
| 107 || 0 ||  0 || 0 || 9 || 0
|-
| [[File:Ranger boots.png]] || [[Ranger boots]]
| 26 || 0 ||  0 || 0 || 6 || 0
|-
{{Infotable Bonuses totals}}
| 133 || 0 || 0 || 0 || 15 || 0
|}


results in:

Ranged
Item
Attributes Style bonus
Defence Constitution Prayer Attack-icon Ranged-icon Magic-icon
Robin Hood hat Robin Hood hat 107 0 0 0 9 0
Ranger boots Ranger boots 26 0 0 0 6 0
Totals 133 0 0 0 15 0

Notes

  • The totals must be manually calculated.
  • The closing mark ( |} ) must be added at the end.
  • A space is needed preceding the first total in the totals line; you will also need spaces between pipes ( | ) and signs ( + or - ), as without can cause the software to recognise it as |- or |+ and create a new row or new table header.
  • The number of rows must be specified if an image is specified. This is all items in the table - the header rows are added automatically. Totals are not automatically added - specify how many times they is used using tot.

Using InfoRows

Alternatively, you can use InfoRows for making table rows:

{{InfoHeader|type=Melee}}
{{InfoRow|name=[[Auspicious katana]]|image=[[File:Auspicious Katana.png]]
|mstyle=Slash|mdmg=1676|macc=1694}}
|-
{{Infotable Bonuses totals}}
{{InfoRow|mstyle=Slash|mdmg=1676|macc=1694}}
|}

Resulting in:

Attack
Item
Main-handOff-hand Attributes Style bonus
Style Dmg Acc Style Dmg Acc Defence Constitution Prayer Attack-icon Ranged-icon Magic-icon
Auspicious KatanaAuspicious katana Slash 1676 1694 - - - 0 0 0 - - -
Totals Slash 1676 1694 - - - 0 0 0 - - -

See also

Community content is available under CC-BY-SA unless otherwise noted.