Jump to content

Template:Birth date/doc: Difference between revisions

update examples and template data
(update hatnote, add links)
(update examples and template data)
Line 44: Line 44:
== Examples ==
== Examples ==
; Unnamed parameters for year, month, day
; Unnamed parameters for year, month, day
: <code><nowiki>{{Birth date|1993|2|4|df=yes}}</nowiki></code> returns "{{Birth date|1993|2|4|df=yes}}"
: <code><nowiki>{{Birth date|1993|2|24}}</nowiki></code> returns "{{Birth date|1993|2|24}}"
: <code><nowiki>{{Birth date|1993|2|4|mf=yes}}</nowiki></code> returns "{{Birth date|1993|2|4|mf=yes}}"
: <code><nowiki>{{Birth date|1993|2|24|df=yes}}</nowiki></code> returns "{{Birth date|1993|2|24|df=yes}}"
: <code><nowiki>{{Birth date|1993|2|4}}</nowiki></code> returns "{{Birth date|1993|2|4}}"
: <code><nowiki>{{Birth date|1993|2|24|mf=yes}}</nowiki></code> returns "{{Birth date|1993|2|24|mf=yes}}"


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


== TemplateData ==
== TemplateData ==
Line 63: Line 63:
"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 72: Line 73:
"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 81: Line 83:
"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 90: Line 93:
"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 96: Line 100:
"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
}
}
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.