Jump to content

Template:Infobox cricketer: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
add functionality to include medal templates
 
(19 intermediate revisions by 8 users not shown)
Line 3: Line 3:
| bodyclass = vcard
| bodyclass = vcard
| bodystyle = width: 25em
| bodystyle = width: 25em
| headerstyle = {{#ifeq:{{{embed|{{{child|}}}}}}|yes|background-color: lavender|background-color: #b0c4de}}
| headerstyle = color: #202122;{{#ifeq:{{{embed|{{{child|}}}}}}|yes|background-color: lavender|background-color: #b0c4de}}
| titlestyle = font-size: 125%
| titlestyle = font-size: 125%


Line 11: Line 11:
|{{br separated entries
|{{br separated entries
|1={{#if:{{{honorific prefix|{{{honorific_prefix|{{{honorific-prefix|}}}}}}}}}|<span class="honorific-prefix" style="font-size: 77%; font-weight: normal;">{{{honorific prefix|{{{honorific_prefix|{{{honorific-prefix}}}}}}}}}</span>}}
|1={{#if:{{{honorific prefix|{{{honorific_prefix|{{{honorific-prefix|}}}}}}}}}|<span class="honorific-prefix" style="font-size: 77%; font-weight: normal;">{{{honorific prefix|{{{honorific_prefix|{{{honorific-prefix}}}}}}}}}</span>}}
|2=<span class="fn">{{#switch:{{{player name|{{{playername|{{{name|?}}}}}}}}}
|2=<div class="fn" style="display: inline;">{{#switch:{{{player name|{{{playername|{{{name|?}}}}}}}}}
| ? =
| ? =
| = {{PAGENAMEBASE}}
| = {{PAGENAMEBASE}}
| #default = {{{player name|{{{playername|{{{name}}}}}}}}}
| #default = {{{player name|{{{playername|{{{name}}}}}}}}}
}}</span>
}}</div>
|3={{#if:{{{honorific suffix|{{{honorific_suffix|{{{honorific-suffix|}}}}}}}}}|<span class="honorific-suffix" style="font-size: 77%; font-weight: normal;">{{{honorific suffix|{{{honorific_suffix|{{{honorific-suffix}}}}}}}}}</span>}}
|3={{#if:{{{honorific suffix|{{{honorific_suffix|{{{honorific-suffix|}}}}}}}}}|<span class="honorific-suffix" style="font-size: 77%; font-weight: normal;">{{{honorific suffix|{{{honorific_suffix|{{{honorific-suffix}}}}}}}}}</span>}}
}}
}}
}}
}}


| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{#ifeq:{{{embed|{{{child|}}}}}}|yes||{{#invoke:Wikidata|claim|P18}}}}}}}|size={{{image_size|{{{imagesize|}}}}}}|sizedefault=frameless|upright=1.2|alt={{{alt|}}}|suppressplaceholder=yes}}
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{#ifeq:{{{embed|{{{child|}}}}}}|yes||{{#invoke:Wikidata|claim|P18}}}}}}}|size={{#ifeq:{{lc:{{{landscape|}}}}}|yes|{{min|300|{{#if:{{#ifexpr:{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}|300|{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}}}x200px|{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}|suppressplaceholder=yes}}


| caption = {{{caption|{{#invoke:Wikidata |getImageLegend|FETCH_WIKIDATA}}}}}
| caption = {{{image caption|{{{caption|{{{image_caption|{{#invoke:Wikidata |getImageLegend|FETCH_WIKIDATA}}}}}}}}}}}


| header1 = {{#if:{{{full_name|}}}{{{fullname|}}}{{{birth_date|}}}{{{birth_place|}}}{{{death_date|}}}{{{death_place|}}}{{{nickname|}}}{{{height|}}}{{{heightft|}}}{{{heightcm|}}}{{{heightm|}}}{{{family|}}}{{{website|}}}|Personal information|{{#if:{{{batting|}}}{{{bowling|}}}{{{role|}}}{{#ifeq:{{{embed|{{{child|}}}}}}|yes|1}}|Cricket information}}}}
| header1 = {{#if:{{{full_name|}}}{{{fullname|}}}{{{birth_date|}}}{{{birth_place|}}}{{{death_date|}}}{{{death_place|}}}{{{nickname|}}}{{{height|}}}{{{heightft|}}}{{{heightcm|}}}{{{heightm|}}}{{{family|}}}{{{website|}}}|Personal information|{{#if:{{{batting|}}}{{{bowling|}}}{{{role|}}}{{#ifeq:{{{embed|{{{child|}}}}}}|yes|1}}|Cricket information}}}}


| label2 = Full name
| label2 = Full&nbsp;name
| class2 = nickname
| class2 = nickname
| data2 = {{#if:{{{full_name|{{{fullname|}}}}}}|<span class="fn">{{{full_name|{{{fullname|}}}}}}</span>}}
| data2 = {{#if:{{{full_name|{{{fullname|}}}}}}|<div class="fn">{{{full_name|{{{fullname|}}}}}}</div>}}


| label3 = Born
| label3 = Born
Line 75: Line 75:
| International information
| International information
{{infobox|child=yes
{{infobox|child=yes
| label1 = National side
| label1 = National side{{#if:{{{country|}}}|{{#if:{{{country2|}}}|s}}}}
| data1 = {{#if:{{{country|}}}{{{country2|}}}{{{country3|}}}
| data1 = {{#if:{{{country|}}}{{{country2|}}}{{{country3|}}}
|{{unbulleted list
|{{unbulleted list
Line 84: Line 84:


| label2 = {{#if:{{{onetest|}}}
| label2 = {{#if:{{{onetest|}}}
|Only Test
|Only Test {{#if:{{{testcap|}}}|(cap&nbsp;[[List of {{{country}}} {{#if:{{{female|}}}|women Test|Test}} cricketers|{{{testcap}}}]])}}
|Test debut
|Test debut {{#if:{{{testcap|}}}|(cap&nbsp;[[List of {{{country}}} {{#if:{{{female|}}}|women Test|Test}} cricketers|{{{testcap}}}]]{{#if:{{{testcap2|}}} |/[[List of {{{country2}}} {{#if:{{{female|}}}|women Test|Test}} cricketers|{{{testcap2}}}]]}})}}
}}{{#if:{{{testcap|}}}{{{testcap2|}}}
}}
|{{sp}}(cap&nbsp;{{#if:{{{testcap|}}}|[[List of {{{country}}} {{#if:{{{female|}}}|women Test|Test}} cricketers|{{{testcap}}}]]}}{{#if:{{{testcap2|}}}|{{#if:{{{testcap|}}} |/}}[[List of {{{country2}}} {{#if:{{{female|}}}|women Test|Test}} cricketers|{{{testcap2}}}]]}})
}}
| data2 = {{#if:{{{testdebutagainst|}}}
| data2 = {{#if:{{{testdebutagainst|}}}
|{{{testdebutdate}}} {{{testdebutyear}}}&nbsp;{{#if:{{{country2|}}}|<br>{{{testdebutfor}}}&nbsp;}}v&nbsp;{{infobox cricketer/national side|country={{{testdebutagainst|}}}|female={{{female|}}}}}
|{{{testdebutdate}}} {{{testdebutyear}}}&nbsp;{{#if:{{{country2|}}}|<br>{{{testdebutfor}}}&nbsp;}}v&nbsp;{{infobox cricketer/national side|country={{{testdebutagainst|}}}|female={{{female|}}}}}
Line 100: Line 102:


| label4 = {{#if:{{{oneodi|}}}
| label4 = {{#if:{{{oneodi|}}}
|Only ODI
|Only ODI {{#if:{{{odicap|}}}|(cap&nbsp;[[List of {{{country}}} {{#if:{{{female|}}}|women ODI|ODI}} cricketers|{{{odicap}}}]])}}
|ODI debut
|ODI debut {{#if:{{{odicap|}}}|(cap&nbsp;[[List of {{{country}}} {{#if:{{{female|}}}|women ODI|ODI}} cricketers|{{{odicap}}}]]{{#if:{{{odicap2|}}} |/[[List of {{{country2}}} {{#if:{{{female|}}}|women ODI|ODI}} cricketers|{{{odicap2}}}]]}})}}
}}{{#if:{{{odicap|}}}{{{odicap2|}}}
}}
|{{sp}}(cap&nbsp;{{#if:{{{odicap|}}}|[[List of {{{country}}} {{#if:{{{female|}}}|women ODI|ODI}} cricketers|{{{odicap}}}]]}}{{#if:{{{odicap2|}}}|{{#if:{{{odicap|}}} |/}}[[List of {{{country2}}} {{#if:{{{female|}}}|women ODI|ODI}} cricketers|{{{odicap2}}}]]}})
}}


| data4 = {{#if:{{{odidebutagainst|}}}
| data4 = {{#if:{{{odidebutagainst|}}}
Line 120: Line 124:


| label7 = {{#if:{{{oneT20I|}}}
| label7 = {{#if:{{{oneT20I|}}}
|Only T20I
|Only T20I {{#if:{{{T20Icap|}}}|(cap&nbsp;[[List of {{{country}}} {{#if:{{{female|}}}|women Twenty20|Twenty20}} International cricketers|{{{T20Icap}}}]])}}
|T20I debut
|T20I debut {{#if:{{{T20Icap|}}}|(cap&nbsp;[[List of {{{country}}} {{#if:{{{female|}}}|women Twenty20|Twenty20}} International cricketers|{{{T20Icap}}}]]{{#if:{{{T20Icap2|}}} |/[[List of {{{country2}}} {{#if:{{{female|}}}|women Twenty20|Twenty20}} International cricketers|{{{T20Icap2}}}]]}})}}
}}{{#if:{{{T20Icap|}}}{{{T20Icap2|}}}
}}
|{{sp}}(cap&nbsp;{{#if:{{{T20Icap|}}}|[[List of {{{country}}} {{#if:{{{female|}}}|women Twenty20|Twenty20}} International cricketers|{{{T20Icap}}}]]}}{{#if:{{{T20Icap2|}}}|{{#if:{{{T20Icap|}}} |/}}[[List of {{{country2}}} {{#if:{{{female|}}}|women Twenty20|Twenty20}} International cricketers|{{{T20Icap2}}}]]}})
}}


| data7 = {{#if:{{{T20Idebutagainst|}}}
| data7 = {{#if:{{{T20Idebutagainst|}}}
Line 256: Line 262:
| data4 = {{#if:{{{wtestsumpired|}}}|{{{wtestsumpired}}} {{#if:{{{umpwtestdebutyr|}}}|({{{umpwtestdebutyr}}}{{#if:{{{umpwtestlastyr|}}}|–{{{umpwtestlastyr}}}}})}} }}
| data4 = {{#if:{{{wtestsumpired|}}}|{{{wtestsumpired}}} {{#if:{{{umpwtestdebutyr|}}}|({{{umpwtestdebutyr}}}{{#if:{{{umpwtestlastyr|}}}|–{{{umpwtestlastyr}}}}})}} }}


| label5 = [[Women's One Day International cricket|WODIs]]&nbsp;umpired
| label5 = [[Women's One Day International|WODIs]]&nbsp;umpired
| data5 = {{#if:{{{wodisumpired|}}}|{{{wodisumpired}}} {{#if:{{{umpwodidebutyr|}}}|({{{umpwodidebutyr}}}{{#if:{{{umpwodilastyr|}}}|–{{{umpwodilastyr}}}}})}} }}
| data5 = {{#if:{{{wodisumpired|}}}|{{{wodisumpired}}} {{#if:{{{umpwodidebutyr|}}}|({{{umpwodidebutyr}}}{{#if:{{{umpwodilastyr|}}}|–{{{umpwodilastyr}}}}})}} }}


Line 272: Line 278:
}}
}}
}}
}}

| header26 = {{#if:{{{coachclub1|}}}
| Head coaching information
<tr style="line-height: 9pt">
<th scope="col">Years</th><th scope="col">Team</th></tr> {{infobox|child=yes
| labelstyle = font-weight:normal; padding-right:3em
| label1 = {{#if:{{{coachyear1|}}}|{{{coachyear1}}}|<nowiki />}}
| data1 = {{#if:{{{coachclub1|}}}|{{{coachclub1}}}}}

| label2 = {{#if:{{{coachyear2|}}}|{{{coachyear2}}}|<nowiki />}}
| data2 = {{#if:{{{coachclub2|}}}|{{{coachclub2}}}}}

| label3 = {{#if:{{{coachyear3|}}}|{{{coachyear3}}}|<nowiki />}}
| data3 = {{#if:{{{coachclub3|}}}|{{{coachclub3}}}}}

| label4 = {{#if:{{{coachyear4|}}}|{{{coachyear4}}}|<nowiki />}}
| data4 = {{#if:{{{coachclub4|}}}|{{{coachclub4}}}}}

| label5 = {{#if:{{{coachyear5|}}}|{{{coachyear5}}}|<nowiki />}}
| data5 = {{#if:{{{coachclub5|}}}|{{{coachclub5}}}}}

| label6 = {{#if:{{{coachyear6|}}}|{{{coachyear6}}}|<nowiki />}}
| data6 = {{#if:{{{coachclub6|}}}|{{{coachclub6}}}}}

| label7 = {{#if:{{{coachyear7|}}}|{{{coachyear7}}}|<nowiki />}}
| data7 = {{#if:{{{coachclub7|}}}|{{{coachclub7}}}}}

| label8 = {{#if:{{{coachyear8|}}}|{{{coachyear8}}}|<nowiki />}}
| data8 = {{#if:{{{coachclub8|}}}|{{{coachclub8}}}}}

| label9 = {{#if:{{{coachyear9|}}}|{{{coachyear9}}}|<nowiki />}}
| data9 = {{#if:{{{coachclub9|}}}|{{{coachclub9}}}}}

| label10 = {{#if:{{{coachyear10|}}}|{{{coachyear10}}}|<nowiki />}}
| data10 = {{#if:{{{coachclub10|}}}|{{{coachclub10}}}}} }}
}}


| header30 = {{infobox cricketer/career
| header30 = {{infobox cricketer/career
Line 357: Line 400:
}}}}{{#ifeq:{{{embed|{{{child|}}}}}}|yes|{{#if:{{{headerstyle|}}}|[[Category:Pages using infobox cricketer with a custom headerstyle]]
}}}}{{#ifeq:{{{embed|{{{child|}}}}}}|yes|{{#if:{{{headerstyle|}}}|[[Category:Pages using infobox cricketer with a custom headerstyle]]
}}}}{{#if:{{{source|}}}|{{#ifeq:{{Str left|{{{source}}}|4}}|http||{{#ifeq:{{Str left|{{{source}}}|1}}|[||[[Category:Infobox cricketer maintenance]]
}}}}{{#if:{{{source|}}}|{{#ifeq:{{Str left|{{{source}}}|4}}|http||{{#ifeq:{{Str left|{{{source}}}|1}}|[||[[Category:Infobox cricketer maintenance]]
}}}}}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox cricketer with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox cricketer]] with unknown parameter "_VALUE_"|ignoreblank=y| 100s/50s1 | 100s/50s2 | 100s/50s3 | 100s/50s4 | alt | bat avg1 | bat avg2 | bat avg3 | bat avg4 | batting | best bowling1 | best bowling2 | best bowling3 | best bowling4 | birth_date | birth_place | bowl avg1 | bowl avg2 | bowl avg3 | bowl avg4 | bowling | caption | catches/stumpings1 | catches/stumpings2 | catches/stumpings3 | catches/stumpings4 | child | club1 | club10 | club11 | club12 | club13 | club14 | club15 | club16 | club17 | club2 | club3 | club4 | club5 | club6 | club7 | club8 | club9 | clubnumber1 | clubnumber10 | clubnumber11 | clubnumber12 | clubnumber13 | clubnumber14 | clubnumber15 | clubnumber16 | clubnumber17 | clubnumber2 | clubnumber3 | clubnumber4 | clubnumber5 | clubnumber6 | clubnumber7 | clubnumber8 | clubnumber9 | column1 | column2 | column3 | column4 | columns | country | country2 | country3 | date | death_date | death_place | debutagainst1 | debutagainst2 | debutdate1 | debutdate2 | debutfor1 | debutfor2 | debutyear1 | debutyear2 | deliveries1 | deliveries2 | deliveries3 | deliveries4 | embed | family | fcumpired | female | fivefor1 | fivefor2 | fivefor3 | fivefor4 | full_name | fullname | headerstyle | height | heightcm | heightft | heightinch | heightm | hidedeliveries | honorific prefix | honorific suffix | honorific_prefix | honorific_suffix | honorific-prefix | honorific-suffix | image | image_size | imagesize | international | internationalspan | internationalspan2 | internationalspan3 | lastagainst1 | lastagainst2 | lastdate1 | lastdate2 | lastfor1 | lastfor2 | lastodiagainst | lastodidate | lastodifor | lastodiyear | lastT20Iagainst | lastT20Idate | lastT20Ifor | lastT20Iyear | lasttestagainst | lasttestdate | lasttestfor | lasttestyear | lastyear1 | lastyear2 | listaumpired | matches1 | matches2 | matches3 | matches4 | misc | module | name | nickname | odicap | odicap2 | odidebutagainst | odidebutdate | odidebutfor | odidebutyear | odishirt | odisumpired | office | office1 | office2 | oneodi | oneT20I | onetest | onetype1 | onetype2 | party | player name | playername | predecessor | predecessor1 | predecessor2 | role | runs1 | runs2 | runs3 | runs4 | source | successor | successor1 | successor2 | T20Icap | T20Icap2 | T20Idebutagainst | T20Idebutdate | T20Idebutfor | T20Idebutyear | T20Ishirt | t20isumpired | t20umpired | tenfor1 | tenfor2 | tenfor3 | tenfor4 | term_end | term_end1 | term_end2 | term_start | term_start1 | term_start2 | testcap | testcap2 | testdebutagainst | testdebutdate | testdebutfor | testdebutyear | testsumpired | top score1 | top score2 | top score3 | top score4 | type1 | type2 | umpfcdebutyr | umpfclastyr | umpire | umplistadebutyr | umplistalastyr | umpodidebutyr | umpodilastyr | umpt20debutyr | umpt20idebutyr | umpt20ilastyr | umpt20lastyr | umptestdebutyr | umptestlastyr | umpwodidebutyr | umpwodilastyr | umpwt20idebutyr | umpwt20ilastyr | umpwtestdebutyr | umpwtestlastyr | website | wickets1 | wickets2 | wickets3 | wickets4 | wodisumpired | wt20isumpired | wtestsumpired | year | year1 | year10 | year11 | year12 | year13 | year14 | year15 | year16 | year17 | year2 | year3 | year4 | year5 | year6 | year7 | year8 | year9 }}<noinclude>{{documentation}}<!-- Add categories to the /doc subpage, not here! --></noinclude>
}}}}}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox cricketer with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox cricketer]] with unknown parameter "_VALUE_"|ignoreblank=y| 100s/50s1 | 100s/50s2 | 100s/50s3 | 100s/50s4 | alt | bat avg1 | bat avg2 | bat avg3 | bat avg4 | batting | best bowling1 | best bowling2 | best bowling3 | best bowling4 | birth_date | birth_place | bowl avg1 | bowl avg2 | bowl avg3 | bowl avg4 | bowling | caption | catches/stumpings1 | catches/stumpings2 | catches/stumpings3 | catches/stumpings4 | child | club1 | club10 | club11 | club12 | club13 | club14 | club15 | club16 | club17 | club2 | club3 | club4 | club5 | club6 | club7 | club8 | club9 | clubnumber1 | clubnumber10 | clubnumber11 | clubnumber12 | clubnumber13 | clubnumber14 | clubnumber15 | clubnumber16 | clubnumber17 | clubnumber2 | clubnumber3 | clubnumber4 | clubnumber5 | clubnumber6 | clubnumber7 | clubnumber8 | clubnumber9 | coachclub1 | coachclub10 | coachclub2 | coachclub3 | coachclub4 | coachclub5 | coachclub6 | coachclub7 | coachclub8 | coachclub9 | coachyear1 | coachyear10 | coachyear2 | coachyear3 | coachyear4 | coachyear5 | coachyear6 | coachyear7 | coachyear8 | coachyear9 | column1 | column2 | column3 | column4 | columns | country | country2 | country3 | date | death_date | death_place | debutagainst1 | debutagainst2 | debutdate1 | debutdate2 | debutfor1 | debutfor2 | debutyear1 | debutyear2 | deliveries1 | deliveries2 | deliveries3 | deliveries4 | embed | family | fcumpired | female | fivefor1 | fivefor2 | fivefor3 | fivefor4 | full_name | fullname | headerstyle | height | heightcm | heightft | heightinch | heightm | hidedeliveries | honorific prefix | honorific suffix | honorific_prefix | honorific_suffix | honorific-prefix | honorific-suffix | image | image caption | image size | image_caption | image_size | image_upright | imagesize | landscape | international | internationalspan | internationalspan2 | internationalspan3 | lastagainst1 | lastagainst2 | lastdate1 | lastdate2 | lastfor1 | lastfor2 | lastodiagainst | lastodidate | lastodifor | lastodiyear | lastT20Iagainst | lastT20Idate | lastT20Ifor | lastT20Iyear | lasttestagainst | lasttestdate | lasttestfor | lasttestyear | lastyear1 | lastyear2 | listaumpired | matches1 | matches2 | matches3 | matches4 | misc | module | name | nickname | odicap | odicap2 | odidebutagainst | odidebutdate | odidebutfor | odidebutyear | odishirt | odisumpired | office | office1 | office2 | oneodi | oneT20I | onetest | onetype1 | onetype2 | party | player name | playername | predecessor | predecessor1 | predecessor2 | role | runs1 | runs2 | runs3 | runs4 | source | successor | successor1 | successor2 | T20Icap | T20Icap2 | T20Idebutagainst | T20Idebutdate | T20Idebutfor | T20Idebutyear | T20Ishirt | t20isumpired | t20umpired | tenfor1 | tenfor2 | tenfor3 | tenfor4 | term_end | term_end1 | term_end2 | term_start | term_start1 | term_start2 | testcap | testcap2 | testdebutagainst | testdebutdate | testdebutfor | testdebutyear | testsumpired | top score1 | top score2 | top score3 | top score4 | type1 | type2 | umpfcdebutyr | umpfclastyr | umpire | umplistadebutyr | umplistalastyr | umpodidebutyr | umpodilastyr | umpt20debutyr | umpt20idebutyr | umpt20ilastyr | umpt20lastyr | umptestdebutyr | umptestlastyr | umpwodidebutyr | umpwodilastyr | umpwt20idebutyr | umpwt20ilastyr | umpwtestdebutyr | umpwtestlastyr | website | wickets1 | wickets2 | wickets3 | wickets4 | wodisumpired | wt20isumpired | wtestsumpired | year | year1 | year10 | year11 | year12 | year13 | year14 | year15 | year16 | year17 | year2 | year3 | year4 | year5 | year6 | year7 | year8 | year9 | medaltemplates }}<noinclude>{{documentation}}<!-- Add categories to the /doc subpage, not here! --></noinclude>

Latest revision as of 20:19, 15 June 2024