Difference between revisions of "Template:Infobox MLB/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Zepheral
imported>Zepheral
 
Line 1: Line 1:
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
+
{{infobox
__NOTOC__
+
| bodyclass = vcard
{{Documentation subpage}}
+
| bodystyle = width: 27em; line-height: 1.7em
{{intricate template}}
 
  
== Usage ==
+
| aboveclass = fn org
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.
+
| abovestyle = {{Baseball primary style|{{{name}}}|border=2|simple=1}}
 +
| above = {{{name}}}
  
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.
+
| subheader = {{#if:{{{name|}}}|[[File:Baseball current event.svg|33px|alt=|link=]] ''[[{{CURRENTYEAR}} {{{name}}} season]]''}}
  
== Parameters ==
+
| headerstyle = background-color: #dcdcdc
{{Parameter names example|name|established|misc|logo|uniformlogo|current league|division|y1|y2|Uniform|retirednumbers|colours|colors|pastnames|y3|nicknames|ballpark|pastparks|y4|WORLD CHAMPIONS|PENNANTS|OTHER PENNANTS|Division Champs|OTHER DIV CHAMPS|Wild Card|WS|LEAGUE|P|misc1|DIV|DV|misc5|WC|misc6|owner|manager|gm|presbo}}
 
<pre style="overflow: auto;">{{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 =
 
| WC = <!-- # of wild card berths in parentheses -->
 
| Wild Card = <!-- Wild card years -->
 
| misc6 =
 
| owner =
 
| manager =
 
| gm =
 
| presbo = <!-- President of Baseball Operations -->
 
| President =
 
}}</pre>
 
  
===Microformat===
+
| data1 = {{#if:{{{established|}}}|'''Established''' in [[{{{established}}} in baseball|{{{established}}}]]}}
{{UF-hcard-org}}
 
  
=== See also ===
+
| rowstyle2 = font-weight:bold;
<includeonly>
+
| data2 = {{{misc|}}}
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
+
 
[[Category:Baseball infobox templates|MLB infobox]]
+
| data3 = {{#if:{{{logo|}}}{{{uniformlogo|}}}|<table style="width:100%; margin:0; text-align:center;">
</includeonly>
+
<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>}}
 +
 
 +
| header11 = {{#if:{{{name|}}}{{{pastnames|}}}|Name}}
 +
| data12 = {{#if:{{{name|}}}{{{pastnames|}}}|<div style="text-align:left">
 +
*'''{{{name}}} ([[{{{y3}}} in baseball|{{{y3}}}]]–present)'''
 +
{{{pastnames|}}}</div>}}
 +
 
 +
| header13 = {{#if:{{{nicknames|}}}|Other nicknames}}
 +
| data14 ={{#if:{{{nicknames|}}}|<div style="text-align:left">
 +
*'''<span class="nickname">{{{nicknames}}}</span>'''</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|}}}{{{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 = Wild card berths {{nobold|{{{WC}}}}}
 +
| data23 = {{{Wild Card|}}}
 +
 
 +
| data24 = {{#if:{{{misc6|}}}|<div style="text-align:left">{{{misc6}}}</div>}}
 +
 
 +
| header25 = {{#if:{{{owner|}}}{{{manager|}}}{{{gm|}}}{{{presbo|}}}|Front office}}
 +
 
 +
| label26 = Owner(s)
 +
| data26 = {{{owner|}}}
 +
 
 +
| label27 =Manager
 +
| data27 = {{{manager|}}}
 +
 
 +
| label28 =General Manager
 +
| data28 = {{{gm|}}}
 +
 
 +
| label29 = President of Baseball Operations
 +
| data29 = {{{presbo|}}}
 +
 
 +
}}{{#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 | name | nicknames | OTHER DIV CHAMPS | OTHER PENNANTS | owner | P | past division | past league | pastleaguediv1 | pastleaguediv2 | pastleaguediv3 | pastnames | pastparks | PENNANTS | 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 00:12, 25 September 2018

{{{name}}}
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