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

    (removed unnamed parameters 4, 5, and 6 from TemplateData since not supported in current or prior version of Template:Birth date and age)
    (update examples and template data)
    Line 45: Line 45:
    == Examples ==
    == Examples ==
    ; Unnamed parameters for year, month, day
    ; Unnamed parameters for year, month, day
    : <code><nowiki>{{Birth date and age|1993|2|4|df=yes}}</nowiki></code> returns "{{Birth date and age|1993|2|4|df=yes}}"
    : <code><nowiki>{{Birth date and age|1993|2|24}}</nowiki></code> returns "{{Birth date and age|1993|2|24}}"
    : <code><nowiki>{{Birth date and age|1993|2|4|mf=yes}}</nowiki></code> returns "{{Birth date and age|1993|2|4|mf=yes}}"
    : <code><nowiki>{{Birth date and age|1993|2|24|df=yes}}</nowiki></code> returns "{{Birth date and age|1993|2|24|df=yes}}"
    : <code><nowiki>{{Birth date and age|1993|2|4}}</nowiki></code> returns "{{Birth date and age|1993|2|4}}"
    : <code><nowiki>{{Birth date and age|1993|2|24|mf=yes}}</nowiki></code> returns "{{Birth date and age|1993|2|24|mf=yes}}"


    ; Named parameters for year, month, day
    ; Named parameters for year, month, day
    : <code><nowiki>{{Birth date and age|year=1993|month=2|day=4|df=yes}}</nowiki></code> returns "{{Birth date and age|year=1993|month=2|day=4|df=yes}}"
    : <code><nowiki>{{Birth date and age|year=1993|month=2|day=24}}</nowiki></code> returns "{{Birth date and age|year=1993|month=2|day=24}}"
    : <code><nowiki>{{Birth date and age|year=1993|month=2|day=4|mf=yes}}</nowiki></code> returns "{{Birth date and age|year=1993|month=2|day=4|mf=yes}}"
    : <code><nowiki>{{Birth date and age|year=1993|month=2|day=24|df=yes}}</nowiki></code> returns "{{Birth date and age|year=1993|month=2|day=24|df=yes}}"
    : <code><nowiki>{{Birth date and age|year=1993|month=2|day=4}}</nowiki></code> returns "{{Birth date and age|year=1993|month=2|day=4}}"
    : <code><nowiki>{{Birth date and age|year=1993|month=2|day=24|mf=yes}}</nowiki></code> returns "{{Birth date and age|year=1993|month=2|day=24|mf=yes}}"


    == TemplateData ==
    == TemplateData ==
    Line 64: Line 64:
    "description": "The year in which the person was born",
    "description": "The year in which the person was born",
    "type": "number",
    "type": "number",
    "example": "1993",
    "required": true,
    "required": true,
    "aliases": [
    "aliases": [
    Line 73: Line 74:
    "description": "The month (number) in which the person was born",
    "description": "The month (number) in which the person was born",
    "type": "number",
    "type": "number",
    "example": "2",
    "required": true,
    "required": true,
    "aliases": [
    "aliases": [
    Line 82: Line 84:
    "description": "The day (number) in which the person was born",
    "description": "The day (number) in which the person was born",
    "type": "number",
    "type": "number",
    "example": "24",
    "required": true,
    "required": true,
    "aliases": [
    "aliases": [
    Line 91: Line 94:
    "description": "When set to 'y' or 'yes', the date of birth is output in a DMY format",
    "description": "When set to 'y' or 'yes', the date of birth is output in a DMY format",
    "type": "string",
    "type": "string",
    "example": "y",
    "required": false
    "required": false
    },
    },
    Line 97: Line 101:
    "description": "When set to 'y' or 'yes', stresses that the default MDY date format is intended for the date of birth",
    "description": "When set to 'y' or 'yes', stresses that the default MDY date format is intended for the date of birth",
    "type": "string",
    "type": "string",
    "example": "y",
    "required": false
    "required": false
    }
    }