Jump to content

Template:Infobox person/birth/doc

From American Election Wiki

Works alongside {{Infobox person/death}}.

Usage[edit]

{{Infobox
...
| label# = Born
| data#  = {{#if: {{{birth_date|}}} | {{Infobox person/birth|{{{birth_date|}}}|{{{death_date|}}} }} }}
...
}}

Or

{{Infobox
...
| label#    = Born
| data#     = {{br separated entries
   |1={{#if:{{{birth_name|}}}|<div class="nickname">{{{birth_name|}}}</div>}}
   |2={{#if:{{{birth_date|}}} | {{Infobox person/birth|{{{birth_date|}}}|{{{death_date|}}} }} }}
   |3={{#if:{{{birth_place|}}}|<div class="birthplace">{{{birth_place|}}}</div>}}
}}
...
}}

Test cases[edit]

birth_date only (death_date is nil)[edit]

These test cases are for living people with no {{{death_date}}} set

Year only
Month and year only
Full birth date set
Deal with references or extra text
Example references
  1. some citation
  2. citation goes here
Already using one of the {{birth date}} templates. Note that in these cases the code does NOT parse, it simply returns the original values passed in.

birth_date and death_date are set[edit]

These test cases are for living people with no {{{death_date}}} set

Year only
Month and year only
Full dates set
Deal with references or extra text
Example references
  1. some citation
Already using one of the {{birth date}} templates. Note that in these cases the code does NOT parse, it simply returns the original values passed in.

See also[edit]


Cookies help us deliver our services. By using our services, you agree to our use of cookies.