Difference between revisions of "Template:CBB game log start/doc"

From blackwiki
Jump to navigation Jump to search
imported>McVahl
(→‎Custom team colors: obsolete 'color' param)
imported>PrimeBOT
m (Task 30 - remove deprecated parameter in Template:CBB schedule entry)
Line 4: Line 4:
  
 
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 +
 
== Usage ==
 
== Usage ==
 
=== Table format ===
 
=== Table format ===
Line 10: Line 11:
  
 
{{Collapse top|left=true|bg=#EEEEEE|title=Default format syntax}}
 
{{Collapse top|left=true|bg=#EEEEEE|title=Default format syntax}}
 +
 
===== Exhibitions and regular season =====
 
===== Exhibitions and regular season =====
 
<pre>
 
<pre>
Line 42: Line 44:
  
 
{{Collapse top|left=true|bg=#EEEEEE|title=Compact format syntax}}
 
{{Collapse top|left=true|bg=#EEEEEE|title=Compact format syntax}}
 +
 
===== Exhibitions and regular season =====
 
===== Exhibitions and regular season =====
 
<pre>
 
<pre>
Line 95: Line 98:
 
   |game=1 |date=June 1 |time=10:00 am |tv=ESPN
 
   |game=1 |date=June 1 |time=10:00 am |tv=ESPN
 
   |site_stadium=[[Smart Araneta Coliseum]] |site_cityst=[[Quezon City]]
 
   |site_stadium=[[Smart Araneta Coliseum]] |site_cityst=[[Quezon City]]
   |opponent = [[Arizona Wildcats]] |score=95–82 |record=1–0 |w/l = w }}
+
   |opponent = [[Arizona Wildcats]] |score=95–82 |record=1–0 }}
 
{{CBB schedule entry
 
{{CBB schedule entry
 
   |game=2 |date=June 2 |time=11:00 am |tv=ESPN
 
   |game=2 |date=June 2 |time=11:00 am |tv=ESPN
 
   |site_stadium=[[Mall of Asia Arena]] |site_cityst=[[Pasay]]
 
   |site_stadium=[[Mall of Asia Arena]] |site_cityst=[[Pasay]]
 
   |rank=2 |opprank=1
 
   |rank=2 |opprank=1
   |opponent = [[Avila Eagles]] |score=70–71 |record=1–1 |w/l = l }}
+
   |opponent = [[Avila Eagles]] |score=70–71 |record=1–1 }}
  
 
<!-- Games played but scores are unknown -->
 
<!-- Games played but scores are unknown -->
Line 106: Line 109:
 
   |game=3 |date=June 2 |time=5:00 pm |tv=ESPN
 
   |game=3 |date=June 2 |time=5:00 pm |tv=ESPN
 
   |site_stadium=[[Plaza de Toros de La Ribera]] |site_cityst=[[Logroño]]
 
   |site_stadium=[[Plaza de Toros de La Ribera]] |site_cityst=[[Logroño]]
   |opponent  = [[Cal Poly Mustangs]] |status=win |record=2–1 |w/l = w }}
+
   |opponent  = [[Cal Poly Mustangs]] |status=win |record=2–1 |status = w }}
 
{{CBB schedule entry
 
{{CBB schedule entry
 
   |game=4 |date=June 3 |nonconf=yes |away=yes |tv=ESPN
 
   |game=4 |date=June 3 |nonconf=yes |away=yes |tv=ESPN
 
   |site_stadium=[[Coliseum da Coruña]] |site_cityst=[[A Coruña]]
 
   |site_stadium=[[Coliseum da Coruña]] |site_cityst=[[A Coruña]]
   |opponent = [[Bucknell Bison]]  |status=loss |record=2–2 |w/l = l }}
+
   |opponent = [[Bucknell Bison]]  |status=loss |record=2–2 |status = l }}
  
 
<!-- Cancelled matches -->
 
