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

From blackwiki
Jump to navigation Jump to search
imported>Isaacl
(update to use production version of template)
imported>Isaacl
(→‎Testing main template: update text to match actual example)
Line 88: Line 88:
  
 
Include the sample template in this file, specifying one seeded team and one teams to highlight:
 
Include the sample template in this file, specifying one seeded team and one teams to highlight:
<pre>{{Template:MLB standings/testcases/2011 NL East standings|seeds=1:Washington Nationals|highlight=Atlanta Braves}}</pre>
+
<pre>{{Template:MLB standings/testcases/2011 NL East standings|seeds=1:Philadelphia Phillies|highlight=New York Mets}}</pre>
 
Resulting output:
 
Resulting output:
 
{{Template:MLB standings/testcases/2011 NL East standings|seeds=1:Philadelphia Phillies|highlight=New York Mets}}
 
{{Template:MLB standings/testcases/2011 NL East standings|seeds=1:Philadelphia Phillies|highlight=New York Mets}}

Revision as of 02:48, 7 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