Template:Infotable Bonuses footer

From RuneRealm Wiki

This is the current revision of this page, as edited by Alex (talk | contribs) at 01:38, 12 October 2024 (Created page with "<includeonly>|}</includeonly><noinclude>{{Infotable Bonuses row/doc}}</noinclude>"). 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
Template documentation
This documentation is transcluded from Template:Infotable Bonuses row/doc. [edit] [history] [purge]

The Infotable Bonuses templates are used to display the stat bonuses of one or multiple items, and can calculate a total to display at the bottom.

Quick copy & paste

{{Infotable Bonuses header}}
{{Infotable Bonuses row|name=|astab=0|aslash=0|acrush=0|amagic=0|arange=0|dstab=0|dslash=0|dcrush=0|dmagic=0|drange=0|str=0|rstr=0|mdmg=0|prayer=0}}
{{Infotable Bonuses totals}}
{{Infotable Bonuses footer}}

Usage

{{Infotable Bonuses header
|image    = <!-- (Optional) Adds an image to the right side of the table -->
}}
{{Infotable Bonuses row
|name     = <!-- Name of the item -->
|altname  = <!-- (Optional) Alternative name to display -->
|pic      = <!-- (Optional) Alternative icon to display -->
|gif      = <!-- (Optional) Use a gif instead of png for the icon -->
|hideicon = <!-- (Optional) Hides the item icon -->
|astab    = <!-- Offensive stab bonus -->
|aslash   = <!-- Offensive slash bonus -->
|acrush   = <!-- Offensive crush bonus -->
|amagic   = <!-- Offensive magic bonus -->
|arange   = <!-- Offensive range bonus -->
|dstab    = <!-- Defensive stab bonus -->
|dslash   = <!-- Defensive slash bonus -->
|dcrush   = <!-- Defensive crush bonus -->
|dmagic   = <!-- Defensive magic bonus -->
|drange   = <!-- Defensive range bonus -->
|str      = <!-- Melee strength -->
|rstr     = <!-- Ranged strength -->
|mdmg     = <!-- Magic damage bonus -->
|prayer   = <!-- Prayer bonus -->
}}
{{Infotable Bonuses totals}}
{{Infotable Bonuses footer}}

Infotable Bonuses header

image: (Optional) Adds an image to the right side of the table, typically used for displaying full armour sets.

Infotable Bonuses row

name: The name of the item (the page that gets linked to).
altname: (Optional) An alternative name to display.
pic: (Optional) An alternative icon to display.
gif: (Optional) Set to gif=yes to change the image extension from .gif to .png.
hideicon: (Optional) Set to hideicon=yes to hide the icon entirely.
Stat params: All of the stat parameters are required. If left empty, the cell will display as ?.

Infotable Bonuses totals

An optional template, used to display the running stat totals of all the rows before it.

Infotable Bonuses footer

A simple footer template used to close the table. Equivalent to |}, but is used to make parsing wikitext easier.

Examples

{{Infotable Bonuses header}}
{{Infotable Bonuses row|name=Bronze med helm|astab=0|aslash=0|acrush=0|amagic=-3|arange=-1|dstab=+3|dslash=+4|dcrush=+2|dmagic=-1|drange=+4|str=0|rstr=0|mdmg=0|prayer=0}}
{{Infotable Bonuses row|name=Blessed body|altname=yeehaw|pic=Guthix d'hide body|astab=0|aslash=0|acrush=0|amagic=-15|arange=+30|dstab=+55|dslash=+47|dcrush=+60|dmagic=+50|drange=+55|str=0|rstr=0|mdmg=0|prayer=+1}}
{{Infotable Bonuses row|name=Wooden shield|pic=Dragon med helm|dstab=+4|dslash=+5|dcrush=+3|dmagic=+1|drange=+4}}
{{Infotable Bonuses row|name=Fancy boots|astab=0|aslash=0|acrush=0|amagic=-3|arange=-1|dstab=+1|dslash=+2|dcrush=+3|dmagic=0|drange=0|str=0|rstr=0|mdmg=0|prayer=0}}
{{Infotable Bonuses totals}}
{{Infotable Bonuses footer}}
Item Attack bonuses Defence bonuses Other
Bronze med helm 0 0 0 -3 -1 +3 +4 +2 -1 +4 0 0 0% 0
yeehaw 0 0 0 -15 +30 +55 +47 +60 +50 +55 0 0 0% +1
Wooden shield ? ? ? ? ? +4 +5 +3 +1 +4 ? ? ?% ?
Fancy boots 0 0 0 -3 -1 +1 +2 +3 0 0 0 0 0% 0
Totals 0 0 0 -21 +28 +63 +58 +68 +50 +63 0 0 0% +1

See also