Template:GroupTableColHeader

From QWiki
Revision as of 20:27, 12 February 2021 by Bps (talk | contribs) (Tweaking to enable "Points" column)

Documentation (view - edit)

Adds a column header row to a group table. This template is used inbetween the templates {{GroupTableStart}} and {{GroupTableSlot}}, which have to end with with {{GroupTableEnd}}).

Example #1

{{GroupTableStart|GroupTableStart|width=100%}}
{{GroupTableColHeader|Nation|games=1|maps=1|diff=1}}
{{GroupTableEnd}}

Gives us:

GroupTableStart
# Nation Games Maps Diff Points

Example #1

{{GroupTableStart|GroupTableStart|width=100%}}
{{GroupTableColHeader|Nation|games=1|maps=1|diff=}}
{{GroupTableEnd}}

Gives us:

GroupTableStart
# Nation Games Maps Points

Parameters

The following parameters can be used for this template

first unnamed argument
The first unnamed argument of the parameter list is used as the name of player column. Examples could be Player, Team or Nation.
|games=
(Optional) If not empty, it will display "Games" header
|maps=
(Optional) If not empty, it will display "Maps" header
|diff=
(Optional) If not empty, it will display "Diff" header