Template:MLB standings/doc

Usage
For a division standings template:

For the division leaders table in a wild card standings template:

For the wild card standings in a wild card standings template:

For the wild card standings in a wild card standings template from 2012 to 2021, the following alternate syntax is supported:

This template is a helper template for annual MLB division standings templates, such as Template:2013 NL East standings. It is also used to create the standings tables contained in a wild card standings template, such as Template:2013 AL Wild Card standings.

Creating an MLB division standings template
To create a division standings template for a given MLB division and year:
 * Create the template with the name Template:   standings. For example: Template:2013 AL Central standings
 * Use the template as shown in the usage example above. The teams must be listed in the correct standings order. 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.
 * If you are creating a standings template for a division not listed above, and you want the heading in the standings table to link to a specific article, add a division_link parameter, set to the name of the target article.
 * For cases where the name of the team season article page is not in the format "  ", see.

The resulting division standings template can be used as follows:
 * In the season article for a team: use the highlight parameter, set to the name of the team. For example, in the 2013 Toronto Blue Jays season article, use the following:
 * 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:
 * 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:
 * 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 " : ". 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:
 * 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:

Creating a wild card standings template
A wild card standings template, such as Template:2013 AL Wild Card standings, consists of a division leaders table and a wild card standings table. To create the division leaders table, use the template as shown in the usage example above. The teams must be listed in the desired output order. For the division parameter, use Division leaders. Set the input parameter to overallWinLoss. The template_name parameter must specify the name of the template page, such as 2013 AL Wild Card standings, without the "Template:" prefix. Note the highlight parameter must be included as shown, in order to allow this parameter to be passed through from the wild card standings template.

To create the wild card standings table, use the template as shown in the usage example above. The teams must be listed in the correct standings order. Set the input parameter to overallWinLoss, and the output parameter to wildCard. Note the highlight parameter must be included as shown, in order to allow this parameter to be passed through from the wild card standings template. (For backwards compatibility, the output parameter can be set to wildCard2012 for seasons from 2012 to 2021.)

The resulting wildcard standings template can be included in a team season article, such as 2013 Chicago Cubs season, with the highlight parameter set to the team name. For example:

Support for customizing links
The following parameters are supported to facilitate using this template for standings templates related to organizations other than MLB, and for cases where the default links are insufficient:
 * If you want the heading in the standings table to link to a specific article, add a division_link parameter, set to the name of the target article.
 * For a given team, if the team season article does not following the format "  " (for instance, if the team name has a disambiguator at the end), specify the required text between " " and " " by adding a team_links parameter, with the following format:  For example: New York Giants:New York Giants (PL),Philadelphia Athletics:Philadelphia Athletics (PL)

Examples
Using the template to create a division standings table:

Resulting output:

Using the template to create a division leaders table:

Resulting output:

Using the template to create a wild card standings table:

Resulting output: