Difference between revisions of "Template:GroupTableColHeader/doc"
From QWiki
(Doc for GroupTableColHeader) |
m (Updated doc) |
||
Line 13: | Line 13: | ||
;''|diff='' | ;''|diff='' | ||
:(Optional) If not empty, it will display "Diff" header | :(Optional) If not empty, it will display "Diff" header | ||
+ | ;''|points='' | ||
+ | :(Optional) If not empty, it will display "Points" header. The code is messy, you might wanna try different combinations together with <mark>|col=#</mark> depending on total # of cols you want. Also, there's no corresponding "points" in {{tl|MatchListNoheader}}, so use |diff for that. | ||
== Examples == | == Examples == |
Revision as of 20:43, 12 February 2021
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}}).
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
orNation
. - |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
- |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.
Examples
#1
{{GroupTableStart|GroupTableStart}} {{GroupTableColHeader|Nation|games=1|maps=1|diff=1}} {{Template:GroupTableEnd}}
This will result in the following table
GroupTableStart | |||||
---|---|---|---|---|---|
# | Nation | Games | Maps | Diff |
#2
{{GroupTableStart|GroupTableStart}} {{GroupTableColHeader|Nation|games=1|maps=1|diff=}} {{Template:GroupTableEnd}}
This will result in the following table
GroupTableStart | |||||
---|---|---|---|---|---|
# | Nation | Games | Maps |