Difference between revisions of "Template:Infobox MLB/doc"
Jump to navigation
Jump to search
imported>Zepheral |
imported>Zyxw m (note Lua modules used, remove parameter not in template, add link to tracking category, add template category) |
||
| Line 1: | Line 1: | ||
| − | |||
__NOTOC__ | __NOTOC__ | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
| − | {{ | + | <!-- Place categories where indicated at bottom of page and interwikis at Wikidata --> |
| + | {{Intricate template}} | ||
| + | {{Lua|Module:Infobox|Module:Check for unknown parameters}} | ||
== Usage == | == Usage == | ||
| Line 66: | Line 67: | ||
| gm = | | gm = | ||
| presbo = <!-- President of Baseball Operations --> | | presbo = <!-- President of Baseball Operations --> | ||
| − | |||
}}</pre> | }}</pre> | ||
| − | + | == Microformat == | |
{{UF-hcard-org}} | {{UF-hcard-org}} | ||
| − | == | + | == Tracking category == |
| − | <includeonly> | + | * {{clc|Pages using infobox MLB with unknown parameters}} |
| − | <!-- | + | |
| + | <includeonly>{{sandbox other|| | ||
| + | <!-- Categories below this line and interwikis at Wikidata --> | ||
[[Category:Baseball infobox templates|MLB infobox]] | [[Category:Baseball infobox templates|MLB infobox]] | ||
| − | </includeonly> | + | [[Category:Templates that add a tracking category]] |
| + | }}</includeonly> | ||
Revision as of 14:15, 9 February 2019
| 40px | 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. |
| 40x40px | 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. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
| 30px | This template uses Lua: |
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
Template:Parameter names example
{{Infobox MLB
| name =
| established =
| misc =
| logo = <!-- Team Logo -->
| uniformlogo = <!-- Cap Insignia -->
| current league = <!-- [[National League]] or [[American League]] -->
| y1 = <!-- year joined current league -->
| division =
| y2 = <!-- year joined current division -->
| past division =
| y5 = <!-- year joined former division in current league -->
| y6 = <!-- year left former division in current league -->
| past league = <!-- previous major league affiliation -->
| y7 = <!-- year joined previous major league -->
| y8 = <!-- year left previous major league -->
| pastleaguediv1 = <!-- former division 1 in previous major league -->
| y9 = <!-- year joined former division 1 in previous major league -->
| y10 = <!-- year left former division 1 in previous major league -->
| pastleaguediv2 = <!-- former division 2 in previous major league -->
| y11 = <!-- year joined former division 2 in previous major league -->
| y12 = <!-- year left former division 2 in previous major league -->
| pastleaguediv3 = <!-- former division 3 in previous major league -->
| y13 = <!-- year joined former division 3 in previous major league -->
| y14 = <!-- year left former division 3 in previous major league -->
| Uniform =
| retirednumbers =
| colors = <!-- or | colours =, use template {{color box}} -->
| y3 =
| nicknames =
| pastnames =
| ballpark =
| y4 =
| pastparks =
| WS = <!-- # of WS wins in parentheses -->
| WORLD CHAMPIONS = <!-- Years Won -->
| LEAGUE = <!-- NL or AL -->
| P = <!-- # of pennants in parentheses -->
| PENNANTS = <!-- Years Won -->
| misc1 =
| OTHER PENNANTS =
| DIV = <!-- East, Central, or West -->
| DV = <!-- # of Division titles won in parentheses -->
| Division Champs = <!-- Years Won -->
| misc5 =
| OTHER DIV CHAMPS =
| misc7 =
| OTHER DIV CHAMPS 2 =
| WC = <!-- # of wild card berths in parentheses -->
| Wild Card = <!-- Wild card years -->
| misc6 =
| owner =
| manager =
| gm =
| presbo = <!-- President of Baseball Operations -->
}}
Microformat
Tracking category