Difference between revisions of "Template:Cricketsquad-start/doc"
Jump to navigation
Jump to search
imported>Sillyfolkboy (add cat) |
imported>Vanisaac m (→Three squads: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other) |
||
| Line 84: | Line 84: | ||
{{Cricketsquad-end}} | {{Cricketsquad-end}} | ||
| − | <includeonly> | + | <includeonly>{{Sandbox other|| |
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | <!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | ||
[[Category:Cricket templates|{{PAGENAME}}]] | [[Category:Cricket templates|{{PAGENAME}}]] | ||
[[Category:Sports squad templates]] | [[Category:Sports squad templates]] | ||
| − | </includeonly> | + | }}</includeonly> |
Latest revision as of 22:15, 24 April 2020
| 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 | |
|---|---|
| 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 | |||
|---|---|---|---|---|
| File:Flag of India.svg 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 | |||||