Template:Infotable Bonuses header Beta/doc
Jump to navigation
Jump to search
Usage
{{Infotable Bonuses header Beta|class=magic}} |- | Headband || 0 || 0 || 0 || 0 || 0 || 0 || -2 || 0 || 0 || 0% || 0% || 0% |- | Tanktop || 0 || 0 || 0 || 0 || 0 || -4 || 0 || 0 || 0 || 0% || 0% || 0% |- | Cutoffs || 0 || 0 || 0 || 0 || 0 || 0 || 0 || -3 || 0 || 0% || 0% || 0% |- | Flipflops || 0 || 0 || 0 || 0 || 0 || 0 || 0 || 0 || 0 || 0% || 0% || 0% |- {{Infotable Bonuses totals}} | 0 || 0 || 0 || 0 || 0 || -4 || -2 || -3 || 0 || 0% || 0% || 0% |}
results in:
Optional Parameters
{{Infotable Bonuses header |style = any styles to apply to the entire table |class = The class of the armour/weapon. Melee/Magic/Ranged/All/other. |inv = If this exists (i.e. is present with a non-space value in the code) then the Item header spans two columns - designed for placing inventory sprites next to the name |image = an image's filename, with no Image: or File: (NOTE: This should generally not be used due to width restrictions) |caption = the image's caption |rows = number of items in the table; if there is an image specified this MUST be too |tot = the number of times the totals or multi-totals template is used; defaults to zero |image2 = a second image's filename, with no File: or File: |caption2 = the second image's caption }}
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 and multiple totals are not automatically added - specify how many times they is used using tot.