Jump to content

User:Isaacl/MLB standings/doc

From Wikipedia, the free encyclopedia

Usage[edit]

{{User:Isaacl/MLB standings
|division=<division name>
|year=<year>
|seeds={{{seeds|}}}
|highlight={{{highlight|}}}
|<1st place team>
|<home wins>|<home losses>
|<road wins>|<road losses>
|<2nd place team>
|<home wins>|<home losses>
|<road wins>|<road losses>
...
}}

This template is a helper template for annual MLB division standings templates, such as Template:2013 NL East standings. To create a division standings template for a given MLB division and year:

  • Create the template with the name Template:<year><AL or NL><East, Central, or West> standings. For example: Template:2013 AL Central standings
  • Use the {{MLB standings}} template as shown in the usage example above. For the division parameter, use one of the following values:
    • National League East
    • National League Central
    • National League West
    • American League East
    • American League Central
    • American League West
  • Note the "seeds" and "highlight" parameters must be included as shown, in order to allow these parameters to be passed through from the division standings template.

The resulting division standings template can be used as follows:

  • In the team season article: use the "highlight" parameter, set to the name of the team. For example, in the 2013 Toronto Blue Jays season article, use the following: {{2013 AL East standings|highlight=Toronto Blue Jays}}
  • In the MLB season article:
    • During the regular season, when no teams have clinched a playoff position: use the division standings template without any parameters. For example, in the 2013 Major League Baseball season article, use the following: {{2013 NL Central standings}}
    • When a team has clinched a playoff spot but the seeding for the playoffs is unknown, use the "highlight" parameter to specify the team in the playoffs. Multiple teams can be listed by using a comma to separate them. For example, to indicate that the Seattle Mariners and Oakland A's are going to be in the 2013 playoffs, use the following: {{2013 AL West standings|highlight=Seattle Mariners,Oakland A's}}
    • When the seeding of a team bound for the playoffs is known, use the "seeds" parameter to specify the team's seeding, in the format "<seed number>:<team name>". Multiple seeds can be listed by using a comma to separate them. For example, to indicate that the Chicago White Sox are seeded first and the Kansas City Royals are seeded fourth in the 2013 playoffs, use the following: {{2013 AL Central standings|seeds=1:Chicago White Sox,4:Kansas City Royals}}
    • Both the "seeds" and "highlight" parameters can be combined together as needed. For example, to indicate that the Washington Nationals are seeded first and the Atlanta Braves have clinched the playoffs with a yet-to-be-determined seeding, use the following: {{2013 NL East standings|seeds=1:Washington Nationals|highlight=Atlanta Braves}}

Example[edit]

{{User:Isaacl/MLB standings
|division=National League East
|year=2011
|seeds={{{seeds|}}}
|highlight={{{highlight|}}}
|Philadelphia Phillies
|52|29
|50|31
|Atlanta Braves
|47|34
|42|39
|Washington Nationals
|44|36
|36|45
|New York Mets
|34|47
|43|38
|Florida Marlins
|31|47
|41|43
}}

Resulting output:

National League East
Team W L Pct. GB Home Road
Philadelphia Phillies 102 60 .630 52‍–‍29 50‍–‍31
Atlanta Braves 89 73 .549 13 47‍–‍34 42‍–‍39
Washington Nationals 80 81 .497 21½ 44‍–‍36 36‍–‍45
New York Mets 77 85 .475 25 34‍–‍47 43‍–‍38
Florida Marlins 72 90 .444 30 31‍–‍47 41‍–‍43

User:Isaacl/MLB standings/doc

See also[edit]