<!-- Cancelled matches -->
Line 117: Line 120:
 
   |site_stadium=[[Fernando Buesa Arena]] |site_cityst=[[Vitoria-Gasteiz]]
 
   |site_stadium=[[Fernando Buesa Arena]] |site_cityst=[[Vitoria-Gasteiz]]
 
   |opponent= [[Binghamton Bearcats]] |opprank=5
 
   |opponent= [[Binghamton Bearcats]] |opprank=5
   |w/l = p |record=2–2 |score=Cancelled
+
   |status = p |record=2–2 |score=Cancelled
 
   |result_cols = 2 }}
 
   |result_cols = 2 }}
 
{{CBB schedule entry
 
{{CBB schedule entry
Line 123: Line 126:
 
   |site_stadium=[[Palacio Vistalegre]] |site_cityst=[[Madrid]]
 
   |site_stadium=[[Palacio Vistalegre]] |site_cityst=[[Madrid]]
 
   |opponent= [[Boston University Terriers]]
 
   |opponent= [[Boston University Terriers]]
   |w/l = p |record=2–2 |score=Cancelled due to something
+
   |status = p |record=2–2 |score=Cancelled due to something
 
   |result_cols = 2}}
 
   |result_cols = 2}}
  
Line 131: Line 134:
 
   |site_stadium=[[Bizkaia Arena]] |site_cityst=[[Barakaldo]]
 
   |site_stadium=[[Bizkaia Arena]] |site_cityst=[[Barakaldo]]
 
   |opponent= [[Bradley Braves]]
 
   |opponent= [[Bradley Braves]]
   |w/l = p |record=2–2 |score=Postponed }}
+
   |status = p |record=2–2 |score=Postponed }}
 
{{CBB schedule entry
 
{{CBB schedule entry
 
   |game=8 |date=June 7 |time=3:00 pm |tv=ESPN
 
   |game=8 |date=June 7 |time=3:00 pm |tv=ESPN
 
   |site_stadium=[[Caja Mágica]] |site_cityst=[[Madrid]]
 
   |site_stadium=[[Caja Mágica]] |site_cityst=[[Madrid]]
 
   |opponent= [[Bryant Bulldogs]]
 
   |opponent= [[Bryant Bulldogs]]
   |w/l = p |record=2–2 |score=Postponed due to something
+
   |status = p |record=2–2 |score=Postponed due to something
 
   |result_cols = 2 }}
 
   |result_cols = 2 }}
  
Line 153: Line 156:
 
   |rank=1  |opprank=3
 
   |rank=1  |opprank=3
 
   |seed=4  |oppseed=2
 
   |seed=4  |oppseed=2
   |opponent = [[Carleton Knights]] |record=1–0 |score=89–69 |w/l = w }}
+
   |opponent = [[Carleton Knights]] |record=1–0 |score=89–69 }}
 
{{CBB schedule entry
 
{{CBB schedule entry
 
   |game=1 |date=June 14 |time=6:00 pm |gamename=Finals |tv=ESPN
 
   |game=1 |date=June 14 |time=6:00 pm |gamename=Finals |tv=ESPN
 
   |site_stadium=Smart Araneta Coliseum |site_cityst=Quezon City
 
   |site_stadium=Smart Araneta Coliseum |site_cityst=Quezon City
 
   |seed=4 |oppseed=1
 
   |seed=4 |oppseed=1
   |opponent = [[Castleton Spartans]] |record=2–0 |score=68–65 |overtime=OT |w/l = w }}
+
   |opponent = [[Castleton Spartans]] |record=2–0 |score=68–65 |overtime=OT }}
  
 
{{CBB game log end}}</nowiki>}}
 
