Editing Template:Birth date and age/doc
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 41: | Line 41: | ||
: <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=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=24|mf=yes}}</nowiki></code> returns "{{Birth date and age|year=1993|month=2|day=24|mf=yes}}" | : <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}}" | ||
=== Using full date in one parameter === | |||
The following examples use a parameter value that will not work in the {{tl|Birth date}}, {{tl|Death date}}, or {{tl|Death date and age}} templates. | |||
The date format entered does not change the date format displayed, which is MDY by default or DMY if <code><nowiki>|df=y</nowiki></code> (to display the date in the same format it was entered, use {{tlp|Birth-date and age}}). | |||
; Unnamed parameter for full date (output in MDY format) | |||
: <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|Feb 24, 1993}}</nowiki></code> returns "{{Birth date and age|Feb 24, 1993}}" | |||
: <code><nowiki>{{Birth date and age|24 Feb 1993}}</nowiki></code> returns "{{Birth date and age|24 Feb 1993}}" | |||
; Unnamed parameter for full date (output in DMY format) | |||
: <code><nowiki>{{Birth date and age|1993-2-24|df=y}}</nowiki></code> returns "{{Birth date and age|1993-2-24|df=y}}" | |||
: <code><nowiki>{{Birth date and age|24 Feb 1993|df=y}}</nowiki></code> returns "{{Birth date and age|24 Feb 1993|df=y}}" | |||
: <code><nowiki>{{Birth date and age|Feb 24, 1993|df=y}}</nowiki></code> returns "{{Birth date and age|Feb 24, 1993|df=y}}" |