Template:Team roster navbox
Appearance
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
[change source]{{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]] * 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]] * 37 [[Mickey Storey]] * 43 [[R.A. Dickey]] * 44 [[Casey Janssen]] * 45 [[Neil Wagner (baseball)|Neil Wagner]] * 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]] * — [[Deck McGuire]] * — [[Kenny Wilson (baseball)|Kenny Wilson]] |group2=Inactive roster |list2= |group3=Disabled list |list3= |group4=Paternity list |list4= |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
[change source]{{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: