Jump to content

Template:Infobox person module documentation

From Wikihoc

This infobox may be used to create a genre-specific section within {{Infobox person}} (or similar biographical infobox templates) for cases where a person may be notable in more than one field; a generic example is shown below. For guidance on usage, see Wikipedia:Infobox modules. Also see the Template:Infobox documentation which explains embedding and subboxes. <syntaxhighlight lang="wikitext">

{{#if:|
}}
Infobox person module documentation
{{#if:|
}}
{{#ifeq:|yes|{{#if:|'}}}}
{{#switch:|yes=|#default={{#if:|{{#if:|
}}{{{native_name}}}{{#if:|
}} }} }}
Born{{#if:|
}}
{{#if:|
}}
Bapti{{#if:|z|s}}ed{{#if:||}}
Died{{#if:|
}}
{{#ifeq: {{#if:|Burial place|Resting place}} | {{#if:|Burial place|Resting place}} |
{{#if:|Burial place|Resting place}}
| width: 100%; }}{{#if:|}}
{{#if:||}}
Employer{{safesubst:#switch:
 {{safesubst:#if: 
 | {{{demospace}}}    
 | {{safesubst:#ifeq:Template|
   | main
   | other
   }} 
 }}

| main = | other | #default =

}}
{{#if:|Organisation|Organization}}{{#if:|s|}}{{safesubst:#switch:
 {{safesubst:#if: 
 | {{{demospace}}}    
 | {{safesubst:#ifeq:Template|
   | main
   | other
   }} 
 }}

| main = | other | #default =

}}
Agent{{safesubst:#switch:
 {{safesubst:#if: 
 | {{{demospace}}}    
 | {{safesubst:#ifeq:Template|
   | main
   | other
   }} 
 }}

| main = | other | #default =

}}
Notable credit{{#if:||{{safesubst:#switch:
 {{safesubst:#if: 
 | {{{demospace}}}    
 | {{safesubst:#ifeq:Template|
   | main
   | other
   }} 
 }}

| main = | other | #default =

}}}}
Label{{#if:||{{safesubst:#switch:
 {{safesubst:#if: 
 | {{{demospace}}}    
 | {{safesubst:#ifeq:Template|
   | main
   | other
   }} 
 }}

| main = | other | #default =

}}}}
Notable work{{#if:||}}
Height{{#if: | }}{{#if: | }}
Opponent{{safesubst:#switch:
 {{safesubst:#if: 
 | {{{demospace}}}    
 | {{safesubst:#ifeq:Template|
   | main
   | other
   }} 
 }}

| main = | other | #default =

}}
{{#ifeq: {{#if:|Criminal charges|Criminal charge}} | {{#if:|Criminal charges|Criminal charge}} |
{{#if:|Criminal charges|Criminal charge}}
| width: 100%; }}{{#if:|}}
{{safesubst:#switch:
 {{safesubst:#if: 
 | {{{demospace}}}    
 | {{safesubst:#ifeq:Template|
   | main
   | other
   }} 
 }}

| main = | other | #default =

}}
Spouse{{#if:|s|}}{{safesubst:#switch:
 {{safesubst:#if: 
 | {{{demospace}}}    
 | {{safesubst:#ifeq:Template|
   | main
   | other
   }} 
 }}

| main = | other | #default =

}}
Partner{{#if:|s|}}{{safesubst:#switch:
 {{safesubst:#if: 
 | {{{demospace}}}    
 | {{safesubst:#ifeq:Template|
   | main
   | other
   }} 
 }}

| main = | other | #default =

}}
{{#if:|Parent|{{#ifexpr:{{safesubst:#ifexpr:0>0|0|0}} > 1|Parents|{{#if:|Father|{{#if:|Mother}}}}}}}}{{#if:|{{{parents}}}|{{#ifexpr:{{safesubst:#ifexpr:0>0|0|0}} > 1|
  • {{{father}}} (father)
  • {{{mother}}} (mother)
|}}}}{{safesubst:#switch:
 {{safesubst:#if: 
 | {{{demospace}}}    
 | {{safesubst:#ifeq:Template|
   | main
   | other
   }} 
 }}

| main = | other | #default =

}}
Template:EMBEDDED TEMPLATE NAME
{{#if:|Signature}}
{{#if:|Notes}}
{{#if:|
{{{footnotes}}}
}}

{{safesubst:#switch:

 {{safesubst:#if: 
 | {{{demospace}}}    
 | {{safesubst:#ifeq:Template|
   | main
   | other
   }} 
 }}

| main = {{#if:|}}{{#if:|}}

| other | #default = }}{{#ifeq:|yes||{{#if:{{#if:||Template}}||{{#if:{{#property:P18|from=}}|}}}}}} </syntaxhighlight>