{{CBB game log end}}</nowiki>}}
Line 173: Line 176:
 
   |game=1 |date=June 1 |time=10:00 am |tv=ESPN |rank=no
 
   |game=1 |date=June 1 |time=10:00 am |tv=ESPN |rank=no
 
   |site_stadium=[[Smart Araneta Coliseum]] |site_cityst=[[Quezon City]]
 
   |site_stadium=[[Smart Araneta Coliseum]] |site_cityst=[[Quezon City]]
   |opponent = [[Arizona Wildcats]] |score=95–82 |record=1–0 |w/l = w
+
   |opponent = [[Arizona Wildcats]] |score=95–82 |record=1–0 |highscorer    = Abando  |points  = 22
  |highscorer    = Abando  |points  = 22
 
 
   |highrebounder = Chabi Yo |rebounds = 12
 
   |highrebounder = Chabi Yo |rebounds = 12
 
   |highassister  = Cansino  |assists  = 5 }}
 
   |highassister  = Cansino  |assists  = 5 }}
Line 181: Line 183:
 
   |site_stadium=[[Mall of Asia Arena]] |site_cityst=[[Pasay]]
 
   |site_stadium=[[Mall of Asia Arena]] |site_cityst=[[Pasay]]
 
   |rank=no |opprank=1
 
   |rank=no |opprank=1
   |opponent = [[Avila Eagles]] |score=70–71 |record=1–1 |w/l = l
+
   |opponent = [[Avila Eagles]] |score=70–71 |record=1–1 |highscorer    = Chabi Yo |points  = 25
  |highscorer    = Chabi Yo |points  = 25
 
 
   |highrebounder = Chabi Yo |rebounds = 13
 
   |highrebounder = Chabi Yo |rebounds = 13
 
   |highassister  = Subido  |assists  = 6 }}
 
   |highassister  = Subido  |assists  = 6 }}
Line 190: Line 191:
 
   |game=3 |date=June 2 |time=5:00 pm |tv=ESPN |rank=no
 
   |game=3 |date=June 2 |time=5:00 pm |tv=ESPN |rank=no
 
   |site_stadium=[[Plaza de Toros de La Ribera]] |site_cityst=[[Logroño]]
 
   |site_stadium=[[Plaza de Toros de La Ribera]] |site_cityst=[[Logroño]]
   |opponent  = [[Cal Poly Mustangs]] |status=win |record=2–1 |w/l = w
+
   |opponent  = [[Cal Poly Mustangs]] |status=win |record=2–1 |status = w
 
   |highscorer    = Nonoy  |points  = 22
 
   |highscorer    = Nonoy  |points  = 22
 
   |highrebounder = ?      |rebounds = ?
 
   |highrebounder = ?      |rebounds = ?
Line 197: Line 198:
 
   |game=4 |date=June 3 |nonconf=yes |away=yes |tv=ESPN |rank=no
 
   |game=4 |date=June 3 |nonconf=yes |away=yes |tv=ESPN |rank=no
 
   |site_stadium=[[Coliseum da Coruña]] |site_cityst=[[A Coruña]]
 
   |site_stadium=[[Coliseum da Coruña]] |site_cityst=[[A Coruña]]
   |opponent = [[Bucknell Bison]]  |status=loss |record=2–2 |w/l = l
+
   |opponent = [[Bucknell Bison]]  |status=loss |record=2–2 |status = l
 
   |highscorer    = ? |points  = ?
 
   |highscorer    = ? |points  = ?
 
   |highrebounder = ? |rebounds = ?
 
   |highrebounder = ? |rebounds = ?
Line 207: Line 208:
 
   |site_stadium=[[Fernando Buesa Arena]] |site_cityst=[[Vitoria-Gasteiz]]
 
   |site_stadium=[[Fernando Buesa Arena]] |site_cityst=[[Vitoria-Gasteiz]]
 
   |opponent= [[Binghamton Bearcats]] |opprank=5
 
   |opponent= [[Binghamton Bearcats]] |opprank=5
   |w/l = p |record=2–2 |score=Cancelled
