Template:Age (smw)/doc
From Historical Hastings
| This is a documentation subpage for Template:Age (smw). It contains usage information, categories and other content that is not part of the original template page. |
Purpose: For SMW articles, prints out the age of the person for the article, or if specified, the person specified in the first operand.
Parameter: (optional) Person name. If specified, calculates the age of the individual. Otherwise, the age of the subject of the article is calculated.
Notes:
- Minimum requirements: birth year for the individual must be available via SMW. Otherwise, no age is returned
- If day or month are not specified, day=1 and month =1 is used.
- If a death date is not specified, then current year, month and day are used for calculating age.
- For people born or died between 100 BCE and 100 AD, results are undefined.