Jump to content

Template:Cricketsquad-start/doc

From Wikipedia, the free encyclopedia

This template is one of three designed to standardise the presentation of cricket squads on pages. It provides the header, while {{Cricketsquad-row}} creates the individual rows of the squad lists and {{Cricketsquad-end}} finishes the list.

Usage

[edit]
All parameters
{{Cricketsquad-start
| width  =
| squad1 = 
| squad2 =
| squad3 =
| team1  =
| team2  =
}}

Required parameters

[edit]
  • squad1 is the title of the first squad (e.g., 'Test squads').
  • team1 is the first team in the squad listings.
  • team2 is the second team in the squad listings.

Optional parameters

[edit]
  • width is the width of the complete squad listing. Can be a proportional amount (e.g., 80%) or an absolute amount (e.g., 400px). Proportional widths are highly recommended (if any width is given) as they scale better. If left out, the browser is left to decide how wide the squad list should be.
  • squad2 is the title of the second squad (e.g., 'ODI squads').
  • squad3 is the title of the third squad (e.g., 'T20I squads').

Examples

[edit]

Single squad listing

[edit]
{{Cricketsquad-start|squad1=Test squads|team1={{cr|NZL}}|team2={{cr|RSA}}}}
{{Cricketsquad-row|s=1|p1=Player 1|p2=Player 2}}
{{Cricketsquad-row|s=1|p1=Player 1|p2=Player 2}}
{{Cricketsquad-row|s=1|p2=Player 2}}
{{Cricketsquad-end}}
Test squads
 New Zealand  South Africa
Player 1 Player 2
Player 1 Player 2
  Player 2


Two squads

[edit]
{{Cricketsquad-start|squad1=Test squads|squad2=ODI squads|team1={{cr|BAN}}|team2={{cr|IND}}}}
{{Cricketsquad-row|s=2|p1=Player 1|p2=Player 2|p3=Player 3|p4=Player 4}}
{{Cricketsquad-row|s=2|p1=Player 1|p2=Player 2|p3=Player 3|p4=Player 4}}
{{Cricketsquad-row|s=2|p1=Player 1|p2=Player 2|p3=Player 3|p4=Player 4}}
{{Cricketsquad-row|s=2|p1=Player 1|p2=Player 2|p3=Player 3|p4=Player 4}}
{{Cricketsquad-row|s=2|p1=Player 1|}}
{{Cricketsquad-end}}
Test squads ODI squads
 Bangladesh  India Bangladesh  India
Player 1 Player 2Player 3 Player 4
Player 1 Player 2Player 3 Player 4
Player 1 Player 2Player 3 Player 4
Player 1 Player 2Player 3 Player 4
Player 1  


Three squads

[edit]
{{Cricketsquad-start|squad1=Test squads|squad2=ODI squads|squad3=T20I squads
|team1={{cr|AUS}}|team2={{cr|ENG}}}}
{{Cricketsquad-row|s=3|p1=Player 1|p2=Player 2|p3=Player 3|p4=Player 4|p5=Player 5|p6=Player 6}}
{{Cricketsquad-row|s=3|p1=Player 1|p2=Player 2|p3=Player 3|p4=Player 4|p5=Player 5|p6=Player 6}}
{{Cricketsquad-row|s=3|p1=Player 1|p2=Player 2|p3=Player 3|p4=Player 4|p5=Player 5|p6=Player 6}}
{{Cricketsquad-row|s=3|p1=Player 1|p2=Player 2|p3=Player 3|p4=Player 4|p5=Player 5|p6=Player 6}}
{{Cricketsquad-row|s=3|p1=Player 1|p2=Player 2|p6=Player 6}}
{{Cricketsquad-end}}
Test squads ODI squads T20I squads
 Australia  England Australia  England Australia  England
Player 1 Player 2Player 3 Player 4Player 5 Player 6
Player 1 Player 2Player 3 Player 4Player 5 Player 6
Player 1 Player 2Player 3 Player 4Player 5 Player 6
Player 1 Player 2Player 3 Player 4Player 5 Player 6
Player 1 Player 2   Player 6