Difference between revisions of "Template:CBB game log section header"
imported>McVahl (+left align for default format) |
imported>McVahl (color_primary → color_secondary, align param name with Template:CBB game log start) |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
{{#switch: {{lc:{{{format|}}}}} | {{#switch: {{lc:{{{format|}}}}} | ||
| compact = {{Game log section header | | compact = {{Game log section header | ||
| − | | | + | | style = border-top:5px solid {{{color|<nowiki>#</nowiki>{{#switch:{{lc:{{{{#ifeq:{{{color_secondary|yes}}}|no|CollegePrimaryHex|CollegeSecondaryHex}}|1={{{1}}}}}}} |
| − | + | | white | |
| + | | ffffff = {{{{#ifeq:{{{color_secondary|yes}}}|yes|CollegePrimaryHex|CollegeSecondaryHex}}|1={{{1}}}}} | ||
| + | | #default = {{{{#ifeq:{{{color_secondary|yes}}}|no |CollegePrimaryHex|CollegeSecondaryHex}}|1={{{1}}}}} | ||
| + | }} }}} | ||
| title = {{{2}}}{{#if:{{{team_wins|}}}|: {{{team_wins|0}}}–{{{team_losses|0}}}}} {{{record|}}} | | title = {{{2}}}{{#if:{{{team_wins|}}}|: {{{team_wins|0}}}–{{{team_losses|0}}}}} {{{record|}}} | ||
| width1 = 3% | Game | | width1 = 3% | Game | ||
| Line 16: | Line 19: | ||
| width10 = 17% | Location | | width10 = 17% | Location | ||
}} | }} | ||
| − | | #default = {{Game log section | + | | #default = {{Game log section header |
| − | | | + | | style = border-top:5px solid {{{color|<nowiki>#</nowiki>{{#switch:{{lc:{{{{#ifeq:{{{color_secondary|yes}}}|no|CollegePrimaryHex|CollegeSecondaryHex}}|1={{{1}}}}}}} |
| − | + | | white | |
| + | | ffffff = {{{{#ifeq:{{{color_secondary|yes}}}|yes|CollegePrimaryHex|CollegeSecondaryHex}}|1={{{1}}}}} | ||
| + | | #default = {{{{#ifeq:{{{color_secondary|yes}}}|no |CollegePrimaryHex|CollegeSecondaryHex}}|1={{{1}}}}} | ||
| + | }} }}} | ||
| title = {{{2}}}{{#if:{{{team_wins|}}}|: {{{team_wins|0}}}–{{{team_losses|0}}}}} {{{record|}}} | | title = {{{2}}}{{#if:{{{team_wins|}}}|: {{{team_wins|0}}}–{{{team_losses|0}}}}} {{{record|}}} | ||
| align = left | | align = left | ||
| − | | Date<br />time, TV | + | | width1 = auto | Date<br />time, TV |
| − | | {{#ifeq:{{{rank|}}} | no | | Rank<sup>#</sup>}} | + | | width2 = auto | {{#ifeq:{{{rank|}}} | no | | Rank<sup>#</sup>}} |
| − | | Opponent{{#ifeq:{{{rank|}}} | no | |<sup>#</sup>}} | + | | width3 = auto | Opponent{{#ifeq:{{{rank|}}} | no | |<sup>#</sup>}} |
| − | | Result | + | | width4 = auto | Result |
| − | | Record | + | | width5 = auto | Record |
| − | | {{#ifeq:{{{gamehighs|}}} | yes | High points }} | + | | width6 = auto | {{#ifeq:{{{gamehighs|}}} | yes | High points }} |
| − | | {{#ifeq:{{{gamehighs|}}} | yes | High rebounds }} | + | | width7 = auto | {{#ifeq:{{{gamehighs|}}} | yes | High rebounds }} |
| − | | {{#ifeq:{{{gamehighs|}}} | yes | High assists }} | + | | width8 = auto | {{#ifeq:{{{gamehighs|}}} | yes | High assists }} |
| − | | {{#ifeq:{{{site|}}} | no | | Site {{#ifeq:{{{attend|}}} | yes |(attendance)}}<br />city, state}} | + | | width9 = auto | {{#ifeq:{{{site|}}} | no | | Site {{#ifeq:{{{attend|}}} | yes |(attendance)}}<br />city, state}} |
}} | }} | ||
| − | }} | + | }}<noinclude> |
| − | <noinclude>{{CBB game log end}} | + | {{CBB game log end}} |
{{documentation|Template:CBB game log start/doc}} | {{documentation|Template:CBB game log start/doc}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 06:10, 8 June 2020
| ||||||
| *Non-conference game. #Rankings from AP Poll. (#) Tournament seedings in parentheses. | ||||||
| 40x40px | To test changes, please do so at Template:CBB game log section header/sandbox first, and then implement them here. See also the companion subpage for test cases at Template:CBB game log start/testcases. |
Contents
Usage
Table format
Default
For default format, the game log templates Template:Tltt and Template:Tltt are backward compatible to schedule templates Template:Tltt and Template:Tltt, respectively—i.e. the parameters of Template:Tltt are reused in Template:Tltt. Meanwhile, template Template:Tltt is recommended to be used for entries in game log sections.
Default format syntax
|
|---|
Exhibitions and regular season{{CBB game log start |TEAM_NAME|season=|year=|end_year=|tournament=|record=}}
{{CBB game log section header|TEAM_NAME|Exhibition|first=yes|team_wins=|team_losses=}}
{{CBB schedule entry}}
...
{{CBB game log section header|TEAM_NAME|Non-conference regular season|team_wins=|team_losses=}}
{{CBB schedule entry}}
...
{{CBB game log section header|TEAM_NAME|ACC regular season|team_wins=|team_losses=}}
{{CBB schedule entry}}
...
{{CBB game log end}}
Playoffs{{CBB game log start |TEAM_NAME|playoff=yes|season=|year=|end_year=|tournament=|record=}}
{{CBB game log section header|TEAM_NAME|ACC Tournament|playoff=yes|first=yes|team_wins=|team_losses=}}
{{CBB schedule entry}}
...
{{CBB game log section header|TEAM_NAME|NCAA Tournament|playoff=yes|team_wins=|team_losses=}}
{{CBB schedule entry}}
...
{{CBB game log end}}
|
Compact
For compact format, template Template:Tltt is recommended to be used for entries in game log sections.
Compact format syntax
|
|---|
Exhibitions and regular season{{CBB game log start |TEAM_NAME|season=|year=|end_year=|tournament=|record=}}
{{CBB game log section header|TEAM_NAME|Exhibition|format=compact|first=yes|team_wins=|team_losses=}}
{{CBB game log section entry}}
...
{{CBB game log section header|TEAM_NAME|Non-conference regular season|format=compact|team_wins=|team_losses=}}
{{CBB game log section entry}}
...
{{CBB game log section header|TEAM_NAME|ACC regular season|format=compact|team_wins=|team_losses=}}
{{CBB game log section entry}}
...
{{CBB game log end}}
Playoffs{{CBB game log start |TEAM_NAME|playoff=yes|season=|year=|end_year=|tournament=|record=}}
{{CBB game log section header|TEAM_NAME|ACC Tournament|format=compact|playoff=yes|first=yes|team_wins=|team_losses=}}
{{CBB game log section entry}}
...
{{CBB game log section header|TEAM_NAME|NCAA Tournament|format=compact|playoff=yes|team_wins=|team_losses=}}
{{CBB game log section entry}}
...
{{CBB game log end}}
|
Colors
By default, the table utilizes Template:Tltt and Template:Tltt templates for team colors. Team's name and colors must be listed in Module:College color for colors to take effect, e.g. for Harvard Crimson appearing on the teams list:
{{CBB game log start |Harvard Crimson|..}} <!-- primary color is applied -->
{{CBB game log section header|Harvard Crimson|..}} <!-- secondary color is applied -->
If team does not appear in Module:College color list, custom colors can be supplied as follows:
{{CBB game log start |color=#000000|..}}
{{CBB game log start |color=black |..}}
Examples
Default format
For default format, the game log templates Template:Tltt and Template:Tltt are backward compatible to schedule templates Template:Tltt and Template:Tltt, respectively—i.e. the parameters of Template:Tltt are reused in Template:Tltt. Meanwhile, template Template:Tltt is recommended to be used for entries in game log sections.
Default column display
- Set
|gamehighs=yesin Template:Tltt; and - Set
|rank=noin all instances of Template:Tltt and Template:Tltt
Compact format
For compact format, template Template:Tltt is recommended to be used for entries in game log sections.
Full, rank column shown
Simply set |rank=no in all instances of Template:Tltt and Template:Tltt.
Custom team colors
See also
- {{CBB game log start}}
- {{CBB game log end}}
- Section entry template/s:
- {{CBB schedule entry}} – for default format
- {{CBB game log section entry}} – for compact format
| The above documentation is transcluded from Template:CBB game log start/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Subpages of this template. |