Malline:Infotable Bonuses Header Sortable

RuneWikistä, vapaasta RuneScape-aiheisesta tietosanakirjasta. Tänään on 28. huhtikuuta 2024.
Siirry valikkoon Siirry hakuun


Usage[muokkaa wikitekstiä]

{{Infotable Bonuses Header Sortable}}

| Headband  || 0 || 0 || 0 || 0 || 0 ||  0 || -2 ||  0 || 0 ||  0 || 0 || 0 || 0
|-
| Tanktop   || 0 || 0 || 0 || 0 || 0 || -4 ||  0 ||  0 || 0 ||  0 || 0 || 0 || 0
|-
| Cutoffs   || 0 || 0 || 0 || 0 || 0 ||  0 ||  0 || -3 || 0 ||  0 || 0 || 0 || 0
|- 
| Flipflops || 0 || 0 || 0 || 0 || 0 ||  0 ||  0 ||  0 || 0 || -1 || 0 || 0 || 0
|-

results in:

Hover over image for bonus type{{#vardefine:rows|1}}

Item Stab Attack Slash Attack Crush Attack Magic Attack Range Attack Stab Defence Slash Defence Crush Defence Magic Defence Range Defence Summoning Defence Strength Prayer
Headband 0 0 0 0 0 0 -2 0 0 0 0 0 0
Tanktop 0 0 0 0 0 -4 0 0 0 0 0 0 0
Cutoffs 0 0 0 0 0 0 0 -3 0 0 0 0 0
Flipflops 0 0 0 0 0 0 0 0 0 -1 0 0 0

Optional Parameters[muokkaa wikitekstiä]

{{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[muokkaa wikitekstiä]

  • 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.

See Also[muokkaa wikitekstiä]