Jump to content

Template:Infobox cricketer: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Reverting edit(s) by Neveselbert (talk) to rev. 1066964386 by Ianblair23: Reverting good faith edits (RW 16.1)
 
(7 intermediate revisions by 2 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|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}}}}
Line 28: Line 28:
| label2 = Full&nbsp;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 400: 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 | 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_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 | medaltemplates }}<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