Difference between revisions of "Template:MLB standings/testcases"
imported>Isaacl (→Testing main template: add test case to specify a link for the division heading) |
imported>Isaacl m (→Testing main template: copy edit) |
||
| Line 119: | Line 119: | ||
{{Template:MLB standings/testcases/2011 NL East standings|highlight=Atlanta Braves, New York Mets}} | {{Template:MLB standings/testcases/2011 NL East standings|highlight=Atlanta Braves, New York Mets}} | ||
| − | Include the sample template in this file, specifying one seeded team and one | + | Include the sample template in this file, specifying one seeded team and one team to highlight: |
<pre>{{Template:MLB standings/testcases/2011 NL East standings|seeds=1:Philadelphia Phillies|highlight=New York Mets}}</pre> | <pre>{{Template:MLB standings/testcases/2011 NL East standings|seeds=1:Philadelphia Phillies|highlight=New York Mets}}</pre> | ||
Resulting output: | Resulting output: | ||
Revision as of 16:33, 28 April 2013
| This is the template test cases page for the sandbox of Template:MLB standings. Script error: No such module "Purge". to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki, see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins with these links: |
Contents
Testing sandbox version
Template:MLB standings/sandbox
Testing main template
{{MLB_standings}}
| American League East | W | L | Pct. | GB | Home | Road |
|---|---|---|---|---|---|---|
| New York Yankees | 95 | 67 | 0.586 | — | 51–30 | 44–37 |
| Baltimore Orioles | 93 | 69 | 0.574 | 2 | 47–34 | 46–35 |
| Tampa Bay Rays | 90 | 72 | 0.556 | 5 | 46–35 | 44–37 |
| Toronto Blue Jays | 73 | 89 | 0.451 | 22 | 41–40 | 32–49 |
| Boston Red Sox | 69 | 93 | 0.426 | 26 | 34–47 | 35–46 |
| National League East | W | L | Pct. | GB | Home | Road |
|---|---|---|---|---|---|---|
| Philadelphia Phillies | 102 | 60 | 0.630 | — | 52–29 | 50–31 |
| Atlanta Braves | 89 | 73 | 0.549 | 13 | 47–34 | 42–39 |
| Washington Nationals | 80 | 81 | 0.497 | 21½ | 44–36 | 36–45 |
| New York Mets | 77 | 85 | 0.475 | 25 | 34–47 | 43–38 |
| Florida Marlins | 72 | 90 | 0.444 | 30 | 31–47 | 41–43 |
| National League Central | W | L | Pct. | GB | Home | Road |
|---|---|---|---|---|---|---|
| (2) Milwaukee Brewers | 96 | 66 | 0.593 | — | 57–24 | 39–42 |
| (4) St. Louis Cardinals | 90 | 72 | 0.556 | 6 | 45–36 | 45–36 |
| Cincinnati Reds | 79 | 83 | 0.488 | 17 | 42–39 | 37–44 |
| Pittsburgh Pirates | 72 | 90 | 0.444 | 24 | 36–45 | 36–45 |
| Chicago Cubs | 71 | 91 | 0.438 | 25 | 39–42 | 32–49 |
| Houston Astros | 56 | 106 | 0.346 | 40 | 31–50 | 25–56 |
| American Association | W | L | Pct. | GB | Home | Road |
|---|---|---|---|---|---|---|
| Philadelphia Athletics | 66 | 32 | 0.673 | — | 37–14 | 29–18 |
| St. Louis Browns | 65 | 33 | 0.663 | 1 | 35–14 | 30–19 |
| Cincinnati Red Stockings | 61 | 37 | 0.622 | 5 | 38–13 | 23–24 |
| New York Metropolitans | 54 | 42 | 0.562 | 11 | 29–17 | 25–25 |
| Louisville Eclipse | 52 | 45 | 0.536 | 13½ | 29–18 | 23–27 |
| Columbus Buckeyes | 32 | 65 | 0.330 | 33½ | 18–29 | 14–36 |
| Pittsburg Alleghenys | 31 | 67 | 0.316 | 35 | 18–31 | 13–36 |
| Baltimore Orioles | 28 | 68 | 0.292 | 37 | 18–31 | 10–37 |
Sample template using the {{MLB standings}} template:
Template:MLB standings/testcases/2011 NL Central standings
Include the sample template in this file, adding the "seeds" parameter:
{{Template:MLB standings/testcases/2011 NL Central standings|seeds=2:Milwaukee Brewers,4:St. Louis Cardinals}}
Resulting output:
| National League Central | W | L | Pct. | GB | Home | Road |
|---|---|---|---|---|---|---|
| (2) Milwaukee Brewers | 96 | 66 | 0.593 | — | 57–24 | 39–42 |
| (4) St. Louis Cardinals | 90 | 72 | 0.556 | 6 | 45–36 | 45–36 |
| Cincinnati Reds | 79 | 83 | 0.488 | 17 | 42–39 | 37–44 |
| Pittsburgh Pirates | 72 | 90 | 0.444 | 24 | 36–45 | 36–45 |
| Chicago Cubs | 71 | 91 | 0.438 | 25 | 39–42 | 32–49 |
| Houston Astros | 56 | 106 | 0.346 | 40 | 31–50 | 25–56 |
Sample template using the {{MLB standings}} template:
Template:MLB standings/testcases/2011 NL East standings
Include the sample template in this file, adding the "seeds" parameter:
{{Template:MLB standings/testcases/2011 NL East standings|seeds=1:Philadelphia Phillies}}
Resulting output:
| National League East | W | L | Pct. | GB | Home | Road |
|---|---|---|---|---|---|---|
| (1) Philadelphia Phillies | 102 | 60 | 0.630 | — | 52–29 | 50–31 |
| Atlanta Braves | 89 | 73 | 0.549 | 13 | 47–34 | 42–39 |
| Washington Nationals | 80 | 81 | 0.497 | 21½ | 44–36 | 36–45 |
| New York Mets | 77 | 85 | 0.475 | 25 | 34–47 | 43–38 |
| Florida Marlins | 72 | 90 | 0.444 | 30 | 31–47 | 41–43 |
Include the sample template in this file, specifying a team to highlight:
{{Template:MLB standings/testcases/2011 NL East standings|highlight=Atlanta Braves}}
Resulting output:
| National League East | W | L | Pct. | GB | Home | Road |
|---|---|---|---|---|---|---|
| Philadelphia Phillies | 102 | 60 | 0.630 | — | 52–29 | 50–31 |
| Atlanta Braves | 89 | 73 | 0.549 | 13 | 47–34 | 42–39 |
| Washington Nationals | 80 | 81 | 0.497 | 21½ | 44–36 | 36–45 |
| New York Mets | 77 | 85 | 0.475 | 25 | 34–47 | 43–38 |
| Florida Marlins | 72 | 90 | 0.444 | 30 | 31–47 | 41–43 |
Include the sample template in this file, specifying two teams to highlight:
{{Template:MLB standings/testcases/2011 NL East standings|highlight=Atlanta Braves,New York Mets}}
Resulting output:
| National League East | W | L | Pct. | GB | Home | Road |
|---|---|---|---|---|---|---|
| Philadelphia Phillies | 102 | 60 | 0.630 | — | 52–29 | 50–31 |
| Atlanta Braves | 89 | 73 | 0.549 | 13 | 47–34 | 42–39 |
| Washington Nationals | 80 | 81 | 0.497 | 21½ | 44–36 | 36–45 |
| New York Mets | 77 | 85 | 0.475 | 25 | 34–47 | 43–38 |
| Florida Marlins | 72 | 90 | 0.444 | 30 | 31–47 | 41–43 |
Include the sample template in this file, specifying one seeded team and one team to highlight:
{{Template:MLB standings/testcases/2011 NL East standings|seeds=1:Philadelphia Phillies|highlight=New York Mets}}
Resulting output:
| National League East | W | L | Pct. | GB | Home | Road |
|---|---|---|---|---|---|---|
| (1) Philadelphia Phillies | 102 | 60 | 0.630 | — | 52–29 | 50–31 |
| Atlanta Braves | 89 | 73 | 0.549 | 13 | 47–34 | 42–39 |
| Washington Nationals | 80 | 81 | 0.497 | 21½ | 44–36 | 36–45 |
| New York Mets | 77 | 85 | 0.475 | 25 | 34–47 | 43–38 |
| Florida Marlins | 72 | 90 | 0.444 | 30 | 31–47 | 41–43 |
Division leaders (for wild card page)
{{MLB standings
|input=overallWinLoss
|division=Division Leaders
|year=2012
|Washington Nationals
|98|64
|Cincinnati Reds
|97|65
|San Francisco Giants
|94|68
}}
Resulting output:
| Division Leaders | W | L | Pct. |
|---|---|---|---|
| Washington Nationals | 98 | 64 | 0.605 |
| Cincinnati Reds | 97 | 65 | 0.599 |
| San Francisco Giants | 94 | 68 | 0.580 |
{{MLB standings
|input=overallWinLoss
|division=Division Leaders
|year=2012
|New York Yankees
|95|67
|Los Angeles Angels of Anaheim
|94|68
|Detroit Tigers
|88|74
}}
Resulting output:
| Division Leaders | W | L | Pct. |
|---|---|---|---|
| New York Yankees | 95 | 67 | 0.586 |
| Los Angeles Angels of Anaheim | 94 | 68 | 0.580 |
| Detroit Tigers | 88 | 74 | 0.543 |
Wild card standings (for wild card page)
{{MLB standings
|input=overallWinLoss
|output=wildCard2012
|division=Wild card teams
|year=2013
|Texas Rangers|6|2
|Chicago White Sox|4|3
|Detroit Tigers|4|3
|Minnesota Twins|4|4
|New York Yankees|4|4
|Seattle Mariners|4|5
|Baltimore Orioles|3|4
|Tampa Bay Rays|3|5
|Cleveland Indians|3|5
|Toronto Blue Jays|2|5
|Los Angeles Angels of Anaheim|2|5
|Houston Astros|2|6
}}
Resulting output:
| Wild Card teams (Top two qualify for postseason) |
W | L | Pct. | GB |
|---|---|---|---|---|
| Texas Rangers | 6 | 2 | 0.750 | +1½ |
| Chicago White Sox | 4 | 3 | 0.571 | — |
| Detroit Tigers | 4 | 3 | 0.571 | — |
| Minnesota Twins | 4 | 4 | 0.500 | ½ |
| New York Yankees | 4 | 4 | 0.500 | ½ |
| Seattle Mariners | 4 | 5 | 0.444 | 1 |
| Baltimore Orioles | 3 | 4 | 0.429 | 1 |
| Tampa Bay Rays | 3 | 5 | 0.375 | 1½ |
| Cleveland Indians | 3 | 5 | 0.375 | 1½ |
| Toronto Blue Jays | 2 | 5 | 0.286 | 2 |
| Los Angeles Angels of Anaheim | 2 | 5 | 0.286 | 2 |
| Houston Astros | 2 | 6 | 0.250 | 2½ |
{{MLB standings
|input=overallWinLoss
|output=wildCard2012
|division=Wild card teams
|year=2012
|Baltimore Orioles|93|69
|Texas Rangers|93|69
|Tampa Bay Rays|90|72
|Los Angeles Angels of Anaheim|89|73
|Chicago White Sox|85|77
|Seattle Mariners|75|87
|Toronto Blue Jays|73|89
|Kansas City Royals|72|90
|Boston Red Sox|69|93
|Cleveland Indians|68|94
|Minnesota Twins|66|96
}}
Resulting output:
| Wild Card teams (Top two qualify for postseason) |
W | L | Pct. | GB |
|---|---|---|---|---|
| Baltimore Orioles | 93 | 69 | 0.574 | — |
| Texas Rangers | 93 | 69 | 0.574 | — |
| Tampa Bay Rays | 90 | 72 | 0.556 | 3 |
| Los Angeles Angels of Anaheim | 89 | 73 | 0.549 | 4 |
| Chicago White Sox | 85 | 77 | 0.525 | 8 |
| Seattle Mariners | 75 | 87 | 0.463 | 18 |
| Toronto Blue Jays | 73 | 89 | 0.451 | 20 |
| Kansas City Royals | 72 | 90 | 0.444 | 21 |
| Boston Red Sox | 69 | 93 | 0.426 | 24 |
| Cleveland Indians | 68 | 94 | 0.420 | 25 |
| Minnesota Twins | 66 | 96 | 0.407 | 27 |