Template:CompareTableLine/doc

The CompareTableLine template is used to create a table to compare item equipment bonuses. It is used in conjunction with CompareTableHead which actually creates the table.

On an item's page, it is placed in a Comparison subheading below the Bonuses heading and Infobox Bonuses. It can be used elsewhere when helpful.

Usage
It is important to begin the comparison table with: and end it with: |}

Everything between those elements are CompareTableLine. CompareTableLine takes 8 parameters that represent the columns of the table:
 * image - The item's name, which automatically displays its inventory icon.
 * image2 - Optional. Another item can be included so both images can appear as part of a set in a bonus stats row.
 * item - Optional. The item name, automatically linked to its page. If using multiple images, use the item set's page. If missing, it assumes the item's image is the same as the item's page.
 * armour - The Armour equipment bonus. If input value is 0, it instead displays . Do not use "N/A" or anything but a number.
 * aim - The WeaponAim equipment bonus. Same details as above.
 * power - The WeaponPower equipment bonus. Same details as above.
 * magic - The Magic equipment bonus. Same details as above.
 * prayer - The Prayer equipment bonus. Same details as above.

Missing input for any parameter besides the optional parameters categorizes the page with Category:Needs comparison info.

Example 1
An easier to read example of the parts of a comparison table and the parameters to set. Naturally, a second item would be included to compare with.


 * }


 * }

Example 2
Although, the CompareTableLine should be condensed and rid of whitespace. The item parameter is excluded because the item's filename matches the item's pagename.


 * }


 * }

Example 3
Multiple items to easily compare stats with. One set is split to show the similarities among those items, while other rows join set items and add their equipment bonuses in total.


 * }


 * }

Example 4
The result of each parameter missing.


 * }


 * }