Sjabloon:Birth-date and age: verschil tussen versies
Naar navigatie springen
Naar zoeken springen
k (1 versie) |
(geen verschil)
|
Huidige versie van 25 jul 2013 om 11:42
[bewerken] [ ] Template documentation
Returns a person's date of birth and age.
Besides calculating the age of the person, the benefit of using this template, is to allow for the inclusion of hidden metadata to be used, indexed or searched by software tools.
Typical Usage
- Format
{{Birth-date and age| birth date}}
{{Birth-date and age| birth date | wikitext to display in place of 'birth date'. Like the right hand parameter in a wikilink, this could be alternate text, links, templates etc. }}
Examples
Birth-date and age examples (colors for emphasis only): |
Month first format: Sample below displays april 12, 1941 (age 83), with invisible microformat date: 1941-04-12
|
Day first format: Sample below displays 12 april 1941 (age 83), with invisible microformat date: 1941-04-12
|
Year only, year and month only: Sample below displays 1941, with invisible microformat date: 1941 (age 83)
|
Demo of ISO date, as well as alternate displays. Sample below displays Twelfth of April, 1941, with invisible microformat date: 1941-04-12 (age 83)
|
Full list of Parameters
{{birth-date and age|
birth date|additional parameters}}
Parameters
Parameter | Default | ||
---|---|---|---|
(required) | 1 | Birth date. May be year only, year and month, year month and day, expressed in natural formats: eg: 24 August 1953, 1955-08-25, Sunday, December 7, 1941. If parameter three is not specified, the birth date is displayed in exactly this format. This value as well as parameter 2 may not include links. If links or templates that do not evaluate as recognizable dates are desired, use parameter 2. | – |
(optional) | 2 | The birth date to display. This may include links or templates, or any combination of them, and overrides parameter 1. | parm 1 |
(optional) | bce | If birth date is BC, set to "b". | – |
(optional) | gregorian | If Julian date is used, this parameter is required. The date provided is used for emitting the correct microformat translation of the birth date. | parm 1 |
(optional) | dt | This value if present is the ISO8601 value emitted to indicate microformat birth date. It overrides any calculated value. | – |
Interaction side-effects with other templates
Note: Do not use this template inside of the Persondata template as it can interfere with data extraction.
See also
- Birth, death, age
- {{BirthDeathAge}} – combines functions of {{Birth-date}}, {{Birth date}}, {{Birth date and age}}, {{Birth year and age}}, {{Death-date}}, {{Death date}}, {{Death date and age}}, {{Death year and age}}
- {{Birth date}} – displays the date and related hidden metadata
- {{Birth date and age}} – same as {{Birth date}}, except that "(age ##)" appears after the birth date
- {{Birth date and age2}} – displays birth date, plus age as of a specified date, "(aged ##)" appears after the birth date
- {{Birth-date and age}} – display birth date and age, accepts dates as text (15 June 1950; June 15, 1950; June 1950; etc.)
- {{Birth year and age}} – year of birth and approximate age
- {{Birth based on age as of date}} – displays approximate birth year and current age; used when a dated reference mentions the age of a person as of the date of publication
- {{Birth date based on age at death}} – displays approximate birth year based on age at death (useful if exact birth date is not known, but age at death is)
- {{Death date}} – displays the date and related hidden metadata
- {{Death date and age}} – same as {{Death date}}, except that "(aged ##)" appears after the death date
- {{Death-date and age}} – display death date and age, accepts date as text (15 June 1950; June 15, 1950; June 1950; etc.)
- {{Death date and given age}} – displays death date and specified age (useful if exact birth date is not known, but age at death is)
- {{Death year and age}} – year of death and approximate age at death
- Age only
- {{Age}} – age based on the number of full years between two dates (or a specified date and current date)
- {{Age nts}} – like {{Age}}, but sorts correctly in sortable tables
- {{Age as of date}} – current age in years, based on a known age as of a specified date
- {{Age in years and days}} – full years and days between two dates (or a specified date and current date)
- {{Age in years and days textual version}} – for usage in text (uses "and" instead of the comma)
- {{Age in days}} – age in days between two dates (or a specified date and current date)
- {{Age in days nts}} – age in days; sorts correctly in sortable tables
ms:Templat:Birth-date and age ur:Template:Birth-date and age
The above documentation is transcluded from Sjabloon:Birth-date and age/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |