Template:Cricketsquad-start/doc
< Template:Cricketsquad-start
Jump to navigation
Jump to search
Revision as of 20:01, 8 July 2014 by imported>Sillyfolkboy (add cat)
| 40px | This is a documentation subpage for Template:Cricketsquad-start. It contains usage information, categories and other content that is not part of the original template page. |
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.
Contents
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 India | 23x15px Bangladesh | 23x15px India | |
| Player 1 | Player 2 | Player 3 | Player 4 | |
| Player 1 | Player 2 | Player 3 | Player 4 | |
| Player 1 | Player 2 | Player 3 | Player 4 | |
| Player 1 | Player 2 | Player 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 England | 23x15px Australia | 23x15px England | 23x15px Australia | 23x15px England | ||
| Player 1 | Player 2 | Player 3 | Player 4 | Player 5 | Player 6 | ||
| Player 1 | Player 2 | Player 3 | Player 4 | Player 5 | Player 6 | ||
| Player 1 | Player 2 | Player 3 | Player 4 | Player 5 | Player 6 | ||
| Player 1 | Player 2 | Player 3 | Player 4 | Player 5 | Player 6 | ||
| Player 1 | Player 2 | Player 6 | |||||