Template:Infobox person/birth/doc

From American Election Wiki
Revision as of 21:09, 28 September 2025 by Peoplesconcord (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Works alongside {{Infobox person/death}}.

Usage[edit source]

{{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 source]

birth_date only (death_date is nil)[edit source]

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 source]

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 source]