Wiki143:WikiProject Baseball/game log
About
Please note: the use of game logs is not supported by consensus, and is typically highly discouraged. If you absolutely must use them, please follow the instructions below.
The purpose of the Game log is to keep a season long record of a team's games. The code for this table can appear rather complex but is in fact rather straightforward. The code for the game log includes all 183 days of the six month season. Since teams only play 162 games, please remove dates that there are no games on. The format is as follows:
- #: Game number
- Date: Date of Game
- Opponent: Name of opposing team. Use format of [[Chicago White Sox|White Sox]] and [[Chicago Cubs|Cubs]] rather than city names. Place an at symbol (@) before name if away game.
- Score: Final score
- Win: Name of the winning pitcher of record, use last name only (i.e. [[Johan Santana|Santana]])
- Loss: Name of the losing pitcher of record, use last name only (i.e. [[Javier Vázquez|Vázquez]])
- Save: Name of the pitcher who recorded the save, if any. If none, leave blank.
- Attendance: The number of people in attendance.
- Record: Team record at that point.
- Colors: In game logs, the line directly above the line with all the information for the table, the line should read:
for a win:
- |- align="center" bgcolor="bbffbb"
- and for a loss:
- |- align="center" bgcolor="ffbbbb"
See the example code below for more detail.
Example
The following code …
{{MLB Game log|year=2007|bgcolor=#6E8B3D}}
{{MLB Game log month|month=April|bgcolor=#9EBD69|hide=n}}
|- style="background-color: #fbb"
| 1 || [[April 4]] || @ [[Toronto Blue Jays|Blue Jays]] || 6 - 3 || [[Roy Halladay|Halladay]] || '''[[Johan Santana|Santana]]''' || [[B.J. Ryan|Ryan]] || 50,449 || 0-1
|- style="background-color: #bfb"
| 2 || [[April 5]] || @ [[Toronto Blue Jays|Blue Jays]] || 13 - 4 || '''[[Brad Radke|Radke]]''' || [[Josh Towers|Towers]] || || 18,156 || 1-1
|- style="background-color: #fbb"
| 3 || [[April 6]] || @ [[Toronto Blue Jays|Blue Jays]] || 6 - 3 || [[Gustavo Chacin|Chacin]] || '''[[Carlos Silva|Silva]]''' || [[B.J. Ryan|Ryan]] || 16,221 || 1-2
|- style="background-color: #fbb"
| 4 || [[April 7]] || @ [[Cleveland Indians|Indians]] || 11 - 6 || [[Paul Byrd|Byrd]] || '''[[Kyle Lohse|Lohse]]''' || || 42,445 || 1-3
|- style="background-color: #fbb"
| 5 || [[April 8]] || @ [[Cleveland Indians|Indians]] || 3 - 0 || [[Jason Johnson|Johnson]] || '''[[Scott Baker (baseball)|Baker]]''' || [[Bob Wickman|Wickman]] || 25,107 || 1-4
|- style="background-color: #fbb"
| 6 || [[April 9]] || @ [[Cleveland Indians|Indians]] || 3 - 2 || [[Jake Westbrook|Westbrook]] || '''[[Johan Santana|Santana]]''' || [[Bob Wickman|Wickman]] || 23,311 || 1-5
{{MLB Game log month end}}
{{end}}
… will result in:
Template:MLB Game log Template:MLB Game log month |- style="background-color: #fbb" | 1 || April 4 || @ Blue Jays || 6 - 3 || Halladay || Santana || Ryan || 50,449 || 0-1 |- style="background-color: #bfb" | 2 || April 5 || @ Blue Jays || 13 - 4 || Radke || Towers || || 18,156 || 1-1 |- style="background-color: #fbb" | 3 || April 6 || @ Blue Jays || 6 - 3 || Chacin || Silva || Ryan || 16,221 || 1-2 |- style="background-color: #fbb" | 4 || April 7 || @ Indians || 11 - 6 || Byrd || Lohse || || 42,445 || 1-3 |- style="background-color: #fbb" | 5 || April 8 || @ Indians || 3 - 0 || Johnson || Baker || Wickman || 25,107 || 1-4 |- style="background-color: #fbb" | 6 || April 9 || @ Indians || 3 - 2 || Westbrook || Santana || Wickman || 23,311 || 1-5 Template:MLB Game log month end
|}Script error: No such module "Check for unknown parameters".
April from the 2006 Minnesota Twins season looks like this:
Template:MLB Game log Template:MLB Game log month |- style="background-color:#ffbbbb" | 1 || April 4 || @ Blue Jays || 6–3 || Halladay || Santana || Ryan || 50,449 || 0–1 |- style="background-color:#bbffbb" | 2 || April 5 || @ Blue Jays || 13–4 || Radke || Towers || || 18,156 || 1–1 |- style="background-color:#ffbbbb" | 3 || April 6 || @ Blue Jays || 6–3 || Chacín || Silva || Ryan || 16,221 || 1–2 |- style="background-color:#ffbbbb" | 4 || April 7 || @ Indians || 11–6 || Byrd || Lohse || || 42,445 || 1–3 |- style="background-color:#ffbbbb" | 5 || April 8 || @ Indians || 3–0 || Johnson || Baker || Wickman || 25,107 || 1–4 |- style="background-color:#ffbbbb" | 6 || April 9 || @ Indians || 3–2 || Westbrook || Santana || Wickman || 23,311 || 1–5 |- style="background-color:#bbffbb" | 7 || April 11 || Athletics || 7–6 || Radke || Haren || Nathan || 48,911 || 2–5 |- style="background-color:#bbffbb" | 8 || April 12 || Athletics || 6–5 || Silva || Loaiza || Nathan || 22,603 || 3–5 |- style="background-color:#bbffbb" | 9 || April 13 || Athletics || 8–2 || Lohse || Blanton || || 13,520 || 4–5 |- style="background-color:#bbffbb" | 10 || April 14 || Yankees || 5–1 || Baker || Mussina || || 30,622 || 5–5 |- style="background-color:#bbffbb" | 11 || April 15 || Yankees || 6–5 || Rincón || Rivera || || 42,316 || 6–5 |- style="background-color:#ffbbbb" | 12 || April 16 || Yankees || 9–3 || Wang || Radke || || 22,627 || 6–6 |- style="background-color:#ffbbbb" | 13 || April 18 || Angels || 8–2 || Escobar || Silva || Shields || 15,757 || 6–7 |- style="background-color:#bbffbb" | 14 || April 19 || Angels || 12–10 || Nathan || Romero || || 21,507 || 7–7 |- style="background-color:#ffbbbb" | 15 || April 20 || Angels || 6–4 || Gregg || Crain || Rodríguez || 12,990 || 7–8 |- style="background-color:#ffbbbb" | 16 || April 21 || @ White Sox || 7–1 || Buehrle || Santana || || 31,287 || 7–9 |- style="background-color:#ffbbbb" | 17 || April 22 || @ White Sox || 9–2 || García || Radke || || 38,955 || 7–10 |- style="background-color:#ffbbbb" | 18 || April 23 || @ White Sox || 7–3 || Contreras || Silva || || 38,102 || 7–11 |- style="background-color:#bbffbb" | 19 || April 25 || @ Royals || 2–1 || Liriano || Hudson || Nathan || 12,911 || 8–11 |- style="background-color:#ffbbbb" | 20 || April 26 || @ Royals || 3–1 || Hernández || Baker || Burgos || 9,188 || 8–12 |- style="background-color:#bbffbb" | 21 || April 27 || @ Royals || 7–3 || Santana || Redman || || 11,391 || 9–12 |- style="background-color:#ffbbbb" | 22 || April 28 || @ Tigers || 9–0 || Robertson || Radke || || 23,263 || 9–13 |- style="background-color:#ffbbbb" | 23 || April 29 || @ Tigers || 18–1 || Verlander || Silva || || 24,258 || 9–14 |- style="background-color:#ffbbbb" | 24 || April 30 || @ Tigers || 6–0 || Rogers || Lohse || || 24,323 || 9–15 Template:MLB Game log month end
|}Script error: No such module "Check for unknown parameters".
Also see the full 2006 Minnesota Twins season#Game log for reference.
Code
The full season mock up code for this table can be found @ Wikipedia:WikiProject Baseball/game log/code. The table should be editable on the article and not moved into a template.
Links to Game Recaps
I've started to put links to individual game recaps into the tables on Template:2007 Boston Red Sox season game log, since individual games aren't notable on their own, but Wikipedia would be helped by giving links to those individual games. Just H 20:40, 5 April 2007 (UTC)
- What happened with this? It seemed like a good feature; were there objections voiced? -- Myke Cuthbert (talk) 05:17, 25 May 2007 (UTC)
List of seasons needing game logs (2008+)
- 2011 San Diego Padres season (code is broken)
- 2010 Texas Rangers season (a little incomplete)
- 2010 Florida Marlins season
- 2010 Cleveland Indians season (a little incomplete)
- most seasons of Montreal Expos
Just went through all of these (except the Expos) and most of them are finished. --Doyouwantoptions (talk) 17:39, 4 May 2019 (UTC)