Difference between revisions of "Template:MLB standings/testcases"

From blackwiki
Jump to navigation Jump to search
imported>Isaacl
imported>Isaacl
(add test case for wild card standings)
Line 144: Line 144:
 
|Detroit Tigers
 
|Detroit Tigers
 
|88|74
 
|88|74
 +
}}
 +
 +
=== Wild card standings (for wild card page) ===
 +
<pre>{{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
 +
}}</pre>
 +
Resulting output:
 +
{{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
 
}}
 
}}

Revision as of 23:44, 10 April 2013

Testing sandbox version

{{MLB_standings/sandbox}}

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

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 teams 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
Cleveland Indians 3 5 0.375
Toronto Blue Jays 2 5 0.286 2
Los Angeles Angels of Anaheim 2 5 0.286 2
Houston Astros 2 6 0.250