Template:WNBA roster doc

From Wikipedia, the free encyclopedia



Contents

Usage[edit]

Current roster[edit]

The standard usage for a WNBA roster starts by creating a main roster template, which will contain the list of players, coaches, and trainers. To demonstrate the usage, here is the source code for Template:Washington Mystics roster as of May 19, 2020.

{{sports roster
| template_name = Washington Mystics roster
| style  = WNBA
| format = {{{1|}}}
| state  = {{{state|}}}
| team   = Washington Mystics

| players    = 
<!-- list of players -->
{{sports roster/entry | num = | first = Jaylyn | last = Agnew | pos = | ft = 5 | in = 11 | lbs =  | DOB = 1997-07-21 | yrs = R | college =Creighton | nat = USA}}
{{sports roster/entry | num = 7 | first = Ariel | last = Atkins | pos = G | ft = 5 | in = 11 | lbs = 167 | DOB = 1996-07-30 | yrs = 2 | college = Texas | nat = USA}}
{{sports roster/entry | num = 31 | first = Tina | last = Charles | dab = basketball | pos = C | ft = 6 | in = 4 | lbs = 192 | DOB = 1988-12-05 | yrs = 10 | college = Connecticut | nat = USA}}
{{sports roster/entry | num = 9 | first = Natasha | last = Cloud | pos = G | ft = 5 | in = 9 | lbs = 160 | DOB= 1992-02-22 | yrs= 5 | college = Saint Joseph's | nat = USA}}
{{sports roster/entry | num = 11 | first = Elena | last = Delle Donne | pos = G/F | ft = 6 | in = 5 | lbs = 187 | DOB = 1989-09-05 | yrs = 7 | college = Delaware | nat = USA}} 
{{sports roster/entry | num = 21 | first = Tianna | last = Hawkins| pos = F | ft = 6 | in = 3 | lbs = 186 | DOB = 1991-03-02 | yrs = 6 | college = Maryland | nat = USA}}
{{sports roster/entry | num = 2 | first = Myisha | last = Hines-Allen | pos = F | ft = 6 | in = 1 | lbs = 200 | DOB = 1996-05-30 | yrs = 2 | college = Louisville | nat = USA}}
{{sports roster/entry | num = 5 | first = Kiara | last = Leslie | pos = G | ft = 6 | in = 0 | lbs = 175 | DOB = 1995-12-06 | yrs = R | college = NC State | nat = USA}}
{{sports roster/entry | num = 33 | first = Emma | last = Meesseman | pos = F | ft = 6 | in = 4 | lbs = 191 | DOB = 1993-05-13 | yrs = 6 | from = Belgium | nat = BEL}}
{{sports roster/entry | num = 5 | first = Leilani | last = Mitchell | pos = G | ft = 5 | in = 5 | lbs = 138 | DOB = 1985-06-15 | yrs = 11 | from = Utah | nat = USA}}
{{sports roster/entry | num = 23 | first = Aerial | last = Powers | pos = F/G | ft = 5 | in = 9 | lbs = 159 | DOB = 1994-07-17 | yrs = 4 | college = Michigan State | nat = USA}}
{{sports roster/entry | num = 30 | first = LaToya | last = Sanders | pos = F/C | ft = 6 | in = 2 | lbs = 170 | DOB = 1986-09-11 | yrs = 7 | college = North Carolina | nat = USA}}
{{sports roster/entry | num = | first = Sug | last = Sutton | pos = G | ft = 5 | in = 8 | lbs = 130 | DOB = 1998-12-17 | yrs = R | college = Texas | nat = USA}}
<!--  end list of players  -->

| head_coach = 
{{sports roster/entry|nat=USA| first =Mike|last=Thibault|college=[[St. Martin's University|St. Martin's]]}}
| asst_coach = 
{{sports roster/entry|nat=USA| first =Eric|last=Thibault|nolink=1|college=Missouri}}
{{sports roster/entry|nat=USA| first =Ashja|last=Jones|nolink=1|college=Connecticut}}
| ath_train  = 
{{sports roster/entry|nat=USA| first =Chalisa|last=Fonza|nolink=1|college=Western Illinois}}
| str_cond   = 
{{sports roster/entry|last=''Vacant''|nolink=1}}

}}

Since the value for |format= is not specified, it shows the default detailed table view of the roster. Now, the source code for Template:Washington Mystics roster is very simple, since it just transcludes Template:Washington Mystics roster with a different value for |format=

{{Indiana Fever roster|footer|state={{{state|autocollapse}}}}}

Historic rosters[edit]

{{WNBA roster header historic
  | team   =
  | season = 
}}
<!-- list of players -->
{{playerW 
  | num     =  
  | first   = 
  | last    = 
  | pos     = 
  | ft      = 
  | in      = 
  | lbs     = 
  | DOB     = 
  | yrs     =  
  | college = 
  | nat     = 
  | inj     =
  | note    = 
}}
<!-- end list of players -->
{{WNBA roster footer historic
  | head_coach = 
  | asst_coach = 
  | ath_train  = 
  | str_cond   = 
  | team       = 
  | year       = 
  | notes      = 
}}

All-Star rosters[edit]

{{WNBA roster header All-Star
  | team   = 
  | season = 
}}
<!-- list of players -->
{{playerWAS 
  | num     = 
  | first   = 
  | last    = 
  | pos     = 
  | ft      = 
  | in      = 
  | lbs     = 
  | DOB     = 
  | yrs     = 
  | from    = 
  | nat     = 
  | starter = 
  | inj     =
  | note    = 
}}
<!-- end list of players -->
{{WNBA roster footer All-Star
  | head_coach = 
  | asst_coach = 
  | ath_train  = 
  | notes      =
}}

Parameters[edit]

Headers[edit]

Description Current roster
{{Sports roster}}
Historic rosters
{{WNBA roster header historic}}
All-Star rosters
{{WNBA roster header All-Star}}
team The city and team name for the roster. This information will be placed in the header and will also color the table with the team colors. The city and team name for the roster. This information will be placed in the header and will also color the table with the team colors. Enter "Eastern Conference All-Stars" or "Western Conference All-Stars". This information will be placed in the header and will also color the table with the conference colors.
season Not used The four digit year of the historic roster. The four digit year of the All-Star roster.
template_name The name of the template that is being transcluded without the "template" name space. This is used for the links. Not used Not used

Players[edit]

Descriptions in bold are required while those in italics are optional.
Description Current roster
{{playerW}}
Historic rosters
{{player2}}
All-Star rosters
{{playerWAS}}
num The number on player's uniform. The number on player's uniform. The number on player's uniform.
first
last
The player's first and last name. Values are separated for sorting the table. The player's first and last name. Values are separated for sorting the table. The player's first and last name. Values are separated for sorting the table.
dab e.g. "basketball" if the title of the player's bio ends with "...(basketball)" e.g. "basketball" if the title of the player's bio ends with "...(basketball)" e.g. "basketball" if the title of the player's bio ends with "...(basketball)"
name Chinese names, for example, should use this parameter only.
e.g. "name = Chen Xiaojia"
Chinese names, for example, should use this parameter only.
e.g. "name = Chen Xiaojia"
Chinese names, for example, should use this parameter only.
e.g. "name = Chen Xiaojia"
link
alt
use in complex cases instead of the above,
e.g. "link = Mike Conley Jr." and "alt=Conley, Mike Jr." links like this Conley, Mike Jr. as it should

use in complex cases instead of the above,
e.g. "link = Mike Conley Jr." and "alt=Conley, Mike Jr." links like this Conley, Mike Jr. as it should

use in complex cases instead of the above,
e.g. "link = Mike Conley Jr." and "alt=Conley, Mike Jr." links like this Conley, Mike Jr. as it should

pos See basketball positions.
Acceptable values are (PG|G|SG|GF|SF|F|PF|FC|C).
Column will sort in this order.
See basketball positions.
Acceptable values are (PG|G|SG|GF|SF|F|PF|FC|C).
Column will sort in this order.
See basketball positions.
Acceptable values are (PG|G|SG|GF|SF|F|PF|FC|C).
Column will sort in this order.
ft
in
The player's height. Template will convert this to the metric system.
Feet and inches are separated so that 6'10-11" players will sort properly in relation to 6'2" players.
The player's height. Template will convert this to the metric system.
Feet and inches are separated so that 6'10-11" players will sort properly in relation to 6'2" players.
The player's height. Template will convert this to the metric system.
Feet and inches are separated so that 6'10-11" players will sort properly in relation to 6'2" players.
lbs The player's weight. Template will convert this to the metric system. The player's weight. Template will convert this to the metric system. The player's weight. Template will convert this to the metric system.
DOB The date of birth for the player.
Use {{Birth date and age}}
The date of birth for the player.
Use {{birth date and age2}} where the specified date is the start of the regular season.
The date of birth for the player.
Use {{birth date and age2}} where the specified date is the date of the All-Star game.
yrs The number of years the player has played in the WNBA. If this is the player's first season value should be "R". Not used. The ordinal number of WNBA All-Star appearances by the player.
e.g. 1st, 2nd, 3rd ...

Footers[edit]

Examples[edit]

Current roster[edit]

Historic rosters[edit]

All-Star rosters[edit]