Module:Person date/doc
Appearance
| This is a documentation subpage for Module:Person date. It may contain usage information, categories and other content that is not part of the original module page. |
| This module is rated as ready for general use. It has reached a mature state, is considered relatively stable and bug-free, and may be used wherever appropriate. It can be mentioned on help pages and other Wikipedia resources as an option for new users. To minimise server load and avoid disruptive output, improvements should be developed through sandbox testing rather than repeated trial-and-error editing. |
This module is intended to aid in calculating/formatting birth dates and death dates in {{Infobox person}}. It is implemented by {{Infobox person/birth}} & {{Infobox person/death}}.
Usage
{{#invoke:person date|birth|birth_date|death_date}}{{#invoke:person date|death|birth_date|death_date}}
In infoboxes
{{Infobox
...
| label# = Born
| data# = {{#if: {{{birth_date|}}} | {{Infobox person/birth|{{{birth_date|}}}|{{{death_date|}}} }} }}
| label# = Died
| data# = {{#if: {{{death_date|}}} | {{Infobox person/death|{{{birth_date|}}}|{{{death_date|}}} }} }}
...
}}
Or
{{Infobox
...
| label# = Born
| data# = {{br separated entries
|1={{#if:{{{birth_name|}}}|<span class="nickname">{{{birth_name|}}}</span>}}
|2={{#if:{{{birth_date|}}} | {{Infobox person/birth|{{{birth_date|}}}|{{{death_date|}}} }} }}
|3={{#if:{{{birth_place|}}}|<span class="birthplace">{{{birth_place|}}}</span>}}
}}
| label# = Died
| data# = {{br separated entries
|1={{#if:{{{death_date|}}} | {{Infobox person/death|{{{birth_date|}}}|{{{death_date}}} }} }}
|2={{#if:{{{death_place|}}}|<span class="deathplace">{{{death_place|}}}</span>}}
}}
...
}}