Template:Infotable Bonuses header/doc
Jump to navigation
Jump to search
Usage
{{Infotable Bonuses header}}
|-
| Headband || 0 || 0 || 0 || 0 || 0 || 0 || -2 || 0 || 0 || 0 || 0 || 0 || 0 || 0 || 0% || 0% || 0% || 0%
|-
| Tanktop || 0 || 0 || 0 || 0 || 0 || -4 || 0 || 0 || 0 || 0 || 0 || 0 || 0 || 0 || 0% || 0% || 0% || 0%
|-
| Cutoffs || 0 || 0 || 0 || 0 || 0 || 0 || 0 || -3 || 0 || 0 || 0 || 0 || 0 || 0 || 0% || 0% || 0% || 0%
|-
| Flipflops || 0 || 0 || 0 || 0 || 0 || 0 || 0 || 0 || 0 || -1 || 0 || 0 || 0 || 0 || 0% || 0% || 0% || 0%
|-
{{Infotable Bonuses totals}}
| 0 || 0 || 0 || 0 || 0 || -4 || -2 || -3 || 0 || -1 || 0 || 0 || 0 || 0 || 0% || 0% || 0% || 0%
|}
results in:
| Item | Other | Absorption | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Headband | 0 | 0 | 0 | 0 | 0 | 0 | -2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0% | 0% | 0% | 0% |
| Tanktop | 0 | 0 | 0 | 0 | 0 | -4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0% | 0% | 0% | 0% |
| Cutoffs | 0 | 0 | 0 | 0 | 0 | 0 | 0 | -3 | 0 | 0 | 0 | 0 | 0 | 0 | 0% | 0% | 0% | 0% |
| Flipflops | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | -1 | 0 | 0 | 0 | 0 | 0% | 0% | 0% | 0% |
| Totals | 0 | 0 | 0 | 0 | 0 | -4 | -2 | -3 | 0 | -1 | 0 | 0 | 0 | 0 | 0% | 0% | 0% | 0% |
Optional Parameters
{{Infotable Bonuses header
|style=any styles to apply to the entire table
|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.
- Leave inv out of the code altogether if the sprites are not wanted. Otherwise, set it to a single character (y would make sense, but any work) to save code.