Difference between revisions of "Template:MLB Schedule Entry"

From blackwiki
Jump to navigation Jump to search
imported>Fbdave
imported>Fbdave
Line 1: Line 1:
 
|- {{#switch: {{{w/l|}}}
 
|- {{#switch: {{{w/l|}}}
| w = style="background:#D8FFEB;"
+
| w = style="background:#FFBBBB;"
| l = style="background:#FFE6E6;"
+
| l = style="background:#BBFFBB;"
| t = style="background:#FFFFE6;"
 
 
}}
 
}}
| {{{date}}}{{#ifeq:{{{nonconf|}}}|yes|*}}{{#ifeq:{{{homecoming|}}}|yes|†}}
+
| {{{date}}}
 
{{#ifeq:{{{time|}}}|no| | {{!}} {{{time}}} }}
 
{{#ifeq:{{{time|}}}|no| | {{!}} {{{time}}} }}
 
| {{#if:{{{away|}}}|@ }}{{{opponent}}}
 
| {{#if:{{{away|}}}|@ }}{{{opponent}}}
| {{{site_stadium|}}} {{#ifeq:{{{site_stadium|}}}|||•}} {{{site_cityst}}} {{#if:{{{gamename|}}}|({{{gamename}}})}}
+
| {{{site_stadium|}}} {{#ifeq:{{{site_stadium|}}}|||•}} {{{site_cityst}}}
 
{{#ifeq:{{{tv|}}}|no| | {{!}} {{{tv}}} }}
 
{{#ifeq:{{{tv|}}}|no| | {{!}} {{{tv}}} }}
 
| {{#switch: {{{w/l|}}}
 
| {{#switch: {{{w/l|}}}
 
| w = '''W'''
 
| w = '''W'''
 
| l = '''L'''
 
| l = '''L'''
| t = '''T'''
+
}}&nbsp;{{{score|}}}&nbsp;<sup>{{{extrainn|}}}</sup>
}}&nbsp;{{{score|}}}&nbsp;<sup>{{{overtime|}}}</sup>
 
 
{{#if:{{{attend|}}}|
 
{{#if:{{{attend|}}}|
 
{{!}} align="center" {{!}} {{{attend|&nbsp;}}} }}<noinclude>
 
{{!}} align="center" {{!}} {{{attend|&nbsp;}}} }}<noinclude>

Revision as of 04:47, 7 October 2007

|- | {{{date}}} | {{{time}}} | {{{opponent}}} | {{{site_cityst}}} | {{{tv}}} |   


Usage

This template is the footer for a professional baseball schedule. It should be used in conjunction with the templates in the #See also section. See an example of a full schedule at .

Detail

{{MLB Schedule Entry
| number       = game number
| w/l          = w if the game was won, l if lost, t if tie, p if postponed, blank if game hasn't occurred yet; lowercase
| date         = date of the game
| away         = 'yes' if this is an away game
| opponent     = the name of the opponent played
| score        = final score of the game; use dash (–) instead of hypen
| extrainn     = if the game went into extra innings (i.e. '11' or '12')
| winner       = winning pitcher
| loser        = losing pitcher
| save         = pitcher with save
| attend       = the attendance of the game; will not display by default (if blank) so for games not played, use "N/A"
| record       = win-loss record of team; use dash (–) instead of hyphen
| box/streak   = current W/L streak and the box score link
}}

Blank

{{MLB Schedule Entry
| number       =
| date         =  
| w/l          = 
| away         = 
| opponent     = 
| score        = 
| extrainn     =
| winner       =
| loser        =
| save         =
| attend       =
| record       =
| box/streak   =
}}

or

{{MLB Schedule Entry|number=|date=|w/l=|time=|away=|opponent=|score=|extrainn=|winner=|loser=|save=|attend=|record=}}

Examples

The appearance of these templates will be different when used appropriately with the header and footer templates in the #See also section. These examples are to describe different use options.

Example 1

{{MLB Schedule Entry
| number       = 1
| date         = April 2
| w/l          = l
| away         = 
| opponent     = [[Florida Marlins|Marlins]]
| score        = 9–2
| extrainn     =
| winner       = [[Dontrelle Willis|Willis]] (1-0)
| loser        = '''[[John Patterson (baseball)|Patterson]]''' (0-1)
| save         =
| attend       = 40,389
| record       = 0–1
}}
{{MLB Schedule Entry
| number       = 2
| date         = April 4
| w/l          = w
| away         = 
| opponent     = [[Florida Marlins|Marlins]]
| score        = 7–6
| extrainn     =
| winner       = '''[[Jon Rauch|Rauch]]''' (1-0)
| loser        = [[Jorge Julio|Julio]] (0-1)
| save         =
| attend       = 18,835
| record       = 1–1
}}
{{MLB Schedule Entry
| number       = 3
| date         = April 5
| w/l          = l
| away         = yes
| opponent     = [[Atlanta Braves|Braves]]
| score        = 8–0
| extrainn     =
| winner       = [[Tim Hudson|Hudson]] (1-0)
| loser        = '''[[Matt Chico|Chico]]''' (0-1)
| save         =
| attend       = 18,396
| record       = 1–2
}}
{{MLB Schedule Entry
| number       = 4
| date         = April 6
| w/l          = w
| away         = yes
| opponent     = [[Atlanta Braves|Braves]]
| score        = 2–0
| extrainn     =
| winner       = '''[[Jesús Colomé|Colomé]]''' (1-0)
| loser        = [[John Smoltz|Smoltz]] (1-1)
| save         = '''[[Chad Cordero|Cordero]]''' (1)
| attend       = 23,897
| record       = 2–2
}}
April 2 {{{time}}} Marlins {{{site_cityst}}} {{{tv}}} L 9–2  40,389
April 4 {{{time}}} Marlins {{{site_cityst}}} {{{tv}}} W 7–6  18,835
April 5 {{{time}}} Braves {{{site_cityst}}} {{{tv}}} L 8–0  18,396
April 6 {{{time}}} Braves {{{site_cityst}}} {{{tv}}} W 2–0  23,897|}

See also