Difference between revisions of "Template:Linescore/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zzyzx11
imported>Frietjes
 
(18 intermediate revisions by 10 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
This template is for inputting a [[Box score (baseball)#Line score|line score]] of a [[baseball]] game. This template may be used to display any number of innings between 1 and 20.
+
This template is designed to display a [[Box score (baseball)#Line score|line score]] of a [[baseball]] game.
  
{| class="wikitable"
+
== Usage ==
|+ Parameters
+
<pre>{{linescore
|-
+
| Date =
!Name!!What it does!!Necessity
+
| Time =
|-
+
| Location =
|Header
+
| Other =
|If this parameter is defined as ''no'', a header above the box showing the date, time, and location will be turned off.
+
| Road | RoadAbr =
|Optional
+
| R1 =  | R2 =  | R3 =  | R4 =  | R5 =  | R6 =  | R7 =  | R8 =  | R9 =  | RR | RH | RE =
|-
+
| Home | HomeAbr =
|Compact
+
| H1 =  | H2 =  | H3 =  | H4 =  | H5 =  | H6 =  | H7 =  | H8 =  | H9 =  | HR | HH | HE =  
|If this is defined as ''yes'', the entire template will be compacted left into a smaller box.
+
| WP = | LP | SV =
|Optional
+
| HomeHR = | RoadHR =
|-
+
| Attendance =
|Stats
+
| Notes =
|If this is defined as ''no'', the option for inputting statistics, including who hit home runs and who pitched is turned off.
+
| BoxURL =  
|Optional
+
}}</pre>
|-
 
|Date
 
|The date the game was held (e.g. August 13).
 
|Optional
 
|-
 
|Time
 
|The time the game was held from and to (e.g. 10:30–13:03).
 
|Optional
 
|-
 
|Location
 
|The place where the game was held. This could be a stadium, a field number, etc.
 
|Optional
 
|-
 
|Road
 
|The name of the road (away) team.
 
|Required
 
|-
 
|RoadAbr
 
|The road (away) team's abbreviation (e.g. StL for St. Louis, NYM for New York Mets).
 
|{{Ref label|*|*|none}}
 
|-
 
|R1, R2, RX...
 
|The number of runs scored by the road team in X inning.
 
|{{Ref label|**|**|none}}
 
|-
 
|RR
 
|The number of total runs scored in the game by the road team.
 
|Required
 
|-
 
|RH
 
|The number of total hits in the game by the road team.
 
|Required
 
|-
 
|RE
 
|The number of total errors in the game by the road team.
 
|Required
 
|-
 
|Home
 
|The name of the home team, same rules apply as the Road field above.
 
|Required
 
|-
 
|HomeAbr
 
|The home team's abbreviation.
 
|{{Ref label|*|*|none}}
 
|-
 
|H1, H2, HX...
 
|The number of runs scored by the home team in X inning.
 
|{{Ref label|**|**|none}}
 
|-
 
|HR
 
|The number of total runs scored in the game by the home team.
 
|Required
 
|-
 
|HH
 
|The number of total hits in the game by the home team.
 
|Required
 
|-
 
|HE
 
|The number of total errors in the game by the home team.
 
|Required
 
|-
 
|RSP
 
|The starting pitcher for the road team, use this field only for games yet to be played, should be blank for completed games. When using this field, wikify the pitcher's name and include their win-loss record coming into the game, i.e. <nowiki>RSP=[[Johan Santana]] (17-3)</nowiki>
 
|Optional
 
|-
 
|HSP
 
|The starting pitcher for the home team, use this field only for games yet to be played, should be blank for completed games.  Use the same procedure for RSP.
 
|Optional
 
|-
 
|WP
 
|The pitcher that is given the win. Wikify the pitcher's name and include their record as a result of this game.
 
|Optional
 
|-
 
|LP
 
|The pitcher that is given the loss. Wikify the pitcher's name and include their record as a result of this game.
 
|Optional
 
|-
 
|SV
 
|The pitcher that is given the save, this is an optional field, not all games will have a save, if the field is left blank, it will not show up in the line score. Wikify the pitcher's name and include the number the saves the pitcher now has as a result of this game.
 
|Optional
 
|-
 
|RoadHR
 
|Home runs hit by the road team.  Wikify the players name and include the number of home runs the player hit in the game and their total for the season or series in parenthesis, if the player hit only one home run, only the season total is needed, separate players by a comma. i.e. <nowiki>RoadHR=[[Albert Pujols]] 2 (42), [[Scott Rolen]] (19)</nowiki>
 
|Optional
 
|-
 
|HomeHR
 
|Home runs hit by the home team.  See above for appropriate use.
 
|Optional
 
|}
 
  
;Notes:
+
=== Required parameters ===
{{Note label|*|*|*}} This field is only required if any of the optional statistics at the bottom of this table are used, like RoadHR.<br>
+
*'''Home''': The name of the home team.
{{Note label|**|**|**}} The total amount of innings you can optionally define is 20 (H20, R20) but the minimum required number is just one defined inning.
+
*'''Road''': The name of the road (away) team.
 +
*'''HR''' and '''RR''': The total runs scored by the home and the away teams respectively.
 +
 
 +
=== Optional parameters ===
 +
*'''H'''''('''''1'''''-'''''33'''''/'''''X''''')'' and '''R'''''('''''1'''''-'''''33'''''/'''''X''''')'':<ref name="h/r"/> The runs scored by each team in each inning. e.g. "'''<code>H1</code>'''" is the runs scored by the home team in the 1st inning, "'''<code>R7</code>'''" is the runs scored by the road team in the 7th inning, "'''<code>HX</code>'''" is the runs scored by the home team in all ''extra'' innings. ('''<code>HX</code>''' and '''<code>RX</code>''' are available as alternatives to specifying all extra innings separately where space is limited.)
 +
*'''HH''' and '''RH''':<ref name="h/r"/> The total hits achieved by the home and road teams respectively.
 +
*'''HE''' and '''RE''':<ref name="h/r"/> The total errors committed by the home and road teams respectively.
 +
*'''Compact''': If set to any non-blank value, reduces the width of the template.
 +
*'''Header''': If set to any non-blank value, hides the following parameters from display...
 +
**'''Date''': The date the game was played on. (See [[WP:MOS#Dates]] and [[WP:MOSNUM#Dates]] for recommended formatting. Generally the year will be clear from the context of the article or section of article, and so should not be specified.)
 +
**'''Time''': The time the game started. (See [[WP:MOS#Times]] and [[WP:MOSNUM#Time of day]] for recommended formatting. In cases where multiple [[time zone]]s are specified or possible (e.g. [[2009 Baseball World Cup]]) including the time zone is recommended.)
 +
**'''Location''': The name of the field where the game was played. The city should be specified if its ambiguous from the name of the field, unless its clear from the context of the article. (e.g. "[[Coopers Stadium]]" → "[[Coopers Stadium]], [[Adelaide]]")
 +
**'''Other''': Any other information for the game itself, e.g. "Game 2", "Quarter-Final", "([[Extra innings|F/11]])", "([[Mercy rule#Baseball and softball|F/7]])"
 +
*'''Stats''': If set to any non-blank value, hides the following parameters from display...
 +
**'''HomeAbr''' and '''RoadAbr''': Abbreviations used for the home and road team in the statistics section.
 +
**'''HSP''' and '''RSP''': The starting pitchers used by each team. This should only be used when the game has not yet been completed. The name should be wiki-linked and the pitcher's [[Win–loss record (pitching)|win–loss record]]<ref name="w-l"/> for the season should be included in [[parentheses]]. (E.g. <code><nowiki>... | HSP=[[Ryan Rowland-Smith]] (5–4) | ...</nowiki></code>)
 +
**'''WP''': The pitcher that is credited with the [[Win–loss record (pitching)|win]]. Wiki-link the name and include their season win–loss record<ref name="w-l"/> as of the end of the game in parentheses.
 +
**'''LP''': The pitcher that is charged with the [[Win–loss record (pitching)|loss]]. It should be formatted as with '''<code>WP</code>'''.
 +
**'''SV''': The pitcher that is credited with the [[save (baseball)|save]]. Wiki-link the name and include their total saves for the season as of the end of the game in parentheses. (E.g.<code><nowiki>... | SV=[[Grant Balfour]] (4) | ...</nowiki></code>)
 +
**'''HomeHR''' and '''RoadHR''': The player(s) that hit [[home run]]s during the game, if any. (Defaults to "None".) Wiki-link the players' names, then include the number of home runs hit in the game (unless only one was hit by the player) followed by the total home runs hit for the season in parentheses. (E.g.<code><nowiki>... | HomeHR=[[Trent Oeltjen]] (7), [[Luke Hughes]] 2 (14) | ...</nowiki></code>)
 +
**'''Attendance''': The number of people in attendance for the game.
 +
**'''Notes''': Any other information that may need to be provided. (E.g. A suspended/postponed game, a delay during the game, etc.)
 +
**'''BoxURL''': A link to a report, boxscore, or play-by-play of the game.
 +
 
 +
==Example==
 +
{{Linescore|Compact=yes|Header=no|Stats=yes
 +
|Date=[[August 25]]|Time=20:00–23:14|Location=Field 1
 +
|Road={{flagIOC|CUB|2004 Summer}}|RoadAbr=CUB
 +
|R1=0|R2=0|R3=0|R4=2|R5=0|R6=4|R7=0|R8=0|R9=0|RR=6|RH=13|RE=1
 +
|Home={{flagIOC|AUS|2004 Summer}}|HomeAbr=AUS
 +
|H1=0|H2=0|H3=0|H4=0|H5=1|H6=0|H7=0|H8=1|H9=0|HR=2|HH=7|HE=0
 +
|WP=[[Adiel Palma]] (3-0)|LP=[[John Stephens]] (0-2)|SV=[[Danny Betancourt]] (1-0-2)
 +
|RoadHR=F. Cepeda in 4th, 2 RBI|HomeHR=P. Gonzalez in 5th, 1 RBI
 +
}}
 +
 
 +
:'''Notes'''
 +
{{reflist | refs=
 +
<ref name="h/r">Each column for the individual innings and for the total hits and errors are displayed only if a non-blank value is specified for the corresponding road parameter. If only the home parameter is given a value (e.g. "<code>... | RH= | HH=7 | ...</code>") then the column will not be displayed.</ref>
 +
<ref name="w-l">The wins and losses should be separated by an unspaced [[en-dash]].</ref>
 +
}}
 +
 
 +
== Usage within [[template:infobox|infobox]] templates ==
 +
This template is used in {{tl|Infobox World Series}}, {{tl|Infobox Japan Series}}, {{tl|Infobox MLB All-Star Game}}, and {{tl|Infobox baseball game}}, with the following syntax:
 +
<pre style="overflow:auto">
 +
{{linescore|infobox=yes
 +
| visitor =
 +
| top1 =
 +
| top2 =
 +
| top3 =
 +
| top4 =
 +
| top5 =
 +
| top6 =
 +
| top7 =
 +
| top8 =
 +
| top9 =
 +
| visitor_r =
 +
| visitor_h =
 +
| visitor_e =
 +
| home =
 +
| bot1 =
 +
| bot2 =
 +
| bot3 =
 +
| bot4 =
 +
| bot5 =
 +
| bot6 =
 +
| bot7 =
 +
| bot8 =
 +
| bot9 =
 +
| home_r =
 +
| home_h =
 +
| home_e =
 +
}}
 +
</pre>
 +
 
 +
==See also==
 +
* {{tl|Baseballbox}} - For a very simplified box, without any linescore.
  
 
<includeonly>
 
<includeonly>
 +
{{basepage subpage|
 
[[Category:Baseball infobox templates]]
 
[[Category:Baseball infobox templates]]
 
[[Category:Sports match box templates]]
 
[[Category:Sports match box templates]]
 
+
}}
[[de:Vorlage:Baseballspiel]]
 
[[fr:Modèle:Baseball score]]
 
[[pt:Predefinição:Placar de beisebol]]
 
[[ko:틀:야구기록9이닝]]
 
[[ja:Template:Linescore]]
 
[[zh:Template:棒球比賽9局記分板]]
 
 
</includeonly>
 
</includeonly>

Latest revision as of 15:43, 11 September 2015

This template is designed to display a line score of a baseball game.

Usage

{{linescore
| Date = 
| Time = 
| Location = 
| Other = 
| Road =  | RoadAbr = 
| R1 =  | R2 =  | R3 =  | R4 =  | R5 =  | R6 =  | R7 =  | R8 =  | R9 =  | RR =  | RH =  | RE = 
| Home =  | HomeAbr = 
| H1 =  | H2 =  | H3 =  | H4 =  | H5 =  | H6 =  | H7 =  | H8 =  | H9 =  | HR =  | HH =  | HE = 
| WP =  | LP =  | SV = 
| HomeHR =  | RoadHR = 
| Attendance = 
| Notes = 
| BoxURL = 
}}

Required parameters

  • Home: The name of the home team.
  • Road: The name of the road (away) team.
  • HR and RR: The total runs scored by the home and the away teams respectively.

Optional parameters

  • H(1-33/X) and R(1-33/X):[1] The runs scored by each team in each inning. e.g. "H1" is the runs scored by the home team in the 1st inning, "R7" is the runs scored by the road team in the 7th inning, "HX" is the runs scored by the home team in all extra innings. (HX and RX are available as alternatives to specifying all extra innings separately where space is limited.)
  • HH and RH:[1] The total hits achieved by the home and road teams respectively.
  • HE and RE:[1] The total errors committed by the home and road teams respectively.
  • Compact: If set to any non-blank value, reduces the width of the template.
  • Header: If set to any non-blank value, hides the following parameters from display...
    • Date: The date the game was played on. (See WP:MOS#Dates and WP:MOSNUM#Dates for recommended formatting. Generally the year will be clear from the context of the article or section of article, and so should not be specified.)
    • Time: The time the game started. (See WP:MOS#Times and WP:MOSNUM#Time of day for recommended formatting. In cases where multiple time zones are specified or possible (e.g. 2009 Baseball World Cup) including the time zone is recommended.)
    • Location: The name of the field where the game was played. The city should be specified if its ambiguous from the name of the field, unless its clear from the context of the article. (e.g. "Coopers Stadium" → "Coopers Stadium, Adelaide")
    • Other: Any other information for the game itself, e.g. "Game 2", "Quarter-Final", "(F/11)", "(F/7)"
  • Stats: If set to any non-blank value, hides the following parameters from display...
    • HomeAbr and RoadAbr: Abbreviations used for the home and road team in the statistics section.
    • HSP and RSP: The starting pitchers used by each team. This should only be used when the game has not yet been completed. The name should be wiki-linked and the pitcher's win–loss record[2] for the season should be included in parentheses. (E.g. ... | HSP=[[Ryan Rowland-Smith]] (5–4) | ...)
    • WP: The pitcher that is credited with the win. Wiki-link the name and include their season win–loss record[2] as of the end of the game in parentheses.
    • LP: The pitcher that is charged with the loss. It should be formatted as with WP.
    • SV: The pitcher that is credited with the save. Wiki-link the name and include their total saves for the season as of the end of the game in parentheses. (E.g.... | SV=[[Grant Balfour]] (4) | ...)
    • HomeHR and RoadHR: The player(s) that hit home runs during the game, if any. (Defaults to "None".) Wiki-link the players' names, then include the number of home runs hit in the game (unless only one was hit by the player) followed by the total home runs hit for the season in parentheses. (E.g.... | HomeHR=[[Trent Oeltjen]] (7), [[Luke Hughes]] 2 (14) | ...)
    • Attendance: The number of people in attendance for the game.
    • Notes: Any other information that may need to be provided. (E.g. A suspended/postponed game, a delay during the game, etc.)
    • BoxURL: A link to a report, boxscore, or play-by-play of the game.

Example

Team 1 2 3 4 5 6 7 8 9 R H E
 Cuba 0 0 0 2 0 4 0 0 0 6 13 1
 Australia 0 0 0 0 1 0 0 1 0 2 7 0
Notes
  1. 1.0 1.1 1.2 Each column for the individual innings and for the total hits and errors are displayed only if a non-blank value is specified for the corresponding road parameter. If only the home parameter is given a value (e.g. "... | RH= | HH=7 | ...") then the column will not be displayed.
  2. 2.0 2.1 The wins and losses should be separated by an unspaced en-dash.

Usage within infobox templates

This template is used in {{Infobox World Series}}, {{Infobox Japan Series}}, {{Infobox MLB All-Star Game}}, and {{Infobox baseball game}}, with the following syntax:

{{linescore|infobox=yes
| visitor =
| top1 =
| top2 =
| top3 =
| top4 =
| top5 =
| top6 =
| top7 =
| top8 =
| top9 =
| visitor_r =
| visitor_h =
| visitor_e =
| home = 
| bot1 =
| bot2 =
| bot3 =
| bot4 =
| bot5 =
| bot6 =
| bot7 =
| bot8 =
| bot9 =
| home_r =
| home_h = 
| home_e =
}}

See also

  • {{Baseballbox}} - For a very simplified box, without any linescore.