Difference between revisions of "Template:Infobox MLB"

From blackwiki
Jump to navigation Jump to search
imported>Spanneraol
 
(122 intermediate revisions by 39 users not shown)
Line 1: Line 1:
{| class="infobox vcard" style="width: 22em; font-size: 88%; text-align: left; line-height: 1.5em"
+
{{infobox
! colspan=2 class="fn org" style="font-size: 125%; text-align: center; background-color: lightyellow" |
+
| bodyclass = vcard
|-
+
| bodystyle = width: 27em; line-height: 1.7em
! style="text-align: center" | Established
 
|
 
|-
 
! colspan=2 style="text-align: center" |
 
|-
 
| colspan=2 align="center" |
 
{|
 
! align=center style="vertical-align: middle; border: 0"| [[Image:{{{logo}}}|100px]]<br />Team logo
 
! align=center style="vertical-align: middle; border: 0"| [[Image:{{{uniformlogo}}}|100px]]<br />Cap Insignia
 
|}
 
|-
 
! colspan=2 style="background-color: lightyellow; text-align: center" | Major league affiliations
 
|-
 
! colspan=2 |
 
*
 
|-
 
! colspan=2 style="background-color: lightyellow; text-align: center" | Current uniform
 
|-
 
| colspan=2 style="text-align: center" |
 
{|
 
| style="float:right;margin:0 1em 0 1em;text-align:center"| [[Image:{{{Uniform}}}|center|275px]]
 
|}
 
|-
 
{{#if: {{{retirednumbers|}}}|
 
! Retired Numbers
 
{{!}} ''{{{retirednumbers|}}}''}}
 
|-
 
! colspan=2 style="background-color: lightyellow; text-align: center" | Colors
 
  
|-
+
| aboveclass = fn org
| colspan=2 |
+
| 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]]''}}
! colspan=2 style="background-color: lightyellow; text-align: center" | Name
+
 
|-
+
| headerstyle = {{Baseball secondary style|{{{name}}}|border=2|simple=1}}
| colspan=2 |
+
 
*
+
| data1 = {{#if:{{{established|}}}|'''Established''' in [[{{{established}}} in baseball|{{{established}}}]]}}
|-
+
 
|colspan=2 |
+
| rowstyle2 = font-weight:bold;
*{{{pastnames|}}}
+
| data2 = {{{misc|}}}
|-
+
 
! colspan=2 style="background-color: lightyellow; text-align: center" | Other nicknames
+
| 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>
! colspan=2 style="background-color: lightyellow; text-align: center" | Ballpark
+
}}{{#if:{{{uniformlogo|}}}
*
+
|<td style="vertical-align: middle; border: 0; text-align:center;">[[Image:{{{uniformlogo}}}|175x100px]]</td>
* {{{pastparks|}}}
+
}}</tr><tr>{{#if:{{{logo|}}}
|-
+
|<td style="vertical-align: middle; border: 0; text-align:center;">'''Team logo'''</td>
! colspan=2 style="background-color: lightyellow; text-align: center" | Major league titles
+
}}{{#if:{{{uniformlogo|}}}|
|- width="165px" style="vertical-align: top"
+
<td style="vertical-align: middle; border: 0; text-align:center;">'''Cap insignia'''</td>
|| '''World Series titles'''|| width="135px" |
+
}}</tr>
|- width="165px" style="vertical-align: top"
+
</table>}}
|| '''{{{LEAGUE}}} Pennants'''|| width="135px" |
+
| header4 = {{#if:{{{current league|}}}{{{division|}}}{{{past division|}}}{{{past league|}}}|Major league affiliations}}
|- width="165px" style="vertical-align: top"
+
| data5 = {{#if:{{{current league|}}}{{{division|}}}{{{past division|}}}{{{past league|}}}|<div style="text-align:left; font-weight:bold;">
|| {{{misc1}}} || width="135px" | {{{OTHER PENNANTS}}}
+
* {{#if:{{{current league|}}}|[[{{{current league}}}]] ([[{{{y1}}} in baseball|{{{y1}}}]]–present)}}
|- width="165px" style="vertical-align: top"
+
** {{#if:{{{division|}}}|{{{division}}} ([[{{{y2}}} in baseball|{{{y2}}}]]–present)}}
|| '''{{{DIV}}} Division titles''' {{{DV}}} || width="135px" | {{{Division Champs}}}
+
** {{#if:{{{past division|}}}|{{{past division}}} ([[{{{y5}}} in baseball|{{{y5}}}]]–[[{{{y6}}} in baseball|{{{y6}}}]])}}
|- width="165px" style="vertical-align: top"
+
{{#if:{{{past league|}}} |* {{{past league}}} ([[{{{y7}}} in baseball|{{{y7}}}]]–[[{{{y8}}} in baseball|{{{y8}}}]])|}}
|| {{{misc5}}} || width="135px" | {{{OTHER DIV CHAMPS}}}
+
{{#if:{{{pastleaguediv1|}}} |** {{{pastleaguediv1}}} ([[{{{y9}}} in baseball|{{{y9}}}]]–[[{{{y10}}} in baseball|{{{y10}}}]])}}
|- width="165px" style="vertical-align: top"
+
{{#if:{{{pastleaguediv2|}}}|** {{{pastleaguediv2}}} ([[{{{y11}}} in baseball|{{{y11}}}]]–[[{{{y12}}} in baseball|{{{y12}}}]])}}
|| '''Wild card berths''' {{{WC}}} || width="135px" | {{{Wild Card}}}
+
{{#if:{{{pastleaguediv3|}}} |** {{{pastleaguediv3}}} ([[{{{y13}}} in baseball|{{{y13}}}]]–[[{{{y14}}} in baseball|{{{y14}}}]])}}</div>}}
|-
+
| header6 = {{#if: {{{Uniform|}}}|Current uniform}}
| colspan=2 |
+
| data7 = {{#if: {{{Uniform|}}}| [[Image:{{{Uniform}}}|center|275px]] }}
{{{misc6}}}
+
 
|-
+
| label8 = Retired numbers
! colspan=2 style="background-color: lightyellow; text-align: center" | Owner(s): {{{owner}}}
+
| data8 = {{#if: {{{retirednumbers|}}}|''{{{retirednumbers|}}}''}}
|-
+
 
! colspan=2 style="background-color: lightyellow; text-align: center" | Manager: <span class="agent">{{{manager}}}</span>
+
| header9 = {{#if:{{{colors|}}}|Colors|{{#if:{{{colours|}}}|Colours}}}}
|-
+
| data10 = {{#if:{{{colors|}}}{{{colours|}}}|<div style="text-align:left">
! colspan=2 style="background-color: lightyellow; text-align: center" | General Manager: <span class="agent">{{{gm}}}</span>
+
* '''{{#if:{{{colors|}}}|{{{colors}}}|{{{colours}}}}}'''</div>}}
|-
+
 
{{#if:{{{presbo<includeonly>|</includeonly>}}}|
+
| header11 = {{#if:{{{name|}}}{{{pastnames|}}}|Name}}
! style="vertical-align: middle" colspan=2 style="background:lightyellow" {{!}} President of Baseball Operations: <span class="agent">{{{presbo}}}</span>
+
| 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]]

Template documentation[view] [edit] [history] [purge]


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

Template:UF-hcard-org

Tracking category