Template:Team roster navbox/doc: Difference between revisions
Appearance
Content deleted Content added
m Frietjes moved page Template:Baseball navbox/doc to Template:Team roster navbox/doc |
Tom.Reding (talk | contribs) m →top: {{High-use}} |
||
(13 intermediate revisions by 9 users not shown) | |||
Line 1: | Line 1: | ||
{{Documentation subpage}} |
{{Documentation subpage}} |
||
{{ |
{{High-use}} |
||
{{Lua|Module:Team roster navbox}} |
|||
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> |
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> |
||
Line 8: | Line 9: | ||
== Roster example == |
== Roster example == |
||
<syntaxhighlight lang="wikitext"> |
|||
<pre> |
|||
{{ |
{{Team roster navbox |
||
|name=Toronto Blue Jays roster navbox |
|name=Toronto Blue Jays roster navbox |
||
|title= |
|title=[[Toronto Blue Jays]] current roster |
||
|listclass = hlist |
|listclass = hlist |
||
|state = {{{state|autocollapse}}} |
|state = {{{state|autocollapse}}} |
||
Line 30: | Line 31: | ||
* 17 [[Ryan Goins]] |
* 17 [[Ryan Goins]] |
||
* 19 [[José Bautista]] |
* 19 [[José Bautista]] |
||
* 21 [[Sergio Santos]] |
* 21 [[Sergio Santos (baseball)|Sergio Santos]] |
||
* 22 [[Kevin Pillar]] |
* 22 [[Kevin Pillar]] |
||
* 23 [[Brandon Morrow]] |
* 23 [[Brandon Morrow]] |
||
Line 42: | Line 43: | ||
* 33 [[Jeremy Jeffress]] |
* 33 [[Jeremy Jeffress]] |
||
* 35 [[Sean Nolin]] |
* 35 [[Sean Nolin]] |
||
* 36 [[Drew Hutchison]] |
* 36 [[Drew Hutchison (baseball)|Drew Hutchison]] |
||
* 37 [[Mickey Storey]] |
* 37 [[Mickey Storey]] |
||
* 43 [[R.A. Dickey]] |
* 43 [[R. A. Dickey]] |
||
* 44 [[Casey Janssen]] |
* 44 [[Casey Janssen]] |
||
* 45 [[Neil Wagner (baseball)|Neil Wagner]] |
* 45 [[Neil Wagner (baseball)|Neil Wagner]] |
||
⚫ | |||
⚫ | |||
* 47 [[Luis Pérez (baseball)|Luis Pérez]] |
* 47 [[Luis Pérez (baseball)|Luis Pérez]] |
||
* 48 [[J. A. Happ]] |
* 48 [[J. A. Happ]] |
||
Line 58: | Line 62: | ||
* 62 [[Aaron Loup]] |
* 62 [[Aaron Loup]] |
||
* 64 [[Chad Jenkins]] |
* 64 [[Chad Jenkins]] |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
|list3= |
|list3= |
||
⚫ | |||
|group4=Paternity list<!--or Bereavement list, Restricted list, etc.--> |
|||
|group4=Paternity list |
|||
|list4= |
|list4= |
||
⚫ | |||
|group5=Coaching staff |
|group5=Coaching staff |
||
Line 81: | Line 81: | ||
* Bullpen 41 [[Pat Hentgen]] |
* Bullpen 41 [[Pat Hentgen]] |
||
* Bullpen catcher 61 [[Alex Andreopoulos]] |
* Bullpen catcher 61 [[Alex Andreopoulos]] |
||
}}</ |
}}</syntaxhighlight> |
||
Resulting output: |
Resulting output: |
||
{{ |
{{Team roster navbox |
||
|name=Toronto Blue Jays roster navbox |
|name=Toronto Blue Jays roster navbox |
||
|title= |
|title=[[Toronto Blue Jays]] current roster |
||
|listclass = hlist |
|listclass = hlist |
||
|state = {{{state|autocollapse}}} |
|state = {{{state|autocollapse}}} |
||
Line 105: | Line 105: | ||
* 17 [[Ryan Goins]] |
* 17 [[Ryan Goins]] |
||
* 19 [[José Bautista]] |
* 19 [[José Bautista]] |
||
* 21 [[Sergio Santos]] |
* 21 [[Sergio Santos (baseball)|Sergio Santos]] |
||
* 22 [[Kevin Pillar]] |
* 22 [[Kevin Pillar]] |
||
* 23 [[Brandon Morrow]] |
* 23 [[Brandon Morrow]] |
||
Line 117: | Line 117: | ||
* 33 [[Jeremy Jeffress]] |
* 33 [[Jeremy Jeffress]] |
||
* 35 [[Sean Nolin]] |
* 35 [[Sean Nolin]] |
||
* 36 [[Drew Hutchison]] |
* 36 [[Drew Hutchison (baseball)|Drew Hutchison]] |
||
* 37 [[Mickey Storey]] |
* 37 [[Mickey Storey]] |
||
* 43 [[R.A. Dickey]] |
* 43 [[R. A. Dickey]] |
||
* 44 [[Casey Janssen]] |
* 44 [[Casey Janssen]] |
||
* 45 [[Neil Wagner (baseball)|Neil Wagner]] |
* 45 [[Neil Wagner (baseball)|Neil Wagner]] |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
* 48 [[J. A. Happ]] |
* 48 [[J. A. Happ]] |
||
* 49 [[Brad Lincoln]] |
* 49 [[Brad Lincoln]] |
||
Line 133: | Line 136: | ||
* 62 [[Aaron Loup]] |
* 62 [[Aaron Loup]] |
||
* 64 [[Chad Jenkins]] |
* 64 [[Chad Jenkins]] |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
|group3= |
|group3=Injured list |
||
|list3= |
|list3= |
||
⚫ | |||
|group4=Paternity list<!--or Bereavement list, Restricted list, etc.--> |
|||
|group4=Paternity list |
|||
|list4= |
|list4= |
||
⚫ | |||
|group5=Coaching staff |
|group5=Coaching staff |
||
Line 153: | Line 152: | ||
* Third base 2 [[Luis Rivera (infielder)|Luis Rivera]] |
* Third base 2 [[Luis Rivera (infielder)|Luis Rivera]] |
||
* Hitting — [[Kevin Seitzer]] |
* Hitting — [[Kevin Seitzer]] |
||
* Pitching 40 [[Pete Walker]] |
* Pitching 40 [[Pete Walker (baseball)|Pete Walker]] |
||
* Bullpen 41 [[Pat Hentgen]] |
* Bullpen 41 [[Pat Hentgen]] |
||
* Bullpen catcher 61 [[Alex Andreopoulos]] |
* Bullpen catcher 61 [[Alex Andreopoulos]] |
||
Line 159: | Line 158: | ||
==Award example== |
==Award example== |
||
<syntaxhighlight lang="wikitext"> |
|||
<pre> |
|||
{{ |
{{Team roster navbox |
||
|name = NLCS MVP |
|name = NLCS MVP |
||
|title = [[League Championship Series Most Valuable Player Award|National League Championship Series MVP Award]] |
|title = [[League Championship Series Most Valuable Player Award|National League Championship Series MVP Award]] |
||
|state = {{{state|autocollapse}}} |
|state = {{{state|autocollapse}}} |
||
|listclass = hlist |
|listclass = hlist |
||
|list1 = |
|list1 = |
||
* 1977: [[Dusty Baker|Baker]] |
* 1977: [[Dusty Baker|Baker]] |
||
* 1978: [[Steve Garvey|Garvey]] |
* 1978: [[Steve Garvey|Garvey]] |
||
Line 204: | Line 204: | ||
* 2013: [[Michael Wacha|Wacha]] |
* 2013: [[Michael Wacha|Wacha]] |
||
}} |
}} |
||
</syntaxhighlight> |
|||
</pre> |
|||
Resulting output: |
Resulting output: |
||
{{ |
{{Team roster navbox |
||
|name = NLCS MVP |
|name = NLCS MVP |
||
|title = [[League Championship Series Most Valuable Player Award|National League Championship Series MVP Award]] |
|title = [[League Championship Series Most Valuable Player Award|National League Championship Series MVP Award]] |
||
|state = {{{state|autocollapse}}} |
|state = {{{state|autocollapse}}} |
||
|listclass = hlist |
|listclass = hlist |
||
|list1 = |
|list1 = |
||
* 1977: [[Dusty Baker|Baker]] |
* 1977: [[Dusty Baker|Baker]] |
||
* 1978: [[Steve Garvey|Garvey]] |
* 1978: [[Steve Garvey|Garvey]] |
||
Line 228: | Line 229: | ||
* 1989: [[Will Clark|Clark]] |
* 1989: [[Will Clark|Clark]] |
||
* 1990: [[Rob Dibble|Dibble]], [[Randy Myers|Myers]] |
* 1990: [[Rob Dibble|Dibble]], [[Randy Myers|Myers]] |
||
* 1991: [[Steve Avery|Avery]] |
* 1991: [[Steve Avery (baseball)|Avery]] |
||
* 1992: [[John Smoltz|Smoltz]] |
* 1992: [[John Smoltz|Smoltz]] |
||
* 1993: [[Curt Schilling|Schilling]] |
* 1993: [[Curt Schilling|Schilling]] |
||
Line 253: | Line 254: | ||
}} |
}} |
||
<includeonly> |
<includeonly>{{Sandbox other|| |
||
<!-- Categories go here, and interwikis go in Wikidata --> |
<!-- Categories go here, and interwikis go in Wikidata --> |
||
[[Category:Navigational box wrapper templates]] |
|||
[[Category:Sports squad templates]] |
|||
</includeonly> |
}}</includeonly> |
Latest revision as of 23:48, 26 December 2023
![]() | This is a documentation subpage for Template:Team roster navbox. It may contain usage information, categories and other content that is not part of the original template page. |
![]() | This template is used on approximately 36,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
![]() | This template uses Lua: |
This template is a helper template for implementing the roster navboxes for baseball teams, such as {{Toronto Blue Jays roster navbox}}, as well as award navboxes, such as {{NLCS MVP}}. At present, it parses any list<number> arguments to the template and replaces spaces in each list item with in order to prevent wrapping.
Potential future tasks that this navbox could perform include setting the colours for a given team based on a configuration page.
Roster example
[edit]{{Team roster navbox
|name=Toronto Blue Jays roster navbox
|title=[[Toronto Blue Jays]] current roster
|listclass = hlist
|state = {{{state|autocollapse}}}
|titlestyle=background:#003DA5; color:#FFFFFF;
|groupstyle=background:#041E42; color:#FFFFFF;
|group1=Active roster
|list1=
* 3 [[Maicer Izturis]]
* 4 [[Kyle Drabek]]
* 6 [[A. J. Jiménez]]
* 7 [[José Reyes (shortstop)|José Reyes]]
* 8 [[Anthony Gose]]
* 9 [[J. P. Arencibia]]
* 10 [[Edwin Encarnación]]
* 13 [[Brett Lawrie]]
* 14 [[Moisés Sierra]]
* 17 [[Ryan Goins]]
* 19 [[José Bautista]]
* 21 [[Sergio Santos (baseball)|Sergio Santos]]
* 22 [[Kevin Pillar]]
* 23 [[Brandon Morrow]]
* 24 [[Ricky Romero]]
* 26 [[Adam Lind]]
* 27 [[Brett Cecil]]
* 28 [[Colby Rasmus]]
* 29 [[Dustin McGowan]]
* 30 [[Josh Thole]]
* 32 [[Esmil Rogers]]
* 33 [[Jeremy Jeffress]]
* 35 [[Sean Nolin]]
* 36 [[Drew Hutchison (baseball)|Drew Hutchison]]
* 37 [[Mickey Storey]]
* 43 [[R. A. Dickey]]
* 44 [[Casey Janssen]]
* 45 [[Neil Wagner (baseball)|Neil Wagner]]
|group2=Inactive roster
|list2=
* 47 [[Luis Pérez (baseball)|Luis Pérez]]
* 48 [[J. A. Happ]]
* 49 [[Brad Lincoln]]
* 50 [[Steve Delabar]]
* 51 [[Thad Weber]]
* 53 [[Melky Cabrera]]
* 56 [[Mark Buehrle]]
* 57 [[Juan Pérez (pitcher)|Juan Pérez]]
* 58 [[Todd Redmond]]
* 62 [[Aaron Loup]]
* 64 [[Chad Jenkins]]
|group3=Injured list
|list3=
* — [[Deck McGuire]]
|group4=Paternity list<!--or Bereavement list, Restricted list, etc.-->
|list4=
* — [[Kenny Wilson (baseball)|Kenny Wilson]]
|group5=Coaching staff
|list5=
* Manager 5 [[John Gibbons]]
* Bench 20 [[DeMarlo Hale]]
* First base —
* Third Base 2 [[Luis Rivera (infielder)|Luis Rivera]]
* Hitting — [[Kevin Seitzer]]
* Pitching 40 [[Pete Walker]]
* Bullpen 41 [[Pat Hentgen]]
* Bullpen catcher 61 [[Alex Andreopoulos]]
}}
Resulting output:
Award example
[edit]{{Team roster navbox
|name = NLCS MVP
|title = [[League Championship Series Most Valuable Player Award|National League Championship Series MVP Award]]
|state = {{{state|autocollapse}}}
|listclass = hlist
|list1 =
* 1977: [[Dusty Baker|Baker]]
* 1978: [[Steve Garvey|Garvey]]
* 1979: [[Willie Stargell|Stargell]]
* 1980: [[Manny Trillo|Trillo]]
* 1981: [[Burt Hooton|Hooton]]
* 1982: [[Darrell Porter|Porter]]
* 1983: [[Gary Matthews|Matthews]]
* 1984: [[Steve Garvey|Garvey]]
* 1985: [[Ozzie Smith|Smith]]
* 1986: [[Mike Scott (baseball)|Scott]]
* 1987: [[Jeffrey Leonard|Leonard]]
* 1988: [[Orel Hershiser|Hershiser]]
* 1989: [[Will Clark|Clark]]
* 1990: [[Rob Dibble|Dibble]], [[Randy Myers|Myers]]
* 1991: [[Steve Avery|Avery]]
* 1992: [[John Smoltz|Smoltz]]
* 1993: [[Curt Schilling|Schilling]]
* 1994: ''Not played''
* 1995: [[Mike Devereaux|Devereaux]]
* 1996: [[Javy López|López]]
* 1997: [[Liván Hernández|Hernández]]
* 1998: [[Sterling Hitchcock|Hitchcock]]
* 1999: [[Eddie Pérez (baseball)|Pérez]]
* 2000: [[Mike Hampton|Hampton]]
* 2001: [[Craig Counsell|Counsell]]
* 2002: [[Benito Santiago|Santiago]]
* 2003: [[Iván Rodríguez|Rodríguez]]
* 2004: [[Albert Pujols|Pujols]]
* 2005: [[Roy Oswalt|Oswalt]]
* 2006: [[Jeff Suppan|Suppan]]
* 2007: [[Matt Holliday|Holliday]]
* 2008: [[Cole Hamels|Hamels]]
* 2009: [[Ryan Howard|Howard]]
* 2010: [[Cody Ross|Ross]]
* 2011: [[David Freese|Freese]]
* 2012: [[Marco Scutaro|Scutaro]]
* 2013: [[Michael Wacha|Wacha]]
}}
Resulting output: