Template:Infobox person: Difference between revisions

[checked revision][checked revision]
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
Line 1: Line 1:
{{#invoke:infobox|infoboxTemplate|child={{{child|{{{embed|}}}}}}  
{{#invoke:infobox|infoboxTemplate|child={{{child|{{{embed|}}}}}}
| bodyclass  = biography vcard
| bodyclass  = biography vcard


Line 5: Line 5:


| subheader    = {{#ifeq:{{lc: {{{child|{{{embed|}}}}}}}}|yes|{{#if:{{{embed_title|}}}|'''{{{embed_title|}}}'''}}}}
| subheader    = {{#ifeq:{{lc: {{{child|{{{embed|}}}}}}}}|yes|{{#if:{{{embed_title|}}}|'''{{{embed_title|}}}'''}}}}
| subheader2  = {{#switch:{{{child|{{{embed|}}}}}}
| subheader2  = {{#switch:{{{child|{{{embed|}}}}}}|yes=<!--empty when this infobox is embedded-->|#default={{#if:{{{native_name|}}}|{{#if:{{{native_name_lang|}}}|<div class="nickname" lang="{{{native_name_lang}}}">}}{{{native_name}}}{{#if:{{{native_name_lang|}}}|</div>}} }} }}
    | yes = <!--empty when this infobox is embedded-->
    | #default = {{#if:{{{native_name|}}}|{{#if:{{{native_name_lang|}}}|<div class="nickname" lang="{{{native_name_lang}}}">}}{{{native_name}}}{{#if:{{{native_name_lang|}}}|</div>}} }}
}}
| subheaderstyle2 = font-size: 125%
| subheaderstyle2 = font-size: 125%


| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{#ifeq:{{lc:{{{landscape|}}}}}|yes|{{min|300|{{#if:{{{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|{{{image_alt|}}}}}}|suppressplaceholder=yes}}
| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|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|{{{image_alt|}}}}}}|suppressplaceholder=yes}}
| caption    = {{{image caption|{{{caption|{{{image_caption|}}}}}}}}}
| caption    = {{{image caption|{{{caption|{{{image_caption|}}}}}}}}}


Line 21: Line 18:
   |1={{#if:{{{birth_name|}}}{{{birthname|}}}|<div style="display:inline" class="nickname">{{{birth_name|{{{birthname|}}}}}}</div>}}
   |1={{#if:{{{birth_name|}}}{{{birthname|}}}|<div style="display:inline" class="nickname">{{{birth_name|{{{birthname|}}}}}}</div>}}
   |2={{#invoke:person date|birth}}
   |2={{#invoke:person date|birth}}
   |3={{#if:{{{birth_place|}}}|<div style="display:inline" class="birthplace">{{{birth_place}}}</div>}}
   |3={{#if:{{{birth_place|}}}|<div style="display:inline" class="birthplace">{{{birth_place|}}}</div>}}
}}
}}


Line 31: Line 28:


| label13    = Status
| label13    = Status
| data13    = {{{status|{{{disappeared_status|}}}}}}  
| data13    = {{{status|{{{disappeared_status|}}}}}}


| label14    = Died
| label14    = Died
| data14    = {{br separated entries
| data14    = {{br separated entries
   |1={{#invoke:person date|death}}
   |1={{#invoke:person date|death}}
   |2={{#if:{{{death_place|}}}|<div style="display:inline" class="deathplace">{{{death_place}}}</div>}}
   |2={{#if:{{{death_place|}}}|<div style="display:inline" class="deathplace">{{{death_place|}}}</div>}}
}}
}}


Line 81: Line 78:


| label29    = Employer{{Pluralize from text|{{{employer|}}}|likely=(s)|plural=s}}
| label29    = Employer{{Pluralize from text|{{{employer|}}}|likely=(s)|plural=s}}
| data29    = {{{employer|}}}{{main other|{{Pluralize from text| {{{employer|}}}|likely={{!}}Category:Pages using infobox person with multiple employers}}}}
| data29    = {{{employer|}}}{{main other|{{Pluralize from text| {{{employer|}}}|likely=[[Category:Pages using infobox person with multiple employers]]}}}}
| class29    = org
| class29    = org


| label30    = {{#if:{{{organisation|}}}|Organisation|Organization}}{{#if:{{{organizations|}}}|s|{{pluralize from text|{{{organization|{{{organisation|}}}}}}|likely=(s)|plural=s}}}}
| label30    = {{#if:{{{organisation|}}}|Organisation|Organization}}{{#if:{{{organizations|}}}|s|{{pluralize from text|{{{organization|{{{organisation|}}}}}}|likely=(s)|plural=s}}}}
| data30    = {{{organisation|{{{organization|{{{organizations|}}}}}}}}}{{main other|{{Pluralize from text|{{{organization|{{{organisation|}}}}}}|likely={{!}}Category:Pages using infobox person with multiple organizations}}}}
| data30    = {{{organisation|{{{organization|{{{organizations|}}}}}}}}}{{main other|{{Pluralize from text|{{{organization|{{{organisation|}}}}}}|likely=[[Category:Pages using infobox person with multiple organizations]]}}}}
| class30    = org
| class30    = org


| label31    = Agent{{Pluralize from text|{{{agent|}}}|likely=(s)|plural=s}}
| label31    = Agent{{Pluralize from text|{{{agent|}}}|likely=(s)|plural=s}}
| data31    = {{{agent|}}}{{main other|{{Pluralize from text|{{{agent|}}}|likely={{!}}Category:Pages using infobox person with multiple agents}}}}
| data31    = {{{agent|}}}{{main other|{{Pluralize from text|{{{agent|}}}|likely=[[Category:Pages using infobox person with multiple agents]]}}}}
| class31    = agent
| class31    = agent


Line 99: Line 96:


| label34    = <span style="white-space:nowrap;">Notable credit{{Pluralize from text|{{{credits|}}}|likely=(s)|plural=s}}</span>
| label34    = <span style="white-space:nowrap;">Notable credit{{Pluralize from text|{{{credits|}}}|likely=(s)|plural=s}}</span>
| data34    = {{#if:{{{works|}}}||{{{credits|}}}{{main other|{{Pluralize from text|{{{credits|}}}|likely={{!}}Category:Pages using infobox person with multiple credits}}}}}}
| data34    = {{#if:{{{works|}}}||<!--
                -->{{{credits|}}}{{main other|{{Pluralize from text|{{{credits|}}}|likely=[[Category:Pages using infobox person with multiple credits]]}}}}}}


| label35    = Label{{Pluralize from text|{{{label_name|}}}|likely=(s)|plural=s}}
| label35    = Label{{Pluralize from text|{{{label_name|}}}|likely=(s)|plural=s}}
| data35    = {{#if:{{{works|}}}{{{credits|}}}||{{{label_name|}}}{{main other|{{Pluralize from text|{{{label_name|}}}|likely={{!}}Category:Pages using infobox person with multiple labels}}}}}}
| data35    = {{#if:{{{works|}}}{{{credits|}}}||<!--
                -->{{{label_name|}}}{{main other|{{Pluralize from text|{{{label_name|}}}|likely=[[Category:Pages using infobox person with multiple labels]]}}}}}}


| label36    = <span style="white-space:nowrap;">Notable work</span>
| label36    = <span style="white-space:nowrap;">Notable work</span>
Line 143: Line 142:


| label49    = Opponent{{Pluralize from text|{{{opponents|}}}|likely=(s)|plural=s}}
| label49    = Opponent{{Pluralize from text|{{{opponents|}}}|likely=(s)|plural=s}}
| data49    = {{{opponents|}}}{{main other|{{Pluralize from text|{{{opponents|}}}|likely={{!}}Category:Pages using infobox person with multiple opponents}}}}
| data49    = {{{opponents|}}}{{main other|{{Pluralize from text|{{{opponents|}}}|likely=[[Category:Pages using infobox person with multiple opponents]]}}}}


| label50    = Board member&nbsp;of
| label50    = Board member&nbsp;of
Line 149: Line 148:


| label51    = {{#if:{{{criminal_charges|}}}|Criminal charges|Criminal charge{{pluralize from text|{{{criminal charge|{{{criminal_charge|}}}}}}|likely=(s)|plural=s}}}}
| label51    = {{#if:{{{criminal_charges|}}}|Criminal charges|Criminal charge{{pluralize from text|{{{criminal charge|{{{criminal_charge|}}}}}}|likely=(s)|plural=s}}}}
| data51    = {{{criminal_charges|{{{criminal charge|{{{criminal_charge|}}}}}}}}}{{main other|{{Pluralize from text|{{{criminal charge|{{{criminal_charge|}}}}}}|likely={{!}}Category:Pages using infobox person with multiple criminal charges}}}}
| data51    = {{{criminal_charges|{{{criminal charge|{{{criminal_charge|}}}}}}}}}{{main other|{{Pluralize from text|{{{criminal charge|{{{criminal_charge|}}}}}}|likely=[[Category:Pages using infobox person with multiple criminal charges]]}}}}


| label52    = Criminal penalty
| label52    = Criminal penalty
Line 159: Line 158:


| label54    = Spouse{{#if:{{{spouses|}}}|s|{{Pluralize from text|{{{spouse|{{{spouse(s)|}}}}}}|likely=(s)|plural=s}}}}
| label54    = Spouse{{#if:{{{spouses|}}}|s|{{Pluralize from text|{{{spouse|{{{spouse(s)|}}}}}}|likely=(s)|plural=s}}}}
| data54    = {{{spouse|{{{spouses|{{{spouse(s)|}}}}}}}}}{{main other|{{Pluralize from text| {{{spouse|{{{spouse(s)|}}}}}} |likely={{!}}Category:Pages using infobox person with multiple spouses}}}}
| data54    = {{{spouse|{{{spouses|{{{spouse(s)|}}}}}}}}}{{main other|{{Pluralize from text| {{{spouse|{{{spouse(s)|}}}}}} |likely=[[Category:Pages using infobox person with multiple spouses]]}}}}


| label55    = Partner{{#if:{{{partners|}}}|s|{{Pluralize from text|{{{partner|{{{domesticpartner|{{{domestic_partner|{{{partner(s)|}}}}}}}}}}}} |likely=(s)|plural=s}}}}
| label55    = Partner{{#if:{{{partners|}}}|s|{{Pluralize from text|{{{partner|{{{domesticpartner|{{{domestic_partner|{{{partner(s)|}}}}}}}}}}}} |likely=(s)|plural=s}}}}
| data55    = {{{partner|{{{domesticpartner|{{{domestic_partner|{{{partners|{{{partner(s)|}}}}}}}}}}}}}}}{{main other|{{Pluralize from text| {{{partner|{{{domesticpartner|{{{domestic_partner|{{{partner(s)|}}}}}}}}}}}} |likely={{!}}Category:Pages using infobox person with multiple partners}}}}
| data55    = {{{partner|{{{domesticpartner|{{{domestic_partner|{{{partners|{{{partner(s)|}}}}}}}}}}}}}}}{{main other|{{Pluralize from text| {{{partner|{{{domesticpartner|{{{domestic_partner|{{{partner(s)|}}}}}}}}}}}} |likely=[[Category:Pages using infobox person with multiple partners]]}}}}


| label56    = Children
| label56    = Children
| data56    = {{{children|}}}
| data56    = {{{children|}}}


| label57    = {{#if:{{{parents|}}}|Parent{{Pluralize from text|{{{parents|}}}|likely=(s)}}|{{#ifexpr:{{count|{{{father|}}}|{{{mother|}}}}} > 1|Parents|{{#if:{{{father|}}}|Father|{{#if:{{{mother|}}}|Mother}}}}}}}
| label57    = {{#if:{{{parents|}}}|Parent{{Pluralize from text|{{{parents|}}}|likely=(s)|plural=s}}|<!--
| data57    = {{#if:{{{parents|}}}|{{{parents}}}|{{#ifexpr:{{count|{{{father|}}}|{{{mother|}}}}} > 1|{{Unbulleted list|{{{father}}} (father)|{{{mother}}} (mother)}}|{{{mother|}}}{{{father|}}}}}}}{{main other|{{Pluralize from text|{{{parents|}}}|likely={{!}}Category:Pages using infobox person with multiple parents}}}}
              -->{{#ifexpr:{{count|{{{father|}}}|{{{mother|}}}}} > 1|Parents|{{#if:{{{father|}}}|Father|{{#if:{{{mother|}}}|Mother}}}}}}}}
| data57    = {{#if:{{{parents|}}}|{{{parents}}}|{{#ifexpr:{{count|{{{father|}}}|{{{mother|}}}}} > 1|{{Unbulleted list|{{{father}}} (father)|{{{mother}}} (mother)}}|{{{mother|}}}{{{father|}}}}}}}<!--
                -->{{main other|{{Pluralize from text|{{{parents|}}}|likely=[[Category:Pages using infobox person with multiple parents]]}}}}


| label58    = Relatives
| label58    = Relatives
Line 183: Line 184:


| label62    = {{#if:{{{honours|}}}|Honours|Honors}}
| label62    = {{#if:{{{honours|}}}|Honours|Honors}}
| data62    = {{{honours|{{{honors|}}}}}}  
| data62    = {{{honours|{{{honors|}}}}}}


| data64    = {{{misc|{{{module|}}}}}}
| data64    = {{{misc|{{{module|}}}}}}
Line 201: Line 202:
| data74    = {{#if:{{{footnotes|}}}|<div style="text-align: left;">{{{footnotes}}}</div>}}
| data74    = {{#if:{{{footnotes|}}}|<div style="text-align: left;">{{{footnotes}}}</div>}}


{{#invoke:Check for unknown parameters|check|unknown={{main other|{{!}}Category:Pages using infobox person with unknown parameters}}|preview = Page using {{!}}Template:Infobox person with unknown parameter "_VALUE_"|ignoreblank=n}}
}}<!--
 
-->{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using {{if empty|{{lcfirst:{{{template_name|}}}}}|infobox person}} with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview = Page using [[Template:{{#if:{{{template_name|}}}|{{ucfirst:{{{template_name|}}}}}|Infobox person}}]] with unknown parameter "_VALUE_"|ignoreblank=n<!--this check deliberately flags empty unknown parameters; see talk, December 2022-->
{{#invoke:Check for deprecated parameters|check
| abovestyle | agent | alias | alma mater | alma_mater | alt | awards | baptised | baptized | birth_date | birth_name | birth_place | birthname | boards | body discovered | body_discovered | burial_coordinates | burial_place | callsign | caption | child | children | citizenship | credits | criminal charge | criminal penalty | criminal status | criminal_charge | criminal_charges | criminal_penalty | criminal_status | death cause | death_cause | death_date | death_place | disappeared_date | disappeared_place | disappeared_status | domestic_partner | domesticpartner | education | embed | embed_title | employer | era | family | father | footnotes | height | height_cm | height_ft | height_in | height_m | homepage | honorific prefix | honorific suffix | honorific_prefix | honorific_suffix | honorific-prefix | honorific-suffix | honors | honours | image | image caption | image size | image_alt | image_caption | image_size | image_upright | imagesize | judicial status | judicial_status | known | known for | known_for | label_name | landscape | misc | misc2 | misc3 | misc4 | misc5 | misc6 | module | module2 | module3 | module4 | module5 | module6 | monuments | mother | movement | name | nationality | native_name | native_name_lang | nickname | nocat_wdimage | notable works | notable_works | occupation | office | opponents | organisation | organization | organizations | other names | other_names | othername | otherparty | parents | partner | partners | partner(s) | party | predecessor | pre-nominals | political_party | post-nominals | pronunciation | relations | relatives | resting place | resting place coordinates | resting_place | resting_place_coordinates | restingplace | restingplacecoordinates | siglum | signature | signature alt | signature_alt | signature_size | signature_type | spouse | spouses | spouse(s) | status | style | successor | template_name | television | term | title | URL | url | website | works | years active | years_active | yearsactive }}<!--
| _category = {{main other|{{!}}Category:Pages using infobox person with deprecated parameters|_VALUE_}}
-->{{Main other|{{#if:{{{pronunciation|}}}|[[Category:Biography template using pronunciation]]}}<!--
| preview = Page using {{!}}Template:Infobox person with deprecated parameter _VALUE_
-->{{#if:{{{signature|}}}|[[Category:Biography with signature]]}}<!--
-->[[Category:Articles with hCards]]
}}<!--
-->{{#invoke:Check for conflicting parameters|check
| nested = 1
| template = [[Template:{{#if:{{{template_name|}}}|{{ucfirst:{{{template_name|}}}}}|Infobox person}}]]
| cat = {{main other|Category:Pages using {{if empty|{{{template_name|}}}|infobox person}} with conflicting parameters}}
| child; embed
| honorific prefix; honorific_prefix; honorific-prefix; pre-nominals
| honorific suffix; honorific_suffix; honorific-suffix; post-nominals
| image_alt; alt
| image size; image_size; imagesize
| image caption; caption; image_caption
| birth_name; birthname
| baptized; baptised
| status; disappeared_status
| death cause; death_cause
| body discovered; body_discovered
| resting place; resting_place; restingplace
| resting place coordinates; resting_place_coordinates; restingplacecoordinates
| other names; other_names; othername; nickname; alias
| alma mater; alma_mater
| years active; years_active; yearsactive
| organisation; organization; organizations
| political_party; party
| known for= known_for; known
| {{#if:{{{works|}}}|works;}} {{#if:{{{credits|}}}|credits;}} {{#if:{{{label_name|}}}|label_name;}} notable works; notable_works
| height_m; height_cm
| office; title
| criminal_charges; criminal charge; criminal_charge
| criminal penalty; criminal_penalty
| judicial status; judicial_status
| criminal status; criminal_status
| spouse; spouses; spouse(s)
| partner; domesticpartner; domestic_partner; partners; partner(s)
| {{#if:{{{parents|}}}||NULL_}}parents; {{#if:{{{father|}}}||NULL_}}father
| {{#if:{{{parents|}}}||NULL_}}parents; {{#if:{{{mother|}}}||NULL_}}mother
| relations; relatives
| honours; honors
| misc; module
| misc2; module2
| misc3; module3
| misc4; module4
| misc5; module5
| misc6; module6
| website; homepage; URL; url
}}{{#invoke:Check for deprecated parameters|check
| _category = {{main other|[[Category:Pages using infobox person with deprecated parameters|_VALUE_]]}}
| preview = Page using [[Template:{{#if:{{{template_name|}}}|{{ucfirst:{{{template_name|}}}}}|Infobox person}}]] with deprecated parameter _VALUE_
| _remove = nationality
| _remove = nationality
}}
}}<includeonly>{{#ifeq:{{{child|{{{embed|}}}}}}|yes||{{Wikidata image|1={{{image|}}}|2={{{nocat_wdimage|}}}}}}}</includeonly><noinclude>
 
<includeonly>{{#ifeq:{{{child|{{{embed|}}}}}}|yes||{{Wikidata image|1={{{image|}}}|2={{{nocat_wdimage|}}}}}}</includeonly>
<noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>