Template:Birth date and age/doc: Difference between revisions
add year, month, and day aliases to TemplateData
No edit summary |
(add year, month, and day aliases to TemplateData) |
||
Line 84: | Line 84: | ||
===TemplateData=== | ===TemplateData=== | ||
{{TemplateDataHeader}} | {{TemplateDataHeader}} | ||
< | <templatedata> | ||
{ | { | ||
"description": "This template returns a living person's date of birth and current age.", | |||
"params": { | |||
"1": { | |||
"label": "Year of birth", | |||
"description": "The year in which the person was born", | |||
"type": "number", | |||
"required": true, | |||
"aliases": [ | |||
"year" | |||
] | |||
}, | |||
"2": { | |||
"label": "Month of birth", | |||
"description": "The month (number) in which the person was born", | |||
"type": "number", | |||
"required": true, | |||
"aliases": [ | |||
"month" | |||
] | |||
}, | |||
"3": { | |||
"label": "Day of birth", | |||
"description": "The day (number) in which the person was born", | |||
"type": "number", | |||
"required": true, | |||
"aliases": [ | |||
"day" | |||
] | |||
}, | |||
"df": { | |||
"label": "Day first", | |||
"description": "When set to 'y' or 'yes', the date of birth is output in a DMY format", | |||
"type": "string", | |||
"required": false | |||
}, | |||
"mf": { | |||
"label": "Month first", | |||
"description": "When set to 'y' or 'yes', stresses that the default MDY date format is intended for the date of birth", | |||
"type": "string", | |||
"required": false | |||
} | |||
} | |||
} | } | ||
</ | </templatedata> | ||