Template:Infobox person: Difference between revisions
Appearance
NeonWabbit (talk | contribs) No edit summary |
NeonWabbit (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
{{#invoke:infobox|infoboxTemplate|child={{{child|{{{embed| | <includeonly>{{#invoke:infobox|infoboxTemplate|child={{if empty|{{{child|}}}|{{{embed|}}}}} | ||
| bodyclass = biography vcard | | bodyclass = biography vcard | ||
| above = {{#if: | | above = {{#if:{{{honorific_prefix|}}}|<div class="honorific-prefix" style="font-size: 80%; font-weight: normal;">{{{honorific_prefix|}}}</div>}}<div class="fn">{{if empty|{{{name|}}}|{{PAGENAMEBASE}}}}</div>{{#if:{{{honorific_suffix|}}}|<div class="honorific-suffix" style="font-size: 80%; font-weight: normal;">{{{honorific_suffix|}}}</div>}} | ||
| | | subheader = {{#ifeq:{{lc: {{if empty|{{{child|}}}|{{{embed|}}}}}}}|yes|{{#if:{{{embed_title|}}}|'''{{{embed_title|}}}'''}}}} | ||
| | | subheader2 = {{#switch:{{if empty|{{{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>}} }} }} | ||
| subheaderstyle2 = font-size: 125% | |||
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{#ifeq:{{lc:{{{landscape|}}}}}|yes|{{min|300|{{#if:{{#ifexpr: | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{#ifeq:{{lc:{{{landscape|}}}}}|yes|{{min|300|{{#if:{{#ifexpr:{{{image_size|}}}}}|300|{{{image_size|}}}}}}}x200px|{{{image_size|}}}}}|sizedefault=frameless|upright={{if empty|{{{image_upright|}}}|1}}|alt={{if empty|{{{alt|}}}|{{{image_alt|}}}}}|class={{{image_class|}}}|suppressplaceholder=yes}} | ||
| caption = {{ | | caption = {{if empty|{{{caption|}}}|{{{image_caption|}}}}} | ||
| label2 = Pronunciation | | label2 = Pronunciation | ||
| Line 15: | Line 15: | ||
| label10 = Born | | label10 = Born | ||
| data10 = {{ | | data10 = {{br separated entries | ||
|1={{#if:{{{birth_name|}}}|<div style="display:inline" class="nickname">{{{birth_name|}}}</div>}} | |||
|2={{#invoke:person date|birth}} | |||
|3={{#if:{{{birth_place|}}}|<div style="display:inline" class="birthplace">{{{birth_place|}}}</div>}} | |||
}} | |||
| label11 = Bapti{{#if:{{{baptized|}}}|z|s}}ed | | label11 = Bapti{{#if:{{{baptized|}}}|z|s}}ed | ||
| data11 = {{#if:{{{birth_date|}}}||{{{baptized|{{{baptised| | | data11 = {{#if:{{{birth_date|}}}||{{if empty|{{{baptized|}}}|{{{baptised|}}}}}}} | ||
| label12 = Disappeared | | label12 = Disappeared | ||
| Line 24: | Line 28: | ||
| label13 = Status | | label13 = Status | ||
| data13 = | | data13 = {{{disappeared_status|}}} | ||
| label14 = Died | | label14 = Died | ||
| data14 = {{ | | data14 = {{br separated entries | ||
|1={{#invoke:person date|death}} | |||
|2={{#if:{{{death_place|}}}|<div style="display:inline" class="deathplace">{{{death_place|}}}</div>}} | |||
}} | |||
| label15 = Cause of death | | label15 = {{longitem|Cause of death}} | ||
| data15 = | | data15 = {{{death_cause|}}} | ||
| label16 = Body discovered | | label16 = {{longitem|Body discovered}} | ||
| data16 = | | data16 = {{{body_discovered|}}} | ||
| label17 = {{#if:{{{burial_place|}}}|Burial place|Resting place}} | | label17 = {{longitem|{{#if:{{{burial_place|}}}|Burial place|Resting place}}}} | ||
| data17 = {{#if:{{{burial_place|}}}|{{Br separated entries|1={{{burial_place|}}}|2={{{burial_coordinates|}}}}}|{{Br separated entries|1= | | data17 = {{#if:{{{burial_place|}}}|{{Br separated entries|1={{{burial_place|}}}|2={{{burial_coordinates|}}}}}|{{Br separated entries|1={{{resting_place|}}}|2={{{resting_place_coordinates|}}}}}}} | ||
| class17 = label | | class17 = label | ||
| label18 = Monuments | | label18 = Monuments | ||
| data18 = {{{monuments|}}} | | data18 = {{{monuments|}}} | ||
| label21 = Other | | label21 = Other name{{pluralize from text|{{{other_names|}}}|plural=s}} | ||
| data21 = {{{other_names|}}} | |||
| class21 = nickname | | class21 = nickname | ||
| Line 65: | Line 64: | ||
| label25 = Alma mater | | label25 = Alma mater | ||
| data25 = | | data25 = {{{alma_mater|}}} | ||
| label26 = Occupation{{Pluralize from text|{{{occupation|}}} | | label26 = Occupation{{Pluralize from text|{{{occupation|}}}|plural=s}} | ||
| data26 = {{{occupation|}}} | | data26 = {{{occupation|}}} | ||
| class26 = role | | class26 = role | ||
| label27 = Years active | | label27 = Years active | ||
| data27 = | | data27 = {{{years_active|}}} | ||
| label28 = Era | | label28 = Era | ||
| Line 82: | Line 81: | ||
| class29 = org | | class29 = org | ||
| label30 = {{#if:{{{organisation|}}}|Organisation|Organization}}{{#if:{{{organizations|}}}|s|{{pluralize from text|{{{organization|{{{organisation| | | label30 = {{#if:{{{organisation|}}}|Organisation|Organization}}{{#if:{{{organizations|}}}|s|{{pluralize from text|{{if empty|{{{organization|}}}|{{{organisation|}}}}}|likely=(s)|plural=s}}}} | ||
| data30 = {{{organisation|{{{organization|{{{organizations| | | data30 = {{if empty|{{{organisation|}}}|{{{organization|}}}|{{{organizations|}}}}}{{main other|{{Pluralize from text|{{if empty|{{{organization|}}}|{{{organisation|}}}}}|likely=[[Category:Pages using infobox person with multiple organizations]]}}}} | ||
| class30 = org | | class30 = org | ||
| Line 91: | Line 90: | ||
| label32 = Known for | | label32 = Known for | ||
| data32 = | | data32 = {{{known_for|}}} | ||
| label33 = Works | | label33 = Works | ||
| data33 = {{{works|}}} | | data33 = {{{works|}}} | ||
| label34 = | | label34 = Notable credit{{Pluralize from text|{{{credits|}}}|likely=(s)|plural=s}} | ||
| data34 = {{#if:{{{works|}}}||<!-- | | data34 = {{#if:{{{works|}}}||<!-- | ||
-->{{{credits|}}}{{main other|{{Pluralize from text|{{{credits|}}}|likely=[[Category:Pages using infobox person with multiple credits]]}}}}}} | -->{{{credits|}}}{{main other|{{Pluralize from text|{{{credits|}}}|likely=[[Category:Pages using infobox person with multiple credits]]}}}}}} | ||
| Line 104: | Line 103: | ||
-->{{{label_name|}}}{{main other|{{Pluralize from text|{{{label_name|}}}|likely=[[Category:Pages using infobox person with multiple labels]]}}}}}} | -->{{{label_name|}}}{{main other|{{Pluralize from text|{{{label_name|}}}|likely=[[Category:Pages using infobox person with multiple labels]]}}}}}} | ||
| label36 = | | label36 = Notable work | ||
| data36 = {{#if:{{{works|}}}{{{credits|}}}{{{label_name|}}}| | | data36 = {{#if:{{{works|}}}{{{credits|}}}{{{label_name|}}}||{{{notable_works|}}}}} | ||
| label37 = Style | | label37 = Style | ||
| Line 115: | Line 114: | ||
| label41 = Height | | label41 = Height | ||
| data41 = {{#if:{{{height_m|{{{height_cm| | | data41 = {{#if:{{{height_m|}}}{{{height_cm|}}}{{{height_ft|}}}{{{height_in|}}} | {{convinfobox|{{if empty|{{{height_m|}}}|{{{height_cm|}}}}}|{{#if:{{{height_m|}}}|m|cm}}|{{{height_ft|}}}|ft|{{{height_in|}}}|in}}}}{{#if:{{{height|}}} | {{infobox person/height|{{{height|}}}}}}} | ||
| label42 = {{#if:{{{office|}}}|Office|Title}} | | label42 = {{#if:{{{office|}}}|Office|Title}} | ||
| data42 = {{{office|{{{title| | | data42 = {{if empty|{{{office|}}}|{{{title|}}}}} | ||
| class42 = title | | class42 = title | ||
| Line 130: | Line 129: | ||
| data45 = {{{successor|}}} | | data45 = {{{successor|}}} | ||
| label46 = Political party | | label46 = {{longitem|Political party}} | ||
| data46 = {{{ | | data46 = {{{political_party|}}} | ||
| class46 = org | | class46 = org | ||
| label47 = Other political<br />affiliations | | label47 = {{longitem|Other political<br />affiliations}} | ||
| data47 = {{{ | | data47 = {{{other_party|}}} | ||
| class47 = org | | class47 = org | ||
| Line 145: | Line 144: | ||
| 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 of | | label50 = {{longitem|Board member of}} | ||
| data50 = {{{boards|}}} | | data50 = {{{boards|}}} | ||
| label51 = {{#if:{{{criminal_charges|}}}|Criminal charges|Criminal charge{{pluralize from text | | label51 = {{longitem|{{#if:{{{criminal_charges|}}}|Criminal charges|Criminal charge{{pluralize from text|{{{criminal_charge|}}}|likely=(s)|plural=s}}}}}} | ||
| data51 = {{ | | data51 = {{if empty|{{{criminal_charges|}}}|{{{criminal_charge|}}}}}{{main other|{{Pluralize from text|{{{criminal_charge|}}}|likely=[[Category:Pages using infobox person with multiple criminal charges]]}}}} | ||
| label52 = Criminal penalty | | label52 = {{longitem|Criminal penalty}} | ||
| data52 = | | data52 = {{{criminal_penalty|}}} | ||
| label53 = {{#if: | | label53 = {{longitem|{{#if:{{{judicial_status|}}}|Judicial status|Criminal status}}}} | ||
| data53 = {{ | | data53 = {{if empty|{{{judicial_status|}}} | {{{criminal_status|}}}}} | ||
| class53 = category | | class53 = category | ||
| label54 = Spouse{{#if:{{{spouses|}}}|s|{{Pluralize from text|{{{spouse| | | label54 = Spouse{{#if:{{{spouses|}}}|s|{{Pluralize from text|{{{spouse|}}}|likely=(s)|plural=s}}}} | ||
| data54 = {{ | | data54 = {{if empty|{{{spouse|}}}|{{{spouses|}}}}}{{main other|{{Pluralize from text| {{{spouse|}}} |likely=[[Category:Pages using infobox person with multiple spouses]]}}}} | ||
| label55 = Partner{{#if:{{{partners|}}}|s|{{Pluralize from text|{{{partner|{{{domesticpartner|{{{domestic_partner|{{{partner(s)| | | label55 = Partner{{#if:{{{partners|}}}|s|{{Pluralize from text|{{if empty|{{{partner|}}}|{{{domesticpartner|}}}|{{{domestic_partner|}}}|{{{partner(s)|}}}}} |likely=(s)|plural=s}}}} | ||
| data55 = {{ | | data55 = {{if empty|{{{partner|}}}|{{{partners|}}}}}{{main other|{{Pluralize from text| {{{partner|}}} |likely=[[Category:Pages using infobox person with multiple partners]]}}}} | ||
| label56 = Children | | label56 = Children | ||
| Line 173: | Line 172: | ||
| label58 = Relatives | | label58 = Relatives | ||
| data58 = | | data58 = {{{relatives|}}} | ||
| label59 = Family | | label59 = Family | ||
| data59 = {{{family|}}} | | data59 = {{{family|}}} | ||
| label60 = Call sign | | label60 = Call sign | ||
| data60 = {{{callsign|}}} | | data60 = {{{callsign|}}} | ||
| Line 185: | Line 184: | ||
| label62 = {{#if:{{{honours|}}}|Honours|Honors}} | | label62 = {{#if:{{{honours|}}}|Honours|Honors}} | ||
| data62 = {{{honours|{{{honors| | | data62 = {{if empty|{{{honours|}}}|{{{honors|}}}}} | ||
| data64 = | | data64 = {{{module|}}} | ||
| data65 = | | data65 = {{{module2|}}} | ||
| data66 = | | data66 = {{{module3|}}} | ||
| data67 = | | data67 = {{{module4|}}} | ||
| data68 = | | data68 = {{{module5|}}} | ||
| data69 = | | data69 = {{{module6|}}} | ||
| label70 = Website | | label70 = Website | ||
| data70 = {{{website| | | data70 = {{{website|}}} | ||
| header71 = {{#if:{{{signature|}}}|{{if empty|{{{signature_type|}}}|Signature}}}} | | header71 = {{#if:{{{signature|}}}|{{if empty|{{{signature_type|}}}|Signature}}}} | ||
| data72 = {{#invoke:InfoboxImage|InfoboxImage|image={{{signature|}}}|size={{{signature_size|}}}|class=infobox-signature skin-invert|sizedefault=150px|alt= | | data72 = {{#invoke:InfoboxImage|InfoboxImage|image={{{signature|}}}|size={{{signature_size|}}}|class=infobox-signature skin-invert|sizedefault=150px|alt={{{signature_alt|}}}}} | ||
| header73 = {{#if:{{{footnotes|}}}|Notes}} | | header73 = {{#if:{{{footnotes|}}}|Notes}} | ||
| Line 204: | Line 203: | ||
}}<!-- | }}<!-- | ||
-->{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using {{if empty|{{{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= | -->{{#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=y| agent | alma_mater | alt | awards | baptised | baptized | birth_date | birth_name | birth_place | boards | body_discovered | burial_coordinates | burial_place | callsign | caption | child | children | citizenship | credits | criminal_charge | criminal_charges | criminal_penalty | criminal_status | 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 | honorific_prefix | honorific_suffix | honors | honours | image | image_alt | image_caption | image_class | image_size | image_upright | judicial_status | known_for | label_name | landscape | module | module2 | module3 | module4 | module5 | module6 | monuments | mother | movement | name | native_name | native_name_lang | nocat_wdimage | notable_works | occupation | office | opponents | organisation | organization | organizations | other_names | other_party | parents | partner | partner(s) | partners | political_party | predecessor | pronunciation | relatives | resting_place | resting_place_coordinates | siglum | signature | signature_alt | signature_size | signature_type | spouse | spouses | style | successor | television | template_name | term | title | website | works | years_active }}<!-- | ||
-->{{Main other|{{#if:{{{pronunciation|}}}|[[Category:Biography template using pronunciation]]}}<!-- | -->{{Main other|{{#if:{{{pronunciation|}}}|[[Category:Biography template using pronunciation]]}}<!-- | ||
-->{{#if:{{{signature|}}}|[[Category:Biography with signature]]}}<!-- | -->{{#if:{{{signature|}}}|[[Category:Biography with signature]]}}<!-- | ||
-->[[Category:Articles with hCards]] | -->[[Category:Articles with hCards]] | ||
}}<!-- | }}<!-- | ||
-->{{#invoke:Check for | -->{{#invoke:Check for conflicting parameters|check | ||
| nested = 1 | | nested = 1 | ||
| template = [[Template:{{#if:{{{template_name|}}}|{{ucfirst:{{{template_name|}}}}}|Infobox person}}]] | | 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}} | | cat = {{main other|Category:Pages using {{if empty|{{{template_name|}}}|infobox person}} with conflicting parameters}} | ||
| child; embed | | child; embed | ||
| | | image_alt; alt | ||
| | | height_m; height_cm; height_ft; height | ||
| caption; image_caption | |||
| | |||
| baptized; baptised | | baptized; baptised | ||
| organisation; organization; organizations | | organisation; organization; organizations | ||
| {{#if:{{{works|}}}|works;}} {{#if:{{{credits|}}}|credits;}} {{#if:{{{label_name|}}}|label_name;}} notable_works | |||
| {{#if:{{{works|}}}|works;}} {{#if:{{{credits|}}}|credits;}} {{#if:{{{label_name|}}}|label_name;}} | |||
| height_m; height_cm | | height_m; height_cm | ||
| office; title | | office; title | ||
| criminal_charges | | criminal_charges; criminal_charge | ||
| spouse; spouses | |||
| partner; partners | |||
| spouse; spouses | |||
| partner | |||
| {{#if:{{{parents|}}}||NULL_}}parents; {{#if:{{{father|}}}||NULL_}}father | | {{#if:{{{parents|}}}||NULL_}}parents; {{#if:{{{father|}}}||NULL_}}father | ||
| {{#if:{{{parents|}}}||NULL_}}parents; {{#if:{{{mother|}}}||NULL_}}mother | | {{#if:{{{parents|}}}||NULL_}}parents; {{#if:{{{mother|}}}||NULL_}}mother | ||
| honours; honors | | honours; honors | ||
}}{{#ifeq:{{if empty|{{{child|}}}|{{{embed|}}}}}|yes||{{Wikidata image|1={{{image|}}}|2={{{nocat_wdimage|}}}}}}}</includeonly> | |||
}} | |||