Template:Linescore: Difference between revisions
From MicrasWiki
Jump to navigationJump to search
(Created page with "{| class="{{#if:{{{infobox|}}}||wikitable}}" style="text-align:center;{{#if:{{{infobox|}}}|background-color:transparent; margin-left:auto; margin-right:auto;}}" |+ style="font...") |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 35: | Line 35: | ||
}}{{#if: {{{top32|{{{R32|}}}}}}{{{bot32|{{{H32|}}}}}} | !! {{Linescore/style|{{{Compact|}}}|{{{infobox|}}}}} {{!}} 32 | }}{{#if: {{{top32|{{{R32|}}}}}}{{{bot32|{{{H32|}}}}}} | !! {{Linescore/style|{{{Compact|}}}|{{{infobox|}}}}} {{!}} 32 | ||
}}{{#if: {{{top33|{{{R33|}}}}}}{{{bot33|{{{H33|}}}}}} | !! {{Linescore/style|{{{Compact|}}}|{{{infobox|}}}}} {{!}} 33 | }}{{#if: {{{top33|{{{R33|}}}}}}{{{bot33|{{{H33|}}}}}} | !! {{Linescore/style|{{{Compact|}}}|{{{infobox|}}}}} {{!}} 33 | ||
}}{{#if: {{{visitor_x|{{{RX|}}}}}}{{{home_x|{{{HX|}}}}}}| !! {{Linescore/style|{{{Compact|}}}|{{{infobox|}}}}} {{!}} [[Extra innings|X]] | }}{{#if: {{{visitor_x|{{{RX|}}}}}}{{{home_x|{{{HX|}}}}}}| !! {{Linescore/style|{{{Compact|}}}|{{{infobox|}}}}} {{!}} [[wikipedia:Extra innings|X]] | ||
}}{{#if:{{{visitor_r|{{{RR|}}}}}}{{{home_r|{{{HR|}}}}}}|!! {{Linescore/style|{{{Compact|}}}|{{{infobox|}}}|style=border-left-width:2px}} {{!}} [[Run (baseball)|R]] | }}{{#if:{{{visitor_r|{{{RR|}}}}}}{{{home_r|{{{HR|}}}}}}|!! {{Linescore/style|{{{Compact|}}}|{{{infobox|}}}|style=border-left-width:2px}} {{!}} [[wikipedia:Run (baseball)|R]] | ||
}}{{#if: {{{visitor_h|{{{RH|}}}}}}{{{home_h|{{{HH|}}}}}} | !! {{Linescore/style|{{{Compact|}}}|{{{infobox|}}}}} {{!}} [[Hit (baseball)|H]] | }}{{#if: {{{visitor_h|{{{RH|}}}}}}{{{home_h|{{{HH|}}}}}} | !! {{Linescore/style|{{{Compact|}}}|{{{infobox|}}}}} {{!}} [[wikipedia:Hit (baseball)|H]] | ||
}}{{#if: {{{visitor_e|{{{RE|}}}}}}{{{home_e|{{{HE|}}}}}} | !! {{Linescore/style|{{{Compact|}}}|{{{infobox|}}}}} {{!}} [[Error (baseball)|E]] | }}{{#if: {{{visitor_e|{{{RE|}}}}}}{{{home_e|{{{HE|}}}}}} | !! {{Linescore/style|{{{Compact|}}}|{{{infobox|}}}}} {{!}} [[wikipedia:Error (baseball)|E]] | ||
}} | }} | ||
|- | |- | ||
Line 123: | Line 123: | ||
{{!}} style="text-align:left;" colspan=24 {{!}} {{br separated entries<!-- start br separated entries main --> | {{!}} style="text-align:left;" colspan=24 {{!}} {{br separated entries<!-- start br separated entries main --> | ||
|1 = {{br separated entries<!-- start br separated entries sub1 --> | |1 = {{br separated entries<!-- start br separated entries sub1 --> | ||
|1 = <!-- Starting pitchers -->{{#if: {{{HSP|}}} | '''[[Starting pitcher]] | |1 = <!-- Starting pitchers -->{{#if: {{{HSP|}}} | '''[[wikipedia:Starting pitcher|Starting pitchers]]:'''<br>{{{RoadAbr|Away}}}: {{{RSP|TBA}}}<br>{{{HomeAbr|Home}}}: {{{HSP|TBA}}} }} | ||
|2 = <!-- Pitchers of record -->{{#if: {{{WP|}}} | '''[[Win–loss record (pitching)#Winning pitcher|WP]]:''' {{{WP|TBD}}} '''[[Win–loss record (pitching)#Losing pitcher|LP]]:''' {{{LP|TBD}}} {{#if: {{{SV|}}} | '''[[Save (baseball)|Sv]]:''' {{{SV|TBD}}} }} }} | |2 = <!-- Pitchers of record -->{{#if: {{{WP|}}} | '''[[wikipedia:Win–loss record (pitching)#Winning pitcher|WP]]:''' {{{WP|TBD}}} '''[[wikipedia:Win–loss record (pitching)#Losing pitcher|LP]]:''' {{{LP|TBD}}} {{#if: {{{SV|}}} | '''[[wikipedia:Save (baseball)|Sv]]:''' {{{SV|TBD}}} }} }} | ||
|3 = <!-- Home runs -->{{#if: {{{HomeHR|}}}{{{RoadHR|}}} | '''[[Home run]] | |3 = <!-- Home runs -->{{#if: {{{HomeHR|}}}{{{RoadHR|}}} | '''[[wikipedia:Home run|Home runs]]:'''<br>{{{RoadAbr|Away}}}: {{#if:{{{RoadHR|}}} | {{{RoadHR}}} | None }}<br>{{{HomeAbr|Home}}}: {{#if:{{{HomeHR|}}} | {{{HomeHR}}} | None }} }} | ||
}}<!-- end br separated entries sub1 --> | }}<!-- end br separated entries sub1 --> | ||
|2 = {{br separated entries<!-- start br separated entries sub2 --> | |2 = {{br separated entries<!-- start br separated entries sub2 --> | ||
Line 138: | Line 138: | ||
}}<!-- end br separated entries sub3 --> | }}<!-- end br separated entries sub3 --> | ||
}}<!-- end br separated entries main --> | }}<!-- end br separated entries main --> | ||
{{!)}} | {{!)}} }} }}<noinclude>{{documentation}}</noinclude> | {{!)}} | {{!)}} }} }}<noinclude>{{documentation}}</noinclude><noinclude>[[Category: Sport templates]]</noinclude> |
Latest revision as of 15:16, 13 January 2020
Team |
---|
{{{Road}}} |
{{{Home}}} |
[edit] [ ] Template documentation
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
andRX
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|
Template:FlagIOC | 0 | 0 | 0 | 2 | 0 | 4 | 0 | 0 | 0 | 6 | 13 | 1 |
Template:FlagIOC | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 2 | 7 | 0 |
- Notes
- ^ a b c 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. - ^ a b 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.
The above documentation is transcluded from Template:Linescore/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |