|
|
| (4 intermediate revisions by 2 users not shown) |
| Line 1: |
Line 1: |
| {{Documentation subpage}}
| |
| <!-- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE -->
| |
| {{High-use| 233,800 }}
| |
| {{Warning|''Do '''NOT''' use this template when the person's exact date of death is disputed or unknown; consider {{tl|death year and age}} instead.''}}
| |
| {{Template shortcut|dda}}
| |
| {{mbox|text=[[Template:Disappeared date and age]] redirects here. Feel free to continue using the [[Template:Disappeared date and age]] redirect where it is not clear if the individual has died.}}
| |
| {{Lua|Module:Age|Module:Check for unknown parameters}}
| |
|
| |
| {{tlb|Death date and age}} returns a person's date of death and age at that date. The year, month, and day of death are required, as is the birth year. The month and day of birth are optional.
| |
|
| |
| ==Syntax== | | ==Syntax== |
|
| |
|
| Line 35: |
Line 25: |
| The default output of this template is the month before the day (American-based style). This default may not be appropriate in articles about people from parts of the world where the day precedes the month in a date (e.g. Europe). In such cases the parameter df should be set. | | The default output of this template is the month before the day (American-based style). This default may not be appropriate in articles about people from parts of the world where the day precedes the month in a date (e.g. Europe). In such cases the parameter df should be set. |
|
| |
|
| It is possible to use similar parameter "mf" to stress the month-first format so that relying on the default does not lead an editor or [[WP:bots|bot]] to change the format to an unintended value; however, it is ignored by the template itself. (So, should both parameters be mistakenly used at once, df takes precedence.) | | It is possible to use similar parameter "mf" to stress the month-first format so that relying on the default does not lead an editor or bot to change the format to an unintended value; however, it is ignored by the template itself. (So, should both parameters be mistakenly used at once, df takes precedence.) |
|
| |
|
| Examples: | | Examples: |
| Line 53: |
Line 43: |
| Because the hCard specification requires the use of the Gregorian calendar, the template should not be used for dates stated in the Julian calendar. | | Because the hCard specification requires the use of the Gregorian calendar, the template should not be used for dates stated in the Julian calendar. |
|
| |
|
| ==TemplateData==
| |
| {{TemplateData header}}
| |
| <TemplateData>
| |
| {
| |
| "description": "This template returns a person's date of death and age at that date.",
| |
| "params": {
| |
| "1": {
| |
| "label": "Year of death",
| |
| "description": "The year in which the person died",
| |
| "type": "number",
| |
| "required": true
| |
| },
| |
| "2": {
| |
| "label": "Month of death",
| |
| "description": "The month (number) in which the person died",
| |
| "type": "number",
| |
| "required": true
| |
| },
| |
| "3": {
| |
| "label": "Day of death",
| |
| "description": "The day (number) in which the person died",
| |
| "type": "number",
| |
| "required": true
| |
| },
| |
| "4": {
| |
| "label": "Year of birth",
| |
| "description": "The year in which the person was born",
| |
| "type": "number",
| |
| "required": true
| |
| },
| |
| "5": {
| |
| "label": "Month of birth",
| |
| "description": "The month (number) in which the person was born",
| |
| "type": "number",
| |
| "required": false
| |
| },
| |
| "6": {
| |
| "label": "Day of birth",
| |
| "description": "The day (number) in which the person was born",
| |
| "type": "number",
| |
| "required": false
| |
| },
| |
| "df": {
| |
| "label": "Day first",
| |
| "description": "When set to 'y' or 'yes', the date of death is output in a DMY format",
| |
| "type": "line",
| |
| "required": false,
| |
| "suggestedvalues": [
| |
| "yes",
| |
| "y"
| |
| ]
| |
| },
| |
| "mf": {
| |
| "label": "Month first",
| |
| "description": "When set to 'y' or 'yes', stresses that the default MDY date format is intended for the date of death",
| |
| "type": "line",
| |
| "required": false,
| |
| "suggestedvalues": [
| |
| "yes",
| |
| "y"
| |
| ]
| |
| }
| |
| }
| |
| }
| |
| </TemplateData>
| |
|
| |
|
| == Tracking categories ==
| |
| * {{Category link with count|Pages using death date and age with unknown parameters}}
| |
| * {{clc|Pages using age template with invalid date}}
| |
|
| |
|
| ==See also== | | ==See also== |
| * {{tl|Birth date text}} which accepts formats like "1 April 1990" or "April 1, 1990"
| | * {{tl|Birth date and age}} or <code>Template:Birth-date and age</code> |
| * {{tl|Birth date and age}} or {{tl|Birth-date and age}} | |
| * {{tl|Death year and age}} | | * {{tl|Death year and age}} |
| * {{tl|Recent birth}} or {{tl|Recent death}} | | * <code>Template:Recent birth</code> or <code>Template:Recent death</code> |
| * {{tl|Death date and given age}}, helpful when death date and age is known, but not the exact birth date
| |
| * {{tl|Missing for}}, for missing individuals. | | * {{tl|Missing for}}, for missing individuals. |
| {{Birth, death and age templates}} | | {{Birth, death and age templates}} |
|
| |
|
| <includeonly>{{Sandbox other|| <!-- CATEGORIES BELOW THIS LINE, PLEASE: --> | | <includeonly>{{Sandbox other|| <!-- CATEGORIES BELOW THIS LINE, PLEASE: --> |
| [[Category:Date mathematics templates]]
| |
| [[Category:Templates generating microformat date and age]]
| |
| }}</includeonly> | | }}</includeonly> |