Template:Infobox MLB/doc
This is a documentation subpage for Template:Infobox MLB. It contains usage information, categories and other content that is not part of the original template page. |
This template employs intricate features of template syntax. You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. Remember that you can conduct experiments, and should test all improvements, in either the general Template sandbox or your user space before changing anything here. |
Usage
Only major league affiliations should be listed; National Association, Western League and other minor league affiliations should not be included. The "Established" date indicates when major league status was gained. Postseasons prior to 1903 are not included as they were regarded more as exhibitions.
The infobox may be added by pasting the template as shown below into an article, typically at the top of an article above the lead section.
Parameters
{{Infobox MLB | name = | established = | misc = | logo = <!-- Team Logo --> | uniformlogo = <!-- Cap Insignia --> | current league = <!-- [[National League]] or [[American League]] --> | y1 = | division = | y2 = | Uniform = | retirednumbers = | colors = <!-- Use Template {{color box}} --> | name = | y3 = | nicknames = | pastnames = | ballpark = | y4 = | pastparks = | WS = <!-- # of WS Wins in parenthesizes --> | WORLD CHAMPIONS = <!-- Years Won --> | LEAGUE = <!-- NL or AL --> | P = <!-- # of pennants in parenthesizes --> | PENNANTS = <!-- Years Won --> | misc1 = | OTHER PENNANTS = | DIV = <!-- East, Central, or West --> | DV = <!-- # of Division Titles Won in parenthesizes --> | Division Champs = <!-- Years Won --> | misc5 = | OTHER DIV CHAMPS = | WC = <!-- # of Wild Card Berths in parenthesies --> | Wild Card = <!-- Wild Card Years --> | misc6 = | owner = | manager = | gm = | presbo = <!-- President of Baseball Operations --> }}
Microformat
The HTML mark up produced by this template includes an hCard microformat, which makes the organisation's details parsable by computers, either acting automatically to catalogue article across Wikipedia, or via a browser tool operated by a reader, to (for example) add the subject to an address book. For more information about the use of microformats on Wikipedia, please see the microformat project.
Sub-templates
- If the organisation has an "established", "founded", "opened" or similar date, use {{Start date}} (unless the date is before 1583 CE).
- If the organisation has a URL, use {{URL}}.
- If the organisation has a "coordinates" field, use {{Coord}} to include a Geo microformat, which additionally makes the coordinates (latitude & longitude) parsable, so that they can be, say, looked up on a map, or downloaded to a GPS unit.
Please do not remove instances of these sub-templates.
Classes
hCard uses HTML classes including:
- adr
- agent
- category
- country-name
- extended-address
- fn
- geo
- label
- latitude
- locality
- longitude
- nickname
- note
- org
- region
- street-address
- url
- vcard
Please do not rename or remove these classes; nor collapse nested elements which use them.