Template:Sq start

From Rigged Wiki
Jump to navigation Jump to search
No. Position Player

Usage

This template is used to display a squad in a standard format. This is a small format for a team's main page, with the full roster to be shown on a separate page. This shows the 'bare bones' information, i.e. squad number, position and player name.

Most squads are split into two vertical columns. For these, you can use the {{sq start}}, {{sq mid}} and {{sq end}} templates to help with the layouting, and then use this template repeatedly within them:

{{sq start}}
{{sq player|bg=STATUS|no=#SHIRT_NUMBER|pos=#POS_OR_ROLE|name=#PLAYER_NAME}}
{{sq player|bg=STATUS|no=#SHIRT_NUMBER|pos=#POS_OR_ROLE|name=#PLAYER_NAME|other=#OTHER_RELATED_INFO}}
...
{{sq mid}}
{{sq player|bg=STATUS|no=#SHIRT_NUMBER|pos=#POS_OR_ROLE|name=#PLAYER_NAME}}
...
{{sq end}}

Example

For example, the following code:

{{sq start}}
{{sq player |no=1  |pos=GK |name=EVA-01 }}
{{sq player |no=2  |pos=CB |name=Mazinger Z }}
{{sq player |no=3  |pos=RWF |name=Alteisen |other=Captain  }}
{{sq mid}}
{{sq player |no=20 |pos=CMF |name=Strike Freedom }}
{{sq player |no=26 |pos=DMF |name=Megas XLR }}
{{sq player |no=31 |pos=RMF |name=Daizengar }}
{{sq end}}

Produces this table:

No. Position Player
1
  GK
EVA-01
2
  CB
Mazinger Z
3
  RWF
Alteisen (Captain)
No. Position Player
20
  CMF
Strike Freedom
26
  DMF
Megas XLR
31
  RMF
Daizengar

Parameters

  • bg: For sq start and mid only, the background color of the headers, default is #EEE gray
  • fg: For sq start and mid only, the text color of the headers, default is black
  • 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.
  • pos: The position in which the player plays. You can use any of the options below:
    1. GK Goalkeeper;
    2. CB for Centre Back;
    3. RB for Right Back;
    4. LB for Left Back;
    5. SW for Sweeper;
    6. DMF for Defensive Midfielder;
    7. CMF for Centre Midfielder;
    8. RMF for Right Midfielder;
    9. LMF for Left Midfielder;
    10. AMF for Attacking Midfielder;
    11. RWF for Right-Wing Forward;
    12. LWF for Left-Wing Forward;
    13. SS for Second Striker;
    14. CF for Centre Forward.
  • name: The player's name. Simple enough.
  • other: This is an optional parameter. You can add any related info to this parameter, like specifying captain, vice-captain, whether the player is on loan, etc. It will show additional info in the brackets after the player name. You do not have to specify it if neither applies.

Special Players ({{sq player}})

For gold, silver or bronze players, within {{sq player}}, bg=gold, bg=silver, bg=bronze can be used respectively to indicate whether the player is a medal or not.

For players in the starting lineup that are not bronze, silver or gold, set bg to bg=start in {{sq player}}.

Entering:

{{sq start}}
{{sq player |no=1  |pos=GK |name=EVA-01 }}
{{sq player |bg=start |no=2  |pos=DMF |name=Mazinger Z }}
{{sq player |bg=gold |no=3  |pos=RWF |name=Alteisen |other=Captain  }}
{{sq mid|bg=red|fg=#e2f1bb}}
{{sq player |bg=bronze |no=20 |pos=CMF |name=Strike Freedom }}
{{sq player |bg=silver |no=26 |pos=DMF |name=Megas XLR }}
{{sq player |bg=bronze |no=31 |pos=RMF |name=Daizengar }}
{{sq end}}

Produces:

No. Position Player
1
  GK
EVA-01
2
  DMF
Mazinger Z
3
  RWF
Alteisen (Captain)
No. Position Player
20
  CMF
Strike Freedom
26
  DMF
Megas XLR
31
  RMF
Daizengar