Template:Infobox person: Difference between revisions

code cleanup; support alt. parameter names found in various templates, incl. url, post-nominals, and pre-nominals; removed dead code; fixed legit parameters missing from checklist - sandboxed, working fine
(prevent a common "error" that's actually normal English)
(code cleanup; support alt. parameter names found in various templates, incl. url, post-nominals, and pre-nominals; removed dead code; fixed legit parameters missing from checklist - sandboxed, working fine)
Line 3:
 
| above = {{Br separated entries
| 1 = {{#if:{{{honorific prefix|}}}{{{honorific_prefix|}}}{{{honorific-prefix|}}}}}}{{{pre-nominals|}}}|<span class="honorific-prefix" style="font-size: 77%; font-weight: normal;">{{{honorific prefix|{{{honorific_prefix|{{{honorific-prefix|{{{pre-nominals}}}}}}}}}}}}</span>}}
| 2 = <span class="fn">{{#if:{{{name|}}}|{{{name}}}|{{PAGENAMEBASE}}}}</span>
| 3 = {{#if:{{{honorific suffix|}}}{{{honorific_suffix|}}}{{{honorific-suffix|}}}}}}{{{post-nominals|}}}|<span class="honorific-suffix" style="font-size: 77%; font-weight: normal;">{{{honorific suffix|{{{honorific_suffix|{{{honorific-suffix|{{{post-nominals}}}}}}}}}}}}</span>}}
}}
| abovestyle = {{{abovestyle|}}}
Line 19:
 
| label10 = Born
| data10 = {{Br separated entries|1={{#if:{{{birth_name|}}}{{{birthname|}}}}}}|<span class="nickname">{{{birth_name|{{{birthname|}}}}}}</span>}}|2={{{birth_date|}}}|3={{#if:{{{birth_place|}}}|<span class="birthplace">{{{birth_place|}}}</span>}}}}
 
| label11 = Baptised
Line 57:
| data21 = {{{other names|{{{other_names|{{{othername|{{{nickname|{{{alias|}}}}}}}}}}}}}}}
| class21 = nickname
 
| label22 = Ethnicity
| data22 =
| class22 = category
 
| label23 = Citizenship
Line 115 ⟶ 111:
 
| label40 = Height
| data40 = {{#if:{{{height_m|}}}{{{height_cm|}}}}}}{{{height_ft|}}}{{{height_in|}}} | {{convinfobox|{{{height_m|{{{height_cm|}}}}}}|{{#if:{{{height_m|}}}|m|cm}}|{{{height_ft|}}}|ft|{{{height_in|}}}|in}}}}{{#if:{{{height|}}} | {{infobox person/height|{{{height|}}}}}}}
 
| label41 = Weight
Line 149 ⟶ 145:
| label50 = Board member&nbsp;of
| data50 = {{{boards|}}}
<!--
| label51 = Religion
| data51 = {{#if:{{{religion|}}}|{{{religion|}}} {{#if:{{{denomination|}}}|({{{denomination|}}})|}}|}}
| class51 = category
 
| label52label51 = DenominationCriminal charge
| data52data51 = {{#if:{{{religion|}}}|criminal charge|{{{denominationcriminal_charge|}}}}}}
| class52 = category
-->
| label53 = Criminal charge
| data53 = {{{criminal charge|{{{criminal_charge|}}}}}}
 
| label54label52 = Criminal penalty
| data54data52 = {{{criminal penalty|{{{criminal_penalty|}}}}}}
 
| label55label53 = {{#if:{{{judicial_status|{{{judicial status|}}}{{{judicial_status|}}}|Judicial status|Criminal status}}
| data55data53 = {{#if:{{{judicial status|}}}{{{judicial_status|}}}}}} | {{{judicial status|{{{judicial_status}}}}}} | {{{criminal status|{{{criminal_status|}}}}}}}}
| class55class53 = category
 
| label56label54 = <span class="nowrap">Spouse(s)</span>
| data56data54 = {{{spouse|}}}
 
| label57label55 = <span class="nowrap">Partner(s)</span>
| data57data55 = {{{partner|{{{domesticpartner|{{{domestic_partner|}}}}}}}}}
 
| label58label56 = Children
| data58data56 = {{{children|}}}
 
| label59label57 = Parent{{#if:{{{parents|}}}|(s)|{{#if:{{{father|}}}|{{#if:{{{mother|}}}|s|(s)}}|(s)}}}}
| data59data57 = {{#if:{{{parents|}}}|{{{parents}}}|{{Unbulleted list|{{#if:{{{father|}}}|{{{father}}} (father)}}|{{#if:{{{mother|}}}|{{{mother}}} (mother)}}}}}}
 
| label60label58 = Relatives
| data60data58 = {{{relations|{{{relatives|}}}}}}
 
| label61label59 = Family
| data61data59 = {{{family|}}}
 
| label62label60 = Call-sign
| data62data60 = {{{callsign|}}}
 
| label63label61 = Awards
| data63data61 = {{{awards|}}}
 
| label64label62 = {{#if:{{{honours|}}}|Honours|Honors}}
| data64data62 = {{#if:{{{honours|}}}|{{{honourshonors|}}}|{{{honors|}}}}}
 
| label65label63 = Website
| data65data63 = {{{website|{{{homepage|{{{URL|{{{url|}}}}}}}}}}}}
 
| data66data64 = {{{misc|{{{module|}}}}}}
| data67data65 = {{{misc2|{{{module2|}}}}}}
| data68data66 = {{{misc3|{{{module3|}}}}}}
| data69data67 = {{{misc4|{{{module4|}}}}}}
| data70data68 = {{{misc5|{{{module5|}}}}}}
| data71data69 = {{{misc6|{{{module6|}}}}}}
 
| header72header70 = {{#if:{{{signature|}}}|Signature}}
| data73data71 = {{#invoke:InfoboxImage|InfoboxImage|image={{{signature|}}}|size={{{signature_size|}}}|sizedefault=150px|alt={{{signature alt|{{{signature_alt|}}}}}}}}
 
| header74header72 = {{#if:{{{footnotes|}}}|Notes}}
| data75data73 = {{#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|_VALUE_{{PAGENAME}}]]}}|preview = Page using [[Template:Infobox person]] with unknown parameter "_VALUE_"|ignoreblank=y
| abovestyle | agent | alias | alma mater | alma_mater | alt | awards | baptised | 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_penalty | criminal_status | death cause | death_cause | death_date | death_place | disappeared_date | disappeared_place | disappeared_status | domestic_partner | domesticpartner | education | employer | era | family | father | footnotes | height | height_cm | height_ft | height_in | height_m | home town | home_town | homepage | honorific prefix | honorific suffix | honorific_prefix | honorific_suffix | honorific-prefix | honorific-suffix | honors | honours | image | image caption | image size | image_caption | image_size | image_upright | imagesize | judicial status | judicial_status | known | known for | known_for | label_name | misc | misc2 | misc3 | misc4 | misc5 | misc6 | module | module2 | module3 | module4 | module5 | module6 | monuments | mother | movement | name | nationality | native_name | native_name_lang | net worth | net_worth | networth | nickname | nocat_wdimage | notable works | notable_works | occupation | office | opponents | organisation | organization | organizations | other names | other_names | othername | parents | partner | party | predecessor | pre-nominals | post-nominals | pronunciation | relations | relatives | residence | resting place | resting place coordinates | resting_place | resting_place_coordinates | restingplace | restingplacecoordinates | salary | signature | signature alt | signature_alt | signature_size | spouse | status | style | successor | television | term | title | URL | url | website | weight | weight_kg | weight_lb | weight_st | works | years active | years_active | yearsactive}}<!--{{#if:{{{religion|}}}|{{#invoke:RexxS|prevwarn|message=the religion parameter will be removed soon.}}}}
-->{{Main other|
{{#if:{{{1|}}}{{{2|}}}{{{3|}}}{{{4|}}}{{{5|}}}|[[Category:Infobox person using numbered parameter]]}}<!--
Anonymous user