Jump to content

Module:Person date/doc

This is the documentation page for Module:Person date

Lua error in Module:Effective_protection_level at line 64: attempt to index field 'TitleBlacklist' (a nil value).

                -->

This module is intended to aid in calculating/formatting birth dates and death dates in {{Infobox person}} and other People and person infobox templates.

This module generates errors when it encounters invalid input. Error descriptions and how to fix them are listed at Category:Pages using age template with invalid date.

Usage

  • {{#invoke:person date|birth}}
  • {{#invoke:person date|death}}

In infoboxes

<syntaxhighlight lang="wikitext"> {{Infobox ... | label# = Born | data# =

| label# = Died | data# = ... }} </syntaxhighlight> Or

<syntaxhighlight lang="wikitext"> {{Infobox ... | label# = Born | data# =

| label# = Died | data# = ... }} </syntaxhighlight>

Areas for improvement

  1. Currently the module does not handle anything that is not a simple date. So anything with a reference tag is not evaluated by the code.
  2. If |birth_date={{bda|1993|11|7}} (for example) then |death_date= will not be parsed. It will just be returned as the original string. Thus no age is calculated.

Tracking categories