Template talk:Basketball team player
This template is used to display a basketball team in a standard format.
Syntax
[edit]Most teams are split into two vertical columns. For these, you can use the {{Basketball team start}}, {{Basketball team mid}} and {{Basketball team end}} templates to help with the layouting, and then use this template repeatedly within them:
{{Basketball team start}} <!-- For help using the below template, please see [[Template talk:Basketball team player]] --> {{Basketball team player|no=#SHIRT_NUMBER|nat=#NATIONALITY|pos=#POS_OR_ROLE|year=#YRS_IN_LEAGUE or YR_IN_SCHOOL|name=#PLAYER_NAME}} {{Basketball team player|no=#SHIRT_NUMBER|nat=#NATIONALITY|pos=#POS_OR_ROLE|pos2=#POS_OR_ROLE|year=#YRS_IN_LEAGUE or YR_IN_SCHOOL|name=#PLAYER_NAME|}} ... {{Basketball team mid}} {{Basketball team player|no=#SHIRT_NUMBER|nat=#NATIONALITY|pos=#POS_OR_ROLE||year=#YRS_IN_LEAGUE or YR_IN_SCHOOL|name=#PLAYER_NAME}} ... {{Basketball team end}}
Alternatively, if you just want a single column, you can use {{Basketball team blank column}} to fill in a blank right hand column.
{{Basketball team start}} {{Basketball team player|no=#SHIRT_NUMBER|nat=#NATIONALITY|pos=#POS_OR_ROLE||year=#YRS_IN_LEAGUE or YR_IN_SCHOOL|name=#PLAYER_NAME}} ... {{Basketball team blank column}} {{Basketball team end}}
Alternative template names
[edit]In order to make easier the work of writing new squads, some alternative, shorter, names has been designed. So, you may now use {{Bt start}}, {{Bt mid}}, {{Bt player}}, {{Bt end}} and {{Bt blank column}} as alternative templates, using the same equivalent syntax of the other ones.
Example
[edit]For example, the following code:
{{Basketball team start}} {{Basketball team player | no=3 | nat=United States | pos=PG | year=10 | name=[[Allen Iverson]]}} {{Basketball team player | no=3 | nat=United States | pos=SG | year=1 | name=[[Dwyane Wade]]}} {{Basketball team player | no=14 | nat=United States | pos=SF | pos2=PF | year=1 | name=[[LeBron James]]}} {{Basketball team mid}} {{Basketball team player | no=23 | nat=United States | pos=PF | pos2=C | year=1 | name=[[Pau Gasol]]}} {{Basketball team player | no=24 | nat=United States | pos=C | year=1 | name=[[Shaquille O'Neal]]}} {{Basketball team player | no=26 | nat=United States| pos=SF | year=1 | name=[[Vince Carter]] {{Basketball team end}}
Produces this table:
Note: Flags indicate national team eligibility at FIBA sanctioned events. Players may hold other non-FIBA nationality not displayed.
|
|
...and the following code:
{{Basketball team start}} {{Basketball team player | no=3 | nat=United States | pos=PG | year=10 | name=[[Allen Iverson]]}} {{Basketball team player | no=3 | nat=United States | pos=SG | year=1 | name=[[Dwyane Wade]]}} {{Basketball team player | no=14 | nat=United States | pos=SF | pos2=PF | year=1 | name=[[LeBron James]]}} {{Basketball team blank column}} {{Basketball team end}}
Produces this table:
Note: Flags indicate national team eligibility at FIBA sanctioned events. Players may hold other non-FIBA nationality not displayed.
|
|
Parameters
[edit]- no: The shirt number for the player, if they have one. If the player's number is not known, or unassigned, then you can use the
–
character instead. - nat: The player's nationality. Use the name of the country, or its 3-letter IOC country code, rather than an adjective (e.g. "Spain" instead of "Spanish"). This is usually the country of the player's birth; however, if a player has dual nationality then use the country that he represents in international basketball.
- pos: The position in which the player plays. You can use any of the five options below:
- C for Center;
- PF for Power forward;
- SF for Small forward;
- SG for Shooting guard;
- PG for Point guard;
- pos2: The secondary position in which the player plays (optional).
- year: The player's years in the league or year in school.
- name: The player's name.