Jump to content

Template:Infobox person/birth/doc

From American Election Wiki
Revision as of 17:27, 27 September 2025 by Pc>Zackmann08 (Use divs not spans)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Works alongside {{Infobox person/death}}.

Usage

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

birth_date only (death_date is nil)

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

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


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