Template:Cricketsquad-start

From blackwiki
Jump to navigation Jump to search


50px Template documentation[view] [edit] [history] [purge]

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

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

Required parameters

  • 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

  • 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

Single squad listing

{{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
23x15px New Zealand 23x15px South Africa
Player 1 Player 2
Player 1 Player 2
  Player 2


Two squads

{{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
23x15px Bangladesh 23x15px India23x15px Bangladesh 23x15px 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

{{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
23x15px Australia 23x15px England23x15px Australia 23x15px England23x15px Australia 23x15px 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