Template:Infobox person: Difference between revisions
Content added Content deleted
(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: | Line 3: | ||
| above = {{Br separated entries |
| above = {{Br separated entries |
||
| 1 = {{#if:{{{honorific prefix|{{{honorific_prefix|{{{honorific-prefix|}}} |
| 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> |
| 2 = <span class="fn">{{#if:{{{name|}}}|{{{name}}}|{{PAGENAMEBASE}}}}</span> |
||
| 3 = {{#if:{{{honorific suffix|{{{honorific_suffix|{{{honorific-suffix|}}} |
| 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|}}} |
| abovestyle = {{{abovestyle|}}} |
||
Line 19: | Line 19: | ||
| label10 = Born |
| label10 = Born |
||
| data10 = {{Br separated entries|1={{#if:{{{birth_name|{{{birthname| |
| 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 |
| label11 = Baptised |
||
Line 57: | Line 57: | ||
| data21 = {{{other names|{{{other_names|{{{othername|{{{nickname|{{{alias|}}}}}}}}}}}}}}} |
| data21 = {{{other names|{{{other_names|{{{othername|{{{nickname|{{{alias|}}}}}}}}}}}}}}} |
||
| class21 = nickname |
| class21 = nickname |
||
| label22 = Ethnicity |
|||
| data22 = |
|||
| class22 = category |
|||
| label23 = Citizenship |
| label23 = Citizenship |
||
Line 115: | Line 111: | ||
| label40 = Height |
| label40 = Height |
||
| data40 = {{#if:{{{height_m|{{{height_cm| |
| 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 |
| label41 = Weight |
||
Line 149: | Line 145: | ||
| label50 = Board member of |
| label50 = Board member of |
||
| data50 = {{{boards|}}} |
| data50 = {{{boards|}}} |
||
<!-- |
|||
| label51 = Religion |
|||
| data51 = {{#if:{{{religion|}}}|{{{religion|}}} {{#if:{{{denomination|}}}|({{{denomination|}}})|}}|}} |
|||
| class51 = category |
|||
| |
| label51 = Criminal charge |
||
| |
| data51 = {{{criminal charge|{{{criminal_charge|}}}}}} |
||
| class52 = category |
|||
--> |
|||
| label53 = Criminal charge |
|||
| data53 = {{{criminal charge|{{{criminal_charge|}}}}}} |
|||
| |
| label52 = Criminal penalty |
||
| |
| data52 = {{{criminal penalty|{{{criminal_penalty|}}}}}} |
||
| |
| label53 = {{#if:{{{judicial status|}}}{{{judicial_status|}}}|Judicial status|Criminal status}} |
||
| |
| data53 = {{#if:{{{judicial status|}}}{{{judicial_status|}}} | {{{judicial status|{{{judicial_status}}}}}} | {{{criminal status|{{{criminal_status|}}}}}}}} |
||
| |
| class53 = category |
||
| |
| label54 = <span class="nowrap">Spouse(s)</span> |
||
| |
| data54 = {{{spouse|}}} |
||
| |
| label55 = <span class="nowrap">Partner(s)</span> |
||
| |
| data55 = {{{partner|{{{domesticpartner|{{{domestic_partner|}}}}}}}}} |
||
| |
| label56 = Children |
||
| |
| data56 = {{{children|}}} |
||
| |
| label57 = Parent{{#if:{{{parents|}}}|(s)|{{#if:{{{father|}}}|{{#if:{{{mother|}}}|s|(s)}}|(s)}}}} |
||
| |
| data57 = {{#if:{{{parents|}}}|{{{parents}}}|{{Unbulleted list|{{#if:{{{father|}}}|{{{father}}} (father)}}|{{#if:{{{mother|}}}|{{{mother}}} (mother)}}}}}} |
||
| |
| label58 = Relatives |
||
| |
| data58 = {{{relations|{{{relatives|}}}}}} |
||
| |
| label59 = Family |
||
| |
| data59 = {{{family|}}} |
||
| |
| label60 = Call-sign |
||
| |
| data60 = {{{callsign|}}} |
||
| |
| label61 = Awards |
||
| |
| data61 = {{{awards|}}} |
||
| |
| label62 = {{#if:{{{honours|}}}|Honours|Honors}} |
||
| |
| data62 = {{{honours|{{{honors|}}}}}} |
||
| |
| label63 = Website |
||
| |
| data63 = {{{website|{{{homepage|{{{URL|{{{url|}}}}}}}}}}}} |
||
| |
| data64 = {{{misc|{{{module|}}}}}} |
||
| |
| data65 = {{{misc2|{{{module2|}}}}}} |
||
| |
| data66 = {{{misc3|{{{module3|}}}}}} |
||
| |
| data67 = {{{misc4|{{{module4|}}}}}} |
||
| |
| data68 = {{{misc5|{{{module5|}}}}}} |
||
| |
| data69 = {{{misc6|{{{module6|}}}}}} |
||
| |
| header70 = {{#if:{{{signature|}}}|Signature}} |
||
| |
| data71 = {{#invoke:InfoboxImage|InfoboxImage|image={{{signature|}}}|size={{{signature_size|}}}|sizedefault=150px|alt={{{signature alt|{{{signature_alt|}}}}}}}} |
||
| |
| header72 = {{#if:{{{footnotes|}}}|Notes}} |
||
| |
| data73 = {{#if:{{{footnotes|}}}|<div style="text-align: left;"> |
||
{{{footnotes}}}</div>}} |
{{{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 |
-->{{#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 | 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 | 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 | 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.}}}} |
| 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| |
-->{{Main other| |
||
{{#if:{{{1|}}}{{{2|}}}{{{3|}}}{{{4|}}}{{{5|}}}|[[Category:Infobox person using numbered parameter]]}}<!-- |
{{#if:{{{1|}}}{{{2|}}}{{{3|}}}{{{4|}}}{{{5|}}}|[[Category:Infobox person using numbered parameter]]}}<!-- |