Difference between revisions of "Template:Team roster navbox"
37thchamber (talk | contribs) m (1 revision imported) |
LaneFrost23 (talk | contribs) m |
||
Line 1: | Line 1: | ||
− | {{ | + | {{Documentation subpage}} |
− | {{ | + | {{lua|Module:Team roster navbox}} |
− | </ | + | <!-- 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. | ||
+ | |||
+ | Potential future tasks that this navbox could perform include setting the colours for a given team based on a configuration page. | ||
+ | |||
+ | == Roster example == | ||
+ | <pre> | ||
+ | {{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]] | ||
+ | * 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]] | ||
+ | }}</pre> | ||
+ | |||
+ | Resulting output: | ||
+ | {{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]] | ||
+ | * 37 [[Mickey Storey]] | ||
+ | * 43 [[R. A. Dickey]] | ||
+ | * 44 [[Casey Janssen]] | ||
+ | * 45 [[Neil Wagner (baseball)|Neil Wagner]] | ||
+ | |||
+ | |group2=Inactive roster | ||
+ | |list2= | ||
+ | * 47 [[Luis Pérez (pitcher)|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]] | ||
+ | }} |
Revision as of 11:59, 9 February 2022
30px | 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
{{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]] * 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:
30px | 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
{{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]] * 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: Template loop detected: Template:Team roster navbox