Jump to content

Template:Birth date and age/doc: Difference between revisions

→‎See also: template data
m (Migrating 33 interwiki links, now provided by Wikidata on d:Q5826978)
(→‎See also: template data)
Line 77: Line 77:
'''Note:''' Do not use this template inside of the [[WP:Persondata|Persondata]] template, as it can interfere with data extraction.
'''Note:''' Do not use this template inside of the [[WP:Persondata|Persondata]] template, as it can interfere with data extraction.


=== Template data ===
<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
                },
                "2": {
                        "label": "Month of birth",
                        "description": "The month (number) in which the person was born",
                        "type": "number",
                        "required": true
                },
                "3": {
                        "label": "Day of birth",
                        "description": "The day (number) in which the person was born",
                        "type": "number",
                        "required": true
                },
                "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>
===See also===
===See also===
* [[Wikipedia:Age calculation templates]]
* [[Wikipedia:Age calculation templates]]
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.