Difference between revisions of "Template:Birth date and age2/doc"
Jump to navigation
Jump to search
imported>Frietjes |
imported>Wassan.anmol (Added TemplateData) |
||
| Line 21: | Line 21: | ||
[[Category:Date mathematics templates]] | [[Category:Date mathematics templates]] | ||
}}</includeonly> | }}</includeonly> | ||
| + | |||
| + | <templatedata> | ||
| + | { | ||
| + | "params": { | ||
| + | "1": { | ||
| + | "description": "Adds the specified year.", | ||
| + | "example": "{{birth date and age2 |1970}}", | ||
| + | "type": "number", | ||
| + | "suggested": true, | ||
| + | "label": "Specified year" | ||
| + | }, | ||
| + | "2": { | ||
| + | "description": "Adds the specified month.", | ||
| + | "example": "{{birth date and age2 |1970|5}}", | ||
| + | "type": "number", | ||
| + | "suggested": true, | ||
| + | "label": "Specified month" | ||
| + | }, | ||
| + | "3": { | ||
| + | "description": "Adds the specified day.", | ||
| + | "example": "{{birth date and age2 |1970|5|12}}", | ||
| + | "type": "number", | ||
| + | "suggested": true, | ||
| + | "label": "Specified day" | ||
| + | }, | ||
| + | "4": { | ||
| + | "description": "Year of birth.", | ||
| + | "example": "{{birth date and age2 |1970|5|12|1962}}", | ||
| + | "type": "number", | ||
| + | "suggested": true, | ||
| + | "label": "Year" | ||
| + | }, | ||
| + | "5": { | ||
| + | "description": "Month of birth.", | ||
| + | "example": "{{birth date and age2 |1970|5|12|1962|4}}", | ||
| + | "suggested": true, | ||
| + | "label": "Month" | ||
| + | }, | ||
| + | "6": { | ||
| + | "description": "Date of birth.", | ||
| + | "example": "{{birth date and age2 |1970|5|12|1962|4|12}}", | ||
| + | "type": "number", | ||
| + | "suggested": true, | ||
| + | "label": "Day" | ||
| + | }, | ||
| + | "df": { | ||
| + | "example": "{{birth date and age2 |1970|5|12|1962|4|12|df=y}}", | ||
| + | "type": "string", | ||
| + | "suggested": true | ||
| + | } | ||
| + | }, | ||
| + | "description": "This template displays a person's birth date and age at a specified date.", | ||
| + | "format": "inline", | ||
| + | "paramOrder": [ | ||
| + | "1", | ||
| + | "2", | ||
| + | "3", | ||
| + | "4", | ||
| + | "5", | ||
| + | "6", | ||
| + | "df" | ||
| + | ] | ||
| + | } | ||
| + | </templatedata> | ||
Revision as of 21:00, 27 December 2015
| 40px | This is a documentation subpage for Template:Birth date and age2. It contains usage information, categories and other content that is not part of the original template page. |
This template displays a person's birth date and age at a specified date.
This allows you to show how old a person was at the time they participated in an event or made an achievement.
- Syntax
{{birth date and age2 |specified year|specified month|specified day |year of birth|month of birth|day of birth}}
- Format
- {{birth date and age2 |yyyy|mm|dd |yyyy|mm|dd |df=y}}
- Example
{{birth date and age2 |1988|6|10 |1961|7|4 |df=y}} produces: 4 July 1961 (aged 26)
This template displays a person's birth date and age at a specified date.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Specified year | 1 | Adds the specified year.
| Number | suggested |
| Specified month | 2 | Adds the specified month.
| Number | suggested |
| Specified day | 3 | Adds the specified day.
| Number | suggested |
| Year | 4 | Year of birth.
| Number | suggested |
| Month | 5 | Month of birth.
| Unknown | suggested |
| Day | 6 | Date of birth.
| Number | suggested |
| Df | df | no description
| String | suggested |