Template:GroupTableColHeaderPoints/doc

From QWiki
< Template:GroupTableColHeaderPoints
Revision as of 09:46, 29 March 2021 by Bps (talk | contribs) (Adding inter-doc links)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

Example #1

{{GroupTableStart|Example 1|width=100%}}
{{GroupTableColHeaderPoints|Nation|games=1|maps=1|diff=1|point=1}}
{{Template:GroupTableEnd}}

Gives us:

Example 1
# Nation Games Maps Diff Points

Example #2

{{GroupTableStart|Example 2|width=100%}}
{{GroupTableColHeaderPoints|Nation|games=1|maps=1|diff=|point=1}}
{{Template:GroupTableEnd}}

Gives us:

Example 2
# 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.
|points=
(Optional) If not empty, it will display "Points" header. The code is messy, you might wanna try different combinations together with |col=# depending on total # of cols you want. Also, there's no corresponding "points" in {{MatchListNoheader}}, so use |diff for that.
|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