Wikipedia:WikiProject Baseball/game log

From Wikipedia, the free encyclopedia

Contents

[edit] About

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 removed 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.

[edit] Example

The following code ...

{| class="toccolours" width=80% style="clear:both; margin:1.5em auto; text-align:center;"
|-
! colspan=2 style="background:#6E8B3D" | 2007 Game Log
|- valign="top" 
|<div class="NavFrame">
<div class="NavHead" style="background:#9EBD69; ">April</div>
<div class="NavContent" style="text-align:left;">
{| border="1" cellpadding="2" cellspacing="0" class="wikitable"
|-
! bgcolor="#DDDDFF" width="5%" | #
! bgcolor="#DDDDFF" width="10%" | Date
! bgcolor="#DDDDFF" width="10%" | Opponent
! bgcolor="#DDDDFF" width="8%" | Score
! bgcolor="#DDDDFF" width="10%" | Win
! bgcolor="#DDDDFF" width="10%" | Loss
! bgcolor="#DDDDFF" width="10%" | Save
! bgcolor="#DDDDFF" width="10%" | Attendance
! bgcolor="#DDDDFF" width="7%" | Record
|- align="center" bgcolor="ffbbbb"
| 1 || [[April 4]] || @ [[Toronto Blue Jays|Blue Jays]] || 6 - 3 || [[Roy Halladay|Halladay]] || '''[[Johan Santana|Santana]]''' || [[B.J. Ryan|Ryan]] || 50,449 || 0-1 
|- align="center" bgcolor="bbffbb"
| 2 || [[April 5]] || @ [[Toronto Blue Jays|Blue Jays]] || 13 - 4 || '''[[Brad Radke|Radke]]''' || [[Josh Towers|Towers]] || || 18,156 || 1-1
|- align="center" bgcolor="ffbbbb"
| 3 || [[April 6]] || @ [[Toronto Blue Jays|Blue Jays]] || 6 - 3 || [[Gustavo Chacin|Chacin]] || '''[[Carlos Silva|Silva]]''' || [[B.J. Ryan|Ryan]] || 16,221 || 1-2 
|- align="center" bgcolor="ffbbbb"
| 4 || [[April 7]] || @ [[Cleveland Indians|Indians]] || 11 - 6 || [[Paul Byrd|Byrd]] || '''[[Kyle Lohse|Lohse]]''' || || 42,445 || 1-3 
|- align="center" bgcolor="ffbbbb"
| 5 || [[April 8]] || @ [[Cleveland Indians|Indians]] || 3 - 0 || [[Jason Johnson|Johnson]] || '''[[Scott Baker|Baker]]''' || [[Bob Wickman|Wickman]] || 25,107 || 1-4 
|- align="center" bgcolor="ffbbbb"
| 6 || [[April 9]] || @ [[Cleveland Indians|Indians]] || 3 - 2 || [[Jake Westbrook|Westbrook]] || '''[[Johan Santana|Santana]]''' || [[Bob Wickman|Wickman]] || 23,311 || 1-5
|}</div></div>

... will result in:

2007 Game Log

April from the 2006 Minnesota Twins season looks like this:

2007 Game Log

Also see the full 2006 Minnesota Twins season game log for reference.

[edit] Code

The full season mock up code for this table can be found @ Wikipedia:WikiProject Baseball/game log/code. The table should be placed on its own article (i.e. 2007 Los Angeles Angels of Anaheim season game log), and should be transcluded in to the season article (i.e place {{:Template:2007 Los Angeles Angels of Anaheim season game log}} in 2007 Los Angeles Angels of Anaheim season). Make sure you place the template {{GamelogTalk}} on the talk page of the season article so that editors can easily find the game log.

[edit] Links to Game Recaps

I've started to put links to individual game recaps into the tables on 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)