Jump to content

英文维基 | 中文维基 | 日文维基 | 草榴社区

Template talk:Basketball team player

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

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.
No. Position Player
3 United States PG Allen Iverson
3 United States SG Dwyane Wade
14 United States SF/PF LeBron James
No. Position Player
23 United States PF/C Pau Gasol
24 United States C Shaquille O'Neal
26 United States SF Vince Carter

...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.
No. Position Player
3 United States PG Allen Iverson
3 United States SG Dwyane Wade
14 United States SF/PF LeBron James
 

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:
    1. C for Center;
    2. PF for Power forward;
    3. SF for Small forward;
    4. SG for Shooting guard;
    5. 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.