Template:Team roster navbox/doc: Difference between revisions
Appearance
Content deleted Content added
start documentation |
Tom.Reding (talk | contribs) m →top: {{High-use}} |
||
(26 intermediate revisions by 12 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. --> |
||
This template is a helper template for implementing the roster navboxes for baseball teams, such as {{tl|Toronto Blue Jays roster navbox}}, as well as award navboxes, such as {{tl|NLCS MVP}}. At present, it parses any list<number> arguments to the template and replaces spaces in each list item with &nbsp; in order to prevent wrapping. |
|||
== Usage == |
|||
<pre> |
|||
Potential future tasks that this navbox could perform include setting the colours for a given team based on a configuration page. |
|||
{{MLB roster navbox |
|||
== Roster example == |
|||
<syntaxhighlight lang="wikitext"> |
|||
{{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 25: | 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 37: | 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]] |
||
|group2=Inactive roster |
|||
|list2= |
|||
* 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 53: | Line 62: | ||
* 62 [[Aaron Loup]] |
* 62 [[Aaron Loup]] |
||
* 64 [[Chad Jenkins]] |
* 64 [[Chad Jenkins]] |
||
* -- [[Deck McGuire]] |
|||
* -- [[Toronto Blue Jays minor league players|Kenny Wilson]] |
|||
|group3=Injured list |
|||
|group2=Inactive roster |
|||
|list2= |
|||
|group3=Disabled list |
|||
|list3= |
|list3= |
||
* — [[Deck McGuire]] |
|||
|group4=Paternity list<!--or Bereavement list, Restricted list, etc.--> |
|||
|group4=Paternity list |
|||
|list4= |
|list4= |
||
* — [[Kenny Wilson (baseball)|Kenny Wilson]] |
|||
|group5=Coaching staff |
|group5=Coaching staff |
||
|list5= |
|list5= |
||
* Manager 5 [[John Gibbons]] |
* Manager 5 [[John Gibbons]] |
||
* Bench |
* Bench 20 [[DeMarlo Hale]] |
||
* First |
* First base — |
||
* Third Base |
* Third Base 2 [[Luis Rivera (infielder)|Luis Rivera]] |
||
* Hitting |
* Hitting — [[Kevin Seitzer]] |
||
* Pitching |
* Pitching 40 [[Pete Walker]] |
||
* Bullpen |
* Bullpen 41 [[Pat Hentgen]] |
||
* Bullpen |
* 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 100: | 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 112: | 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]] |
||
* 47 [[Luis Pérez (baseball)|Luis Pérez]] |
|||
|group2=Inactive roster |
|||
|list2= |
|||
* 47 [[Luis Pérez (pitcher)|Luis Pérez]] |
|||
* 48 [[J. A. Happ]] |
* 48 [[J. A. Happ]] |
||
* 49 [[Brad Lincoln]] |
* 49 [[Brad Lincoln]] |
||
Line 128: | Line 136: | ||
* 62 [[Aaron Loup]] |
* 62 [[Aaron Loup]] |
||
* 64 [[Chad Jenkins]] |
* 64 [[Chad Jenkins]] |
||
* -- [[Deck McGuire]] |
|||
* -- [[Toronto Blue Jays minor league players|Kenny Wilson]] |
|||
|group3=Injured list |
|||
|group2=Inactive roster |
|||
|list2= |
|||
|group3=Disabled list |
|||
|list3= |
|list3= |
||
* — [[Deck McGuire]] |
|||
|group4=Paternity list<!--or Bereavement list, Restricted list, etc.--> |
|||
|group4=Paternity list |
|||
|list4= |
|list4= |
||
* — [[Kenny Wilson (baseball)|Kenny Wilson]] |
|||
|group5=Coaching staff |
|group5=Coaching staff |
||
|list5= |
|list5= |
||
* Manager 5 [[John Gibbons]] |
* Manager 5 [[John Gibbons]] |
||
* Bench |
* Bench 20 [[DeMarlo Hale]] |
||
* First |
* First base — |
||
* Third |
* Third base 2 [[Luis Rivera (infielder)|Luis Rivera]] |
||
* Hitting |
* Hitting — [[Kevin Seitzer]] |
||
* Pitching |
* Pitching 40 [[Pete Walker (baseball)|Pete Walker]] |
||
* Bullpen |
* Bullpen 41 [[Pat Hentgen]] |
||
* Bullpen |
* Bullpen catcher 61 [[Alex Andreopoulos]] |
||
}} |
}} |
||
<includeonly> |
|||
<!-- Categories go here, and interwikis go in Wikidata --> |
|||
==Award example== |
|||
</includeonly> |
|||
<syntaxhighlight lang="wikitext"> |
|||
{{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]] |
|||
}} |
|||
</syntaxhighlight> |
|||
Resulting output: |
|||
{{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 (baseball)|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]] |
|||
}} |
|||
<includeonly>{{Sandbox other|| |
|||
<!-- Categories go here, and interwikis go in Wikidata --> |
|||
[[Category:Navigational box wrapper templates]] |
|||
[[Category:Sports squad templates]] |
|||
}}</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: