Difference between revisions of "Template:Infobox MLB"
Jump to navigation
Jump to search
imported>Spanneraol |
|||
| (122 intermediate revisions by 39 users not shown) | |||
| Line 1: | Line 1: | ||
| − | {| | + | {{infobox |
| − | + | | bodyclass = vcard | |
| − | + | | bodystyle = width: 27em; line-height: 1.7em | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | | | + | | aboveclass = fn org |
| − | | | + | | abovestyle = {{Baseball primary style|{{{name}}}|border=2|simple=1}} |
| − | + | | above = {{{name}}} | |
| − | | | + | |
| − | | | + | | subheader = {{#if:{{{name|}}}|[[File:Baseball current event.svg|33px|alt=|link=]] ''[[{{CURRENTYEAR}} {{{name}}} season]]''}} |
| − | + | ||
| − | + | | headerstyle = {{Baseball secondary style|{{{name}}}|border=2|simple=1}} | |
| − | | | + | |
| − | + | | data1 = {{#if:{{{established|}}}|'''Established''' in [[{{{established}}} in baseball|{{{established}}}]]}} | |
| − | |- | + | |
| − | | | + | | rowstyle2 = font-weight:bold; |
| − | + | | data2 = {{{misc|}}} | |
| − | | | + | |
| − | + | | data3 = {{#if:{{{logo|}}}{{{uniformlogo|}}}|<table style="width:100%; margin:0; text-align:center;"> | |
| − | + | <tr>{{#if:{{{logo|}}} | |
| − | | | + | |<td style="vertical-align: middle; border: 0; text-align:center;">[[Image:{{{logo}}}|175x100px]]</td> |
| − | + | }}{{#if:{{{uniformlogo|}}} | |
| − | + | |<td style="vertical-align: middle; border: 0; text-align:center;">[[Image:{{{uniformlogo}}}|175x100px]]</td> | |
| − | + | }}</tr><tr>{{#if:{{{logo|}}} | |
| − | | | + | |<td style="vertical-align: middle; border: 0; text-align:center;">'''Team logo'''</td> |
| − | + | }}{{#if:{{{uniformlogo|}}}| | |
| − | + | <td style="vertical-align: middle; border: 0; text-align:center;">'''Cap insignia'''</td> | |
| − | + | }}</tr> | |
| − | | | + | </table>}} |
| − | || | + | | header4 = {{#if:{{{current league|}}}{{{division|}}}{{{past division|}}}{{{past league|}}}|Major league affiliations}} |
| − | | | + | | data5 = {{#if:{{{current league|}}}{{{division|}}}{{{past division|}}}{{{past league|}}}|<div style="text-align:left; font-weight:bold;"> |
| − | || {{{ | + | * {{#if:{{{current league|}}}|[[{{{current league}}}]] ([[{{{y1}}} in baseball|{{{y1}}}]]–present)}} |
| − | | | + | ** {{#if:{{{division|}}}|{{{division}}} ([[{{{y2}}} in baseball|{{{y2}}}]]–present)}} |
| − | + | ** {{#if:{{{past division|}}}|{{{past division}}} ([[{{{y5}}} in baseball|{{{y5}}}]]–[[{{{y6}}} in baseball|{{{y6}}}]])}} | |
| − | | | + | {{#if:{{{past league|}}} |* {{{past league}}} ([[{{{y7}}} in baseball|{{{y7}}}]]–[[{{{y8}}} in baseball|{{{y8}}}]])|}} |
| − | || {{{ | + | {{#if:{{{pastleaguediv1|}}} |** {{{pastleaguediv1}}} ([[{{{y9}}} in baseball|{{{y9}}}]]–[[{{{y10}}} in baseball|{{{y10}}}]])}} |
| − | | | + | {{#if:{{{pastleaguediv2|}}}|** {{{pastleaguediv2}}} ([[{{{y11}}} in baseball|{{{y11}}}]]–[[{{{y12}}} in baseball|{{{y12}}}]])}} |
| − | + | {{#if:{{{pastleaguediv3|}}} |** {{{pastleaguediv3}}} ([[{{{y13}}} in baseball|{{{y13}}}]]–[[{{{y14}}} in baseball|{{{y14}}}]])}}</div>}} | |
| − | | | + | | header6 = {{#if: {{{Uniform|}}}|Current uniform}} |
| − | | | + | | data7 = {{#if: {{{Uniform|}}}| [[Image:{{{Uniform}}}|center|275px]] }} |
| − | {{{ | + | |
| − | | | + | | label8 = Retired numbers |
| − | + | | data8 = {{#if: {{{retirednumbers|}}}|''{{{retirednumbers|}}}''}} | |
| − | | | + | |
| − | + | | header9 = {{#if:{{{colors|}}}|Colors|{{#if:{{{colours|}}}|Colours}}}} | |
| − | | | + | | data10 = {{#if:{{{colors|}}}{{{colours|}}}|<div style="text-align:left"> |
| − | + | * '''{{#if:{{{colors|}}}|{{{colors}}}|{{{colours}}}}}'''</div>}} | |
| − | | | + | |
| − | {{#if:{{{presbo | + | | header11 = {{#if:{{{name|}}}{{{pastnames|}}}|Name}} |
| − | + | | data12 = {{#if:{{{name|}}}{{{pastnames|}}}|<div style="text-align:left"> | |
| − | {{ | + | *'''{{{name}}} ([[{{{y3}}} in baseball|{{{y3}}}]]–present)''' |
| − | }} | + | {{{pastnames|}}}</div>}} |
| − | |}<noinclude>{{documentation}}<!-- place category and language links on the /doc sub-page, not here --></noinclude> | + | |
| + | | header13 = {{#if:{{{nicknames|}}}|Other nicknames}} | ||
| + | | data14 ={{#if:{{{nicknames|}}}|<div style="text-align:left"> | ||
| + | *'''<div style="display:inline;" class="nickname">{{{nicknames}}}</div>'''</div>}} | ||
| + | |||
| + | | header15 = {{#if:{{{ballpark|}}}{{{pastparks|}}}|Ballpark}} | ||
| + | | data16 ={{#if:{{{ballpark|}}}{{{pastparks|}}}|<div style="text-align:left"> | ||
| + | * '''{{{ballpark}}} {{#if: {{{y4|}}}|([[{{{y4}}} in baseball|{{{y4}}}]]–present)|}}''' | ||
| + | {{{pastparks|}}}</div>}} | ||
| + | |||
| + | | header17 = {{#if:{{{WORLD CHAMPIONS|}}}{{{PENNANTS|}}}{{{OTHER PENNANTS|}}}{{{Division Champs|}}}{{{OTHER DIV CHAMPS|}}}{{{OTHER DIV CHAMPS 2|}}}{{{Wild Card|}}}|Major league titles}} | ||
| + | |||
| + | | label18 = {{nowrap|World Series titles {{nobold|{{{WS}}}}}}} | ||
| + | | data18 = {{{WORLD CHAMPIONS|}}} | ||
| + | |||
| + | | label19 = {{{LEAGUE}}} Pennants {{nobold|{{{P}}}}} | ||
| + | | data19 = {{{PENNANTS|}}} | ||
| + | |||
| + | | label20 = {{nobold|{{{misc1}}}}} | ||
| + | | data20 = {{{OTHER PENNANTS|}}} | ||
| + | |||
| + | | label21 = {{{DIV}}} Division titles {{nobold|{{{DV}}}}} | ||
| + | | data21 = {{{Division Champs|}}} | ||
| + | |||
| + | | label22 = {{nobold|{{{misc5}}}}} | ||
| + | | data22 = {{{OTHER DIV CHAMPS|}}} | ||
| + | |||
| + | | label23 = {{nobold|{{{misc7}}}}} | ||
| + | | data23 = {{{OTHER DIV CHAMPS 2|}}} | ||
| + | |||
| + | | label24 = Wild card berths {{nobold|{{{WC}}}}} | ||
| + | | data24 = {{{Wild Card|}}} | ||
| + | |||
| + | | data25 = {{#if:{{{misc6|}}}|<div style="text-align:left">{{{misc6}}}</div>}} | ||
| + | |||
| + | | header26 = {{#if:{{{owner|}}}{{{manager|}}}{{{gm|}}}{{{presbo|}}}|Front office}} | ||
| + | |||
| + | | label27 = Principal owner(s) | ||
| + | | data27 = {{{owner|}}} | ||
| + | |||
| + | | label28 = President | ||
| + | | data28 = {{{president|}}} | ||
| + | |||
| + | | label29 = President of baseball operations | ||
| + | | data29 = {{{presbo|}}} | ||
| + | |||
| + | | label30 =General manager | ||
| + | | data30 = {{{gm|}}} | ||
| + | |||
| + | | label31 =Manager | ||
| + | | data31 = {{{manager|}}} | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | }}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox MLB with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox MLB]] with unknown parameter "_VALUE_"|ignoreblank=y| ballpark | colors | colours | current league | DIV | division | Division Champs | DV | established | gm | LEAGUE | logo | manager | misc | misc1 | misc5 | misc6 | misc7 | name | nicknames | OTHER DIV CHAMPS | OTHER DIV CHAMPS 2 | OTHER PENNANTS | owner | P | past division | past league | pastleaguediv1 | pastleaguediv2 | pastleaguediv3 | pastnames | pastparks | PENNANTS |president| presbo | retirednumbers | Uniform | uniformlogo | WC | Wild Card | WORLD CHAMPIONS | WS | y1 | y10 | y11 | y12 | y13 | y14 | y2 | y3 | y4 | y5 | y6 | y7 | y8 | y9 }}<noinclude>{{documentation}}<!-- place category and language links on the /doc sub-page, not here --></noinclude> | ||
Latest revision as of 02:31, 16 November 2020
| {{{name}}} |
|---|
[[Category:Infobox templates|Template:Remove first word]]
| 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. |
| 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 = <!-- for multiple nicknames, separate with commas, e.g. "The Blues, The Blue Bombers" -->
| 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 =
| president=
| presbo = <!-- President of Baseball Operations -->
| gm =
| manager =
}}
Microformat
Tracking category
| The above documentation is transcluded from Template:Infobox MLB/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |