Template:Infotable Bonuses header Beta/doc

From Darkan
Revision as of 16:53, 12 September 2012 by imported>Blaze fire12
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Documentation This is a documentation subpage for Template:Infotable Bonuses header Beta.
It contains usage information, categories, and other content that is not part of the original template page.

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:



Item
Main Hand Info Offhand Info Defence Info Critical bonuses
Type Damage Hit Bonus Type Damage Hit Bonus
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%
Totals 0 0 0 0 0 -4 -2 -3 0 0% 0% 0%

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.

See also