Template:CBB game log start/doc

From blackwiki
< Template:CBB game log start
Revision as of 12:07, 5 June 2020 by imported>McVahl (→‎Custom team colors: bgcolor param in {{CBB game log section header}} is no longer supported)
Jump to navigation Jump to search

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

{{CBB game log start|Virginia Cavaliers|year=2018–19|record=35–3 (16–2)|}}
{{CBB game log section header|Virginia Cavaliers|Non-conference regular season|first=yes|attend=yes|gamehighs=yes|team_wins=1|team_losses=0}}
{{CBB schedule entry
| date          = November 6, 2018
| time          = 7:00 pm     | tv       = [[ACC Network|ACCN Extra]]
| w/l           = w
| rank          = 5
| opponent      = [[2018–19 Towson Tigers men's basketball team|Towson]]
| score         = 73–42       | nonconf  = yes
| highscorer    = Jerome      | points   = 20
| highrebounder = Hunter      | rebounds = 10
| highassister  = Clark       | assists  = 6
| attend        = 13,807      | record   = 1–0
| site_stadium  = [[John Paul Jones Arena]]
| site_cityst   = [[Charlottesville, Virginia|Charlottesville, VA]]
}}

{{CBB game log section header|Virginia Cavaliers|ACC Tournament|attend=yes|gamehighs=yes|team_wins=1|team_losses=1}}
{{CBB schedule entry
| date          = March 14, 2019
| time          = 12:30 pm    | neutral  = yes
| tv            = ESPN/Raycom | gamename = Quarterfinals
| w/l           = w           | opponent = NC State
| rank          = 2           | opprank  =      
| seed          = 1           | oppseed  = 8 
| score         = 76–56
| highscorer    = Guy         | points   = 29
| highrebounder = Key         | rebounds = 7
| highassister  = Jerome      | assists  = 10
| attend        = 19,691      | record   = 29–2
| site_stadium  = [[Spectrum Center (arena)|Spectrum Center]]
| site_cityst   = [[Charlotte, North Carolina|Charlotte, NC]]
}}
{{CBB schedule entry
| date          = March 15, 2019
| time          = 7:00 pm     | neutral  = yes
| tv            = ESPN/Raycom | gamename = Semifinals
| w/l           = l           | opponent = Florida State
| rank          = 2           | opprank  = 12
| seed          = 1           | oppseed  = 4
| score         = 59–69
| highscorer    = Hunter      | points   = 13
| highrebounder = Salt        | rebounds = 5
| highassister  = Guy         | assists  = 4
| attend        = 20,116      | record   = 29–3
| site_stadium  = Spectrum Center
| site_cityst   = Charlotte, NC }}
{{CBB game log end}}
style="Template:NCAA color cell" | Script error: No such module "If empty". Virginia Cavaliers game log
35–3 (16–2)
Non-conference regular season: 1–0
Date
time, TV
Rank# Opponent# Result Record High points High rebounds High assists Site (attendance)
city, state
November 6, 2018*
7:00 pm, ACCN Extra
No. 5 Towson W 73–42  1–0
 20  Jerome   10  Hunter   6  Clark  John Paul Jones Arena (13,807)
Charlottesville, VA
ACC Tournament: 1–1
Date
time, TV
Rank# Opponent# Result Record High points High rebounds High assists Site (attendance)
city, state
March 14, 2019
12:30 pm, ESPN/Raycom
(1) No. 2 vs. (8) NC State
Quarterfinals
W 76–56  29–2
 29  Guy   7  Key   10  Jerome  Spectrum Center (19,691)
Charlotte, NC
March 15, 2019
7:00 pm, ESPN/Raycom
(1) No. 2 vs. (4) No. 12 Florida State
Semifinals
L 59–69  29–3
 13  Hunter   5  Salt   4  Guy  Spectrum Center (20,116)
Charlotte, NC
*Non-conference game. #Rankings from AP Poll. (#) Tournament seedings in parentheses.

Compact format

{{CBB game log start|UST Growling Tigers|season=UAAP Season 82|record=11–8|color_secondary=yes}}
{{CBB game log section header|UST Growling Tigers|Elimination round|format=compact|team_wins=8|team_losses=6|first=yes|color_secondary=no}}
{{CBB game log section entry
  |game=1 |date=Sep 4 |time=10:30 am 
  |opponent      = [[UE Red Warriors]]
  |score         = 95–82    |boxscore=http://google.com
  |record        = 1–0
  |highscorer    = Abando   |points   = 22
  |highrebounder = Chabi Yo |rebounds = 12
  |highassister  = Cansino  |assists  = 5
  |site_stadium  = [[Smart Araneta Coliseum]] }}
{{CBB game log section entry
  |game=2 |date=Sep 7 |time=4:45 pm
  |opponent=[[UP Fighting Maroons]]
  |status        = Cancelled
  |status_detail = Cancelled reason here
  |site_stadium  = Smart Araneta Coliseum }}
{{CBB game log section entry
  |game=3 |date=Sep 11 |time=10:45 am
  |opponent      = [[Ateneo Blue Eagles]]
  |site_stadium  = Smart Araneta Coliseum
  |status        = Postponed
  |status_detail = Postponed reason here }}
{{CBB game log section entry
  |game=4 |date=Sep 15 |time=2:00 pm
  |opponent      = [[NU Bulldogs]]
  |site_stadium  = [[Mall of Asia Arena]]
  |score         = 87–74    |overtime=OT |boxscore=http://en.wikipedia.org
  |record        = 2–0
  |highscorer    = Chabi Yo |points   = 25
  |highrebounder = Chabi Yo |rebounds = 20
  |highassister  = Chabi Yo |assists  = 4}}
{{CBB game log section entry
  |game=5 |date=Sep 18 |time=12:30 pm
  |opponent      = [[Adamson Soaring Falcons]]
  |site_stadium  = Mall of Asia Arena }}

{{CBB game log section header|UST Growling Tigers|Semifinals|format=compact|playoff=yes|team_wins=1|team_losses=0|color_secondary=no}}
{{CBB game log section entry
  |game=1 |date=Nov 10 |time=4:25 pm
  |seed          = 4
  |oppseed       = 2        |opponent = {{UAAPteam-noicon|UP}}
  |record        = 1–0      |score    = 89–69
  |highscorer    = ''Tied'' |points   = 17
  |highrebounder = Chabi Yo |rebounds = 15
  |highassister  = Subido   |assists  = 12
  |site_stadium=Smart Araneta Coliseum }}

{{CBB game log section header|UST Growling Tigers|Finals|format=compact|playoff=yes|team_wins=0|team_losses=1|color_secondary=no}}
{{CBB game log section entry
  |game=1 |date=Nov 16 |time=4:00 pm
  |seed          = 4
  |oppseed       = 1       |opponent = {{UAAPteam-noicon|Ateneo}}
  |score         = 77–91   |record   = 0–1
  |highscorer    = Nonoy   |points   = 26
  |highrebounder = Cansino |rebounds = 13
  |highassister  = Cansino |assists  = 6
  |site_stadium  = Smart Araneta Coliseum }}
{{CBB game log end|hide_nonconf=yes|rank=no|timezone=[[UTC+08:00]]|notes=Additional notes here}}
style="Template:NCAA secondary color cell" | UAAP Season 82 game log
11–8
Elimination round: 8–6
Game Date • Time Rank Opponent Result Record High points High rebounds High assists Location
1 Sep 4 • 10:30 am UE Red Warriors TEMPLATE:STR INDEX 95–82 1–0 Abando (22) Chabi Yo (12) Cansino (5) Smart Araneta Coliseum
2 Sep 7 • 4:45 pm UP Fighting Maroons Cancelled reason here Smart Araneta Coliseum
3 Sep 11 • 10:45 am Ateneo Blue Eagles Postponed reason here Smart Araneta Coliseum
4 Sep 15 • 2:00 pm NU Bulldogs TEMPLATE:STR INDEX 87–74OT 2–0 Chabi Yo (25) Chabi Yo (20) Chabi Yo (4) Mall of Asia Arena
5 Sep 18 • 12:30 pm Adamson Soaring Falcons Template:TBD Mall of Asia Arena
Semifinals: 1–0
Game Date • Time Seed Opponent Result Series High points High rebounds High assists Location
1 Nov 10 • 4:25 pm (#4) (#2) Template:UAAPteam-noicon TEMPLATE:STR INDEX 89–69 1–0 Tied (17) Chabi Yo (15) Subido (12) Smart Araneta Coliseum
Finals: 0–1
Game Date • Time Seed Opponent Result Series High points High rebounds High assists Location
1 Nov 16 • 4:00 pm (#4) (#1) Template:UAAPteam-noicon TEMPLATE:STR INDEX 77–91 0–1 Nonoy (26) Cansino (13) Cansino (6) Smart Araneta Coliseum
(#) Tournament seedings in parentheses.
All times are in UTC+08:00.
Additional notes here

Automated check of win/loss results

Demo
{{CBB game log start|Dartmouth Big Green|end_year=2017}}
{{CBB game log section header|Dartmouth Big Green|Test scores|format=compact|first=yes|rank=no}}
{{CBB game log section entry |game=1  |rank=no |score=87-74}}
{{CBB game log section entry |game=2  |rank=no |score=87–74 }}
{{CBB game log section entry |game=3  |rank=no |score=74-87 }}
{{CBB game log section entry |game=4  |rank=no |score=74–87 }}
{{CBB game log section entry |game=5  |rank=no |score=87–74<sup>OT</sup> }}
{{CBB game log section entry |game=6  |rank=no |score=0–0 }}
{{CBB game log section entry |game=7  |rank=no |score=87–87 }}
{{CBB game log section entry |game=8  |rank=no |score=- }}
{{CBB game log section entry |game=9  |rank=no |score=[[87–74]] }}
{{CBB game log section entry |game=10 |rank=no |score=[http://https://www.mysampleweb.com/stats/game/1 87–74] }}
{{CBB game log section entry |game=11 |rank=no |score=87-AA }}
{{CBB game log section entry |game=12 |rank=no |score=87–74AA }}
{{CBB game log section entry |game=13 |rank=no |score=87-74-AA }}
{{CBB game log section entry |game=14 |rank=no |score=AA-74-87 }}
{{CBB game log section entry |game=15 |rank=no |score=87 }}
{{CBB game log section entry |game=16 |rank=no |score=87- }}
{{CBB game log section entry |game=17 |rank=no |score=-87 }}
{{CBB game log end}}
style="Template:NCAA color cell" | Script error: No such module "If empty". Dartmouth Big Green game log
Test scores
Game Date • Time Opponent Result Record High points High rebounds High assists Location
1 {{{date}}} {{{opponent}}} TEMPLATE:STR INDEX 87–74 {{{site_stadium}}}
2 {{{date}}} {{{opponent}}} TEMPLATE:STR INDEX 87–74 {{{site_stadium}}}
3 {{{date}}} {{{opponent}}} TEMPLATE:STR INDEX 74–87 {{{site_stadium}}}
4 {{{date}}} {{{opponent}}} TEMPLATE:STR INDEX 74–87 {{{site_stadium}}}
5 {{{date}}} {{{opponent}}} TEMPLATE:STR INDEX 87–74<sup>OT</sup> {{{site_stadium}}}
6 {{{date}}} {{{opponent}}} Template:TBD {{{site_stadium}}}
7 {{{date}}} {{{opponent}}} Template:TBD {{{site_stadium}}}
8 {{{date}}} {{{opponent}}} Template:TBD {{{site_stadium}}}
9 {{{date}}} {{{opponent}}} Template:TBD {{{site_stadium}}}
10 {{{date}}} {{{opponent}}} TEMPLATE:STR INDEX 87–74 {{{site_stadium}}}
11 {{{date}}} {{{opponent}}} Template:TBD {{{site_stadium}}}
12 {{{date}}} {{{opponent}}} TEMPLATE:STR INDEX 87–74AA {{{site_stadium}}}
13 {{{date}}} {{{opponent}}} TEMPLATE:STR INDEX 87–74–AA {{{site_stadium}}}
14 {{{date}}} {{{opponent}}} Template:TBD {{{site_stadium}}}
15 {{{date}}} {{{opponent}}} Template:TBD {{{site_stadium}}}
16 {{{date}}} {{{opponent}}} Template:TBD {{{site_stadium}}}
17 {{{date}}} {{{opponent}}} Template:TBD {{{site_stadium}}}
*Non-conference game. #Rankings from AP Poll. (#) Tournament seedings in parentheses.


Custom team colors

{{CBB game log start|end_year=2016|tournament=XYZ Men's Basketball Tournament|record=1–1|bgcolor=#2D1653|color=#FFFFFF}}

{{CBB game log section header| |Custom colors in default format|team_wins=1|team_losses=1|first=yes|color=#9E1B32|hide=yes}}
{{CBB schedule entry |opponent={{bk|ESP}} |date=June 1 |site_stadium=[[Pabellón Príncipe Felipe]] |site_cityst=[[Aragon]]                    |record= }}
{{CBB schedule entry |opponent={{bk|GBR}} |date=June 8 |site_stadium=[[Emirates Arena]]           |site_cityst=[[Glasgow|Glasgow, Scotland]] |record= }}

{{CBB game log section header| |Custom colors in compact format|format=compact|team_wins=0|team_losses=1|color=#9E1B32|hide=yes}}
{{CBB game log section entry |opponent={{bk|ARG}} |date=June 17 |time=6:00 pm |site_stadium=[[Estadio Obras Sanitarias]] }}

{{CBB game log end}}
Script error: No such module "If empty". XYZ Men's Basketball Tournament game log
1–1
Custom colors in default format: 1–1
Date
time, TV
Rank# Opponent# Result Record Site
city, state
June 1
 Spain Template:TBD Pabellón Príncipe Felipe 
Aragon
June 8
 Great Britain Template:TBD Emirates Arena 
Glasgow, Scotland
Custom colors in compact format: 0–1
Game Date • Time Rank Opponent Result Record High points High rebounds High assists Location
1 June 17 • 6:00 pm  Argentina Template:TBD Estadio Obras Sanitarias
*Non-conference game. #Rankings from AP Poll. (#) Tournament seedings in parentheses.

Test cases

For more examples, see Template:CBB game log start/testcases.

See also