Difference between revisions of "Template:CBB game log section header"

From blackwiki
Jump to navigation Jump to search
imported>McVahl
m
imported>McVahl
(+backward compatibility with Template:CBB schedule start)
Line 1: Line 1:
 
<noinclude>{{Game log start|title=}}</noinclude>{{#ifeq:{{{first}}}|yes||<includeonly>{{Game log section end}}</includeonly>}}
 
<noinclude>{{Game log start|title=}}</noinclude>{{#ifeq:{{{first}}}|yes||<includeonly>{{Game log section end}}</includeonly>}}
{{Game log section start
+
{{#switch: {{lc:{{{style|}}}}}
| hide = {{{hide|no}}}
+
| compact = {{Game log section start
| style = {{#if:{{{bgcolor|}}}|background-color: {{{bgcolor}}}; color: {{{color}}}|{{NCAA {{#ifeq:{{{color_secondary}}}|yes|secondary&nbsp;}}color cell|1={{{1}}}}}}}
+
  | hide   = {{{hide|no}}}
| title = {{{2}}}{{#if:{{{team_wins|}}}|&#58; {{{team_wins|0}}}–{{{team_losses|0}}}}} {{{record|}}}
+
  | style   = {{#if:{{{bgcolor|}}}|background-color: {{{bgcolor}}}; color: {{{color}}}|{{NCAA {{#ifeq:{{{color_secondary}}}|yes|secondary&nbsp;}}color cell|1={{{1}}}}}}}
| width1  = 3%  | Game
+
  | title   = {{{2}}}{{#if:{{{team_wins|}}}|&#58; {{{team_wins|0}}}–{{{team_losses|0}}}}} {{{record|}}}
| width2  = 12%  | Date • Time
+
  | width1  = 3%  | Game
| width3  = 4%  | {{#ifeq:{{{playoff|{{{playoffs}}}}}}|yes|Seed|{{#ifeq:{{{show_rank|yes}}}|yes|Rank}}}}
+
  | width2  = 12%  | Date • Time
| width4  = auto | Opponent
+
  | width3  = 4%  | {{#ifeq:{{{playoff|{{{playoffs}}}}}}|yes|Seed|{{#ifeq:{{{show_rank|yes}}}|yes|Rank}}}}
| width5  = 8%  | Score
+
  | width4  = auto | Opponent
| width6  = 5%  | {{#ifeq:{{{playoff|{{{playoffs}}}}}}|yes|Series|Record}}
+
  | width5  = 8%  | Result
| width7  = 11%  | High points
+
  | width6  = 5%  | {{#ifeq:{{{playoff|{{{playoffs}}}}}}|yes|Series|Record}}
| width8  = 11%  | High rebounds
+
  | width7  = 11%  | High points
| width9  = 11%  | High assists
+
  | width8  = 11%  | High rebounds
| width10 = 17%  | Location
+
  | width9  = 11%  | High assists
}}<noinclude>
+
  | width10 = 17%  | Location
 +
}}
 +
| #default = {{Game log section start
 +
  | hide  = {{{hide|no}}}
 +
  | style = {{#if:{{{bgcolor|}}}|background-color: {{{bgcolor}}}; color: {{{color}}}|{{NCAA {{#ifeq:{{{color_secondary}}}|yes|secondary&nbsp;}}color cell|1={{{1}}}}}}}
 +
  | title = {{{2}}}{{#if:{{{team_wins|}}}|&#58; {{{team_wins|0}}}–{{{team_losses|0}}}}} {{{record|}}}
 +
  | Date<br />time, TV
 +
  | {{#ifeq:{{{rank|}}} | no | | Rank<sup>#</sup>}}
 +
  | Opponent{{#ifeq:{{{rank|}}} | no | |<sup>#</sup>}}
 +
  | Result
 +
  | Record
 +
  | {{#ifeq:{{{gamehighs|}}} | yes | High points }}
 +
  | {{#ifeq:{{{gamehighs|}}} | yes | High rebounds }}
 +
  | {{#ifeq:{{{gamehighs|}}} | yes | High assists }}
 +
  | {{#ifeq:{{{site|}}} | no | | Site {{#ifeq:{{{attend|}}} | yes |(attendance)}}<br />city, state}}
 +
}}
 +
}}
 +
<noinclude>
 
{{Game log section end}}
 
{{Game log section end}}
 
{{Game log end}}
 
{{Game log end}}
 
{{documentation|Template:CBB game log start/doc}}
 
{{documentation|Template:CBB game log start/doc}}
 
</noinclude>
 
</noinclude>

Revision as of 14:21, 1 June 2020

50px Template documentation[view] [edit] [history] [purge]


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

Template:Nowiki template demo

Game high columns shown, rank column hidden

Template:Nowiki template demo

Compact format

For compact format, template Template:Tltt is recommended to be used for entries in game log sections.

Full, rank column shown

Template:Nowiki template demo

Rank column hidden

Simply set |rank=no in all instances of Template:Tltt and Template:Tltt.

Template:Nowiki template demo

Custom team colors

Template:Nowiki template demo

See also