Template:Infobox Bonuses/doc

The Infobox Bonuses template adds an infobox to display Attack and Defence bonuses for weapons and equipment. Other bonuses such as Strength, Prayer and Ranged Strength bonuses may also be included. Two optional image and caption(s) may be added to the right of the infobox to show players wielding the weapon, or wearing the equipment.

Attack speed
The aspeed parameter is an optional number that represents speed for weapons. The lower the number, the slower the weapon (see Official Weapon Types page).


 * {| class="wikitable"

!Speed!!Speed bar
 * align="center"|10||
 * align="center"|9||
 * align="center"|8||
 * align="center"|7||
 * align="center"|6||
 * align="center"|5||
 * align="center"|4||
 * align="center"|3||
 * align="center"|2||
 * align="center"|1||
 * align="center"|0||
 * align="center"|anim||
 * }
 * align="center"|4||
 * align="center"|3||
 * align="center"|2||
 * align="center"|1||
 * align="center"|0||
 * align="center"|anim||
 * }
 * align="center"|0||
 * align="center"|anim||
 * }
 * align="center"|anim||
 * }

Image and caption
NOTE: Currently, the image and caption parameters only work for two images. Due to technical limitations, adding more than two images with captions is not supported.

The "image" parameter may be used to add an image to the right of the infobox. The possible values are:
 * image=no - disables the parameter
 * image=needed - adds the page to Category:Needs image and displays a "Please upload an image!" message with a link to Special:Upload
 * image=[blank] or image is ignored - adds the page to Category:Needs image placement
 * image=filename (i.e. without File: or Image:) - adds the image to the infobox
 * caption=text - optional; adds the caption

For the second image, simply use:
 * image2=filename (i.e. without File: or Image:) - adds the second image to the infobox
 * caption2=text - optional; adds the caption for the second image

Resizing an image
If the image is too big and does not fit the infobox properly, simply resize the image by adding this:
 * - at the end of the image (or image2) parameter

For example, to resize an image to a width of 200 pixels, use:
 * image=filename 200px

And, to resize an image to a maximum width of 100 pixels or a maximum height of 150 pixels, use:
 * image=filename 100x150px