Template:MLB Detailed Records Total
Jump to navigation
Jump to search
|| Expression error: Unrecognized punctuation character "[".–Expression error: Unrecognized punctuation character "[". || Expression error: Unrecognized punctuation character "[".–Expression error: Unrecognized punctuation character "[". || Expression error: Unexpected < operator.–Expression error: Unexpected < operator. || Template:Winpct || Expression error: Unrecognized punctuation character "[". || Expression error: Unrecognized punctuation character "[".
Contents
Usage
Use this template to easily create a totals row for detailed records on Major League Baseball team season pages.
Example
{| class="wikitable" style="font-size: 95%; text-align: center"
|-
! Opponent !! Home !! Away !! Total !! Pct. !! Runs scored !! Runs allowed
|-
| {{MLB Detailed Records|2020|CHC|2|0|4|3|15|17}}
|-
| {{MLB Detailed Records|2020|CIN|5|1|7|6|38|19}}
|-
| {{MLB Detailed Records|2020|MIL|4|1|3|1|36|15}}
|-
| {{MLB Detailed Records|2020|PIT|9|6|7|8|12|16}}
|-
| {{MLB Detailed Records|2020|STL|1|6|3|8|19|37}}
|- style="font-weight:bold"
| {{MLB Detailed Records Total|5|1}}
|}
which produces:
| Opponent | Home | Away | Total | Pct. | Runs scored | Runs allowed |
|---|---|---|---|---|---|---|
| Chicago Cubs | 2–0 | 4–3 | 6–3 | Template:Winpct | 15 | 17 |
| Cincinnati Reds | 5–1 | 7–6 | 12–7 | Template:Winpct | 38 | 19 |
| Milwaukee Brewers | 4–1 | 3–1 | 7–2 | Template:Winpct | 36 | 15 |
| Pittsburgh Pirates | 9–6 | 7–8 | 16–14 | Template:Winpct | 12 | 16 |
| St. Louis Cardinals | 1–6 | 3–8 | 4–14 | Template:Winpct | 19 | 37 |
| Expression error: Unrecognized punctuation character "[".–Expression error: Unrecognized punctuation character "[". | Expression error: Unrecognized punctuation character "[".–Expression error: Unrecognized punctuation character "[". | Expression error: Unexpected < operator.–Expression error: Unexpected < operator. | Template:Winpct | Expression error: Unrecognized punctuation character "[". | Expression error: Unrecognized punctuation character "[". |
Parameters
| Parameter | Required? | Usage |
|---|---|---|
1 (first parameter) |
Yes | Number of rows to total. (Set it to '4' for the team's own division, set it to '5' for other divisions in the team's league, and set it to '6' for interleague.) |
2 (second parameter) |
Yes | Instance of the {{MLB Detailed Records}} template on the page for the first row.(If the first row being totaled is the first time the row template is on the page, then this parameter should be set to 1, if it is the second, set it to 2, etc.) |
See also
| The above documentation is transcluded from Template:MLB Detailed Records Total/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. |