Difference between revisions of "Template:MLB game log game"
Jump to navigation
Jump to search
imported>Jtptexas94 |
imported>Jtptexas94 |
||
| Line 2: | Line 2: | ||
| {{{number|–}}} | | {{{number|–}}} | ||
| {{{date|}}} | | {{{date|}}} | ||
| − | | {{{oppteam|}}} {{#if:{{{ppd_cause|}}}|<td colspan="6">''Postponed ({{{ppd_cause|}}}) – Rescheduled for {{{ppd_newdate|TBD}}}''</td>|<td>{{#if:{{{runs1|}}}|{{#ifexpr:{{{runs1|}}} > {{{runs2|}}}|{{{runs1}}}–{{{runs2}}}|{{{runs2}}}–{{{runs1}}}}} {{#if:{{{inning|}}}|<sup>({{{inning}}})</sup>}}</td><td> {{#ifexpr:{{{runs1|}}} > {{{runs2|}}}|'''{{{wpitcher}}}''' ({{{wpitcher_record}}})</td><td>{{{lpitcher}}} ({{{lpitcher_record}}})</td><td> {{#if:{{{spitcher|}}}|'''{{{spitcher}}}''' ({{{saves}}})}} </td>|{{{wpitcher}}} ({{{wpitcher_record}}})</td><td>'''{{{lpitcher}}}''' ({{{lpitcher_record}}})</td><td> {{#if:{{{spitcher|}}}|{{{spitcher}}} ({{{saves}}})}} </td>}} </td><td> {{{attendance}}} </td><td> {{{record}}}|<td></td><td></td><td></td><td></td><td></td>}}}}</includeonly><noinclude>{{Documentation}}</noinclude> | + | | {{#switch: {{{away/neutral|}}} |
| + | | a = at | ||
| + | | n = vs. }} {{{oppteam|}}} {{#if:{{{ppd_cause|}}}|<td colspan="6">''Postponed ({{{ppd_cause|}}}) – Rescheduled for {{{ppd_newdate|TBD}}}''</td>|<td>{{#if:{{{runs1|}}}|{{#ifexpr:{{{runs1|}}} > {{{runs2|}}}|{{{runs1}}}–{{{runs2}}}|{{{runs2}}}–{{{runs1}}}}} {{#if:{{{inning|}}}|<sup>({{{inning}}})</sup>}}</td><td> {{#ifexpr:{{{runs1|}}} > {{{runs2|}}}|'''{{{wpitcher}}}''' ({{{wpitcher_record}}})</td><td>{{{lpitcher}}} ({{{lpitcher_record}}})</td><td> {{#if:{{{spitcher|}}}|'''{{{spitcher}}}''' ({{{saves}}})}} </td>|{{{wpitcher}}} ({{{wpitcher_record}}})</td><td>'''{{{lpitcher}}}''' ({{{lpitcher_record}}})</td><td> {{#if:{{{spitcher|}}}|{{{spitcher}}} ({{{saves}}})}} </td>}} </td><td> {{{attendance}}} </td><td> {{{record}}}|<td></td><td></td><td></td><td></td><td></td>}}}}</includeonly><noinclude>{{Documentation}}</noinclude> | ||
Revision as of 00:14, 14 November 2020
Usage
{{MLB game log game
| number =
| date =
| away/neutral =
| oppteam =
| division =
| runs1 =
| runs2 =
| inning =
| wpitcher =
| wpitcher_record =
| lpitcher =
| lpitcher_record =
| spitcher =
| saves =
| attendance =
| record =
| ppd_cause =
| ppd_newdate =
}}
Parameter descriptions
- number = The order of the game
- date = The date of the game
- away/neutral = a = away, n = neutral, leave blank for home
- oppteam = The opposing team
- division = y for division game, leave blank for no
- runs1 = Runs scored by the team
- runs2 = Runs scored by the opposing team
- inning = The number of innings played, if not nine
- wpitcher = The winning pitcher
- wpitcher_record = The winning pitcher's record after the game
- lpitcher = The losing pitcher
- lpitcher_record = The losing pitcher's record after the game
- spitcher = The pitcher who saved the game, if any
- saves = The number of saves recorded by said pitcher
- attendance = Official attendance
- record = The team's record after the game
- Optional, for postponements only
- ppd_cause = The cause of the postponement (e.g. rain, snow, fan riot)
- ppd_newdate = The rescheduled date
See also
- {{MLB game log}}
- {{MLB game log section}}
- {{MLB game log section end}}
- {{MLB game log end}}
| The above documentation is transcluded from Template:MLB game log game/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |