Template:Sports roster/doc

sports roster and sports roster/entry are used to generate detailed roster tables and roster navbox footers depending on the value of format. By having a single template generate both formats, the lists of players and coaches in both templates stay in sync, and editors do not need to update the roster in multiple places.

Usage
The main template, sports roster generates a table or navbox with the roster. The entry template, sports roster/entry, is used to generate the rows in the table, or names in the list. The syntax used by sports roster/entry is the same, or similar to, the NBA and WNBA player templates (player2 and playerW.

WNBA usage
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. 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

Default usage
The standard usage is to start by creating a main roster template, which will contain the list of players, coaches, and trainers.