FANDOM


Documentation icon Template documentation[edit] [purge]
This documentation is transcluded from Template:Infotable Bonuses Header Sortable/doc.

This template displays the bonus header for infotables.

Usage

This template can be used by entering the following onto a relevant page.

{{Infotable Bonuses Header Sortable}}

| Item  || 0 || 0 || 0 || 0 || 0 ||  0 || 0 ||  0 || 0 ||  0 || 0 || 0 || 0
|-
| Item   || 0 || 0 || 0 || 0 || 0 ||  0 ||  0 ||  0 || 0 ||  0 || 0 || 0 || 0
|-
| Item   || 0 || 0 || 0 || 0 || 0 ||  0 ||  0 || 0 || 0 ||  0 || 0 || 0 || 0
|- 
| Item || 0 || 0 || 0 || 0 || 0 ||  0 ||  0 ||  0 || 0 || 0 || 0 || 0 || 0
|-
|}

Optional Parameters

{{Infotable Bonuses Header Sortable
|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 File: or File:
|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 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.

See Also

Community content is available under CC-BY-SA unless otherwise noted.