+
   |status = p |record=2–2 |score=Cancelled
 
   |highscorer    = ? |points  = ?
 
   |highscorer    = ? |points  = ?
 
   |highrebounder = ? |rebounds = ?
 
   |highrebounder = ? |rebounds = ?
Line 215: Line 216:
 
   |site_stadium=[[Palacio Vistalegre]] |site_cityst=[[Madrid]]
 
   |site_stadium=[[Palacio Vistalegre]] |site_cityst=[[Madrid]]
 
   |opponent= [[Boston University Terriers]]
 
   |opponent= [[Boston University Terriers]]
   |w/l = p |record=2–2 |score=Cancelled due to something
+
   |status = p |record=2–2 |score=Cancelled due to something
 
   |highscorer    = ? |points  = ?
 
   |highscorer    = ? |points  = ?
 
   |highrebounder = ? |rebounds = ?
 
   |highrebounder = ? |rebounds = ?
Line 225: Line 226:
 
   |site_stadium=[[Bizkaia Arena]] |site_cityst=[[Barakaldo]]
 
   |site_stadium=[[Bizkaia Arena]] |site_cityst=[[Barakaldo]]
 
   |opponent= [[Bradley Braves]]
 
   |opponent= [[Bradley Braves]]
   |w/l = p |record=2–2 |score=Postponed
+
   |status = p |record=2–2 |score=Postponed
 
   |highscorer    = ? |points  = ?
 
   |highscorer    = ? |points  = ?
 
   |highrebounder = ? |rebounds = ?
 
   |highrebounder = ? |rebounds = ?
Line 233: Line 234:
 
   |site_stadium=[[Caja Mágica]] |site_cityst=[[Madrid]]
 
   |site_stadium=[[Caja Mágica]] |site_cityst=[[Madrid]]
 
   |opponent= [[Bryant Bulldogs]]
 
   |opponent= [[Bryant Bulldogs]]
   |w/l = p |record=2–2 |score=Postponed due to something
+
   |status = p |record=2–2 |score=Postponed due to something
 
   |highscorer    = ? |points  = ?
 
   |highscorer    = ? |points  = ?
 
   |highrebounder = ? |rebounds = ?
 
   |highrebounder = ? |rebounds = ?
Line 254: Line 255:
 
   |site_stadium=Smart Araneta Coliseum |site_cityst=Quezon City
 
   |site_stadium=Smart Araneta Coliseum |site_cityst=Quezon City
 
   |rank=no
 
   |rank=no
   |opponent = [[Carleton Knights]] |record=1–0 |score=89–69 |w/l = w
+
   |opponent = [[Carleton Knights]] |record=1–0 |score=89–69 |highscorer    =''Tied''  |points  = 17
  |highscorer    =''Tied''  |points  = 17
 
 
   |highrebounder = Chabi Yo  |rebounds = 15
 
   |highrebounder = Chabi Yo  |rebounds = 15
 
   |highassister  = Subido    |assists  = 12 }}
 
   |highassister  = Subido    |assists  = 12 }}
Line 262: Line 262:
 
   |site_stadium=Smart Araneta Coliseum |site_cityst=Quezon City
 
   |site_stadium=Smart Araneta Coliseum |site_cityst=Quezon City
 
   |rank=no
 
   |rank=no
   |opponent = [[Castleton Spartans]] |record=2–0 |score=68–65 |overtime=OT |w/l = w
+
   |opponent = [[Castleton Spartans]] |record=2–0 |score=68–65 |overtime=OT |highscorer    = Chabi Yo |points  = 22
  |highscorer    = Chabi Yo |points  = 22
 
 
   |highrebounder = Chabi Yo |rebounds = 16
 
   |highrebounder = Chabi Yo |rebounds = 16
 
   |highassister  = Nonoy    |assists  = 6 }}
 
   |highassister  = Nonoy    |assists  = 6 }}

Revision as of 21:15, 21 June 2020


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