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

From blackwiki
Jump to navigation Jump to search
imported>Isaacl
(add test cases)
 
imported>Isaacl
(update to use production version of template)
Line 15: Line 15:
 
{{ {{TEMPLATENAMEE|require=testcases}} }}
 
{{ {{TEMPLATENAMEE|require=testcases}} }}
  
{{User:Isaacl/MLB standings
+
{{MLB standings
 
|division=American League East
 
|division=American League East
 
|year=2012
 
|year=2012
Line 35: Line 35:
 
}}
 
}}
  
{{User:Isaacl/MLB standings
+
{{MLB standings
 
|division=National League East
 
|division=National League East
 
|year=2011
 
|year=2011
Line 49: Line 49:
 
}}
 
}}
  
{{User:Isaacl/MLB standings
+
{{MLB standings
 
|division=National League Central
 
|division=National League Central
 
|year=2011
 
|year=2011
Line 62: Line 62:
  
 
Sample template using the {{tlc|MLB standings}} template:
 
Sample template using the {{tlc|MLB standings}} template:
[[User:Isaacl/MLB standings/testcases/2011 NL Central standings]]
+
[[Template:MLB standings/testcases/2011 NL Central standings]]
  
 
Include the sample template in this file, adding the "seeds" parameter:
 
Include the sample template in this file, adding the "seeds" parameter:
<pre>{{User:Isaacl/MLB standings/testcases/2011 NL Central standings|seeds=2:Milwaukee Brewers,4:St. Louis Cardinals}}</pre>
+
<pre>{{Template:MLB standings/testcases/2011 NL Central standings|seeds=2:Milwaukee Brewers,4:St. Louis Cardinals}}</pre>
 
Resulting output:
 
Resulting output:
{{User:Isaacl/MLB standings/testcases/2011 NL Central standings|seeds=2:Milwaukee Brewers,4:St. Louis Cardinals}}
+
{{Template:MLB standings/testcases/2011 NL Central standings|seeds=2:Milwaukee Brewers,4:St. Louis Cardinals}}
  
 
Sample template using the {{tlc|MLB standings}} template:
 
Sample template using the {{tlc|MLB standings}} template:
[[User:Isaacl/MLB standings/testcases/2011 NL East standings]]
+
[[Template:MLB standings/testcases/2011 NL East standings]]
  
 
Include the sample template in this file, adding the "seeds" parameter:
 
Include the sample template in this file, adding the "seeds" parameter:
<pre>{{User:Isaacl/MLB standings/testcases/2011 NL East standings|seeds=1:Philadelphia Phillies}}</pre>
+
<pre>{{Template:MLB standings/testcases/2011 NL East standings|seeds=1:Philadelphia Phillies}}</pre>
 
Resulting output:
 
Resulting output:
{{User:Isaacl/MLB standings/testcases/2011 NL East standings|seeds=1:Philadelphia Phillies}}
+
{{Template:MLB standings/testcases/2011 NL East standings|seeds=1:Philadelphia Phillies}}
  
 
Include the sample template in this file, specifying a team to highlight:
 
Include the sample template in this file, specifying a team to highlight:
<pre>{{User:Isaacl/MLB standings/testcases/2011 NL East standings|highlight=Atlanta Braves}}</pre>
+
<pre>{{Template:MLB standings/testcases/2011 NL East standings|highlight=Atlanta Braves}}</pre>
 
Resulting output:
 
Resulting output:
{{User:Isaacl/MLB standings/testcases/2011 NL East standings|highlight=Atlanta Braves}}
+
{{Template:MLB standings/testcases/2011 NL East standings|highlight=Atlanta Braves}}
  
 
Include the sample template in this file, specifying two teams to highlight:
 
Include the sample template in this file, specifying two teams to highlight:
<pre>{{User:Isaacl/MLB standings/testcases/2011 NL East standings|highlight=Atlanta Braves,New York Mets}}</pre>
+
<pre>{{Template:MLB standings/testcases/2011 NL East standings|highlight=Atlanta Braves,New York Mets}}</pre>
 
Resulting output:
 
Resulting output:
{{User:Isaacl/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 teams to highlight:
 
Include the sample template in this file, specifying one seeded team and one teams to highlight:
<pre>{{User:Isaacl/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:Washington Nationals|highlight=Atlanta Braves}}</pre>
 
Resulting output:
 
Resulting output:
{{User:Isaacl/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:45, 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:Washington Nationals|highlight=Atlanta Braves}}

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