FANDOM


(note)
(add examples)
 
(One intermediate revision by one user not shown)
Line 6: Line 6:
 
* {{t|MONTHNUMBER}}
 
* {{t|MONTHNUMBER}}
 
* {{t|pad2digit}}
 
* {{t|pad2digit}}
  +
  +
;Examples
  +
* <code><nowiki>{{</nowiki>Birth date and age&#124;year=1929&#124;month=1&#124;day=15<nowiki>}}</nowiki></code> &rarr; {{Birth date and age|year=1929|month=1|day=15}}
  +
* <code><nowiki>{{</nowiki>Birth date and age&#124;1929&#124;1&#124;15<nowiki>}}</nowiki></code> &rarr; {{Birth date and age|1929|1|15}}
  +
* <code><nowiki>{{</nowiki>Birth date and age&#124;1929&#124;1&#124;15&#124;df=yes<nowiki>}}</nowiki></code> &rarr; {{Birth date and age|1929|1|15|df=yes}}
   
   
 
----
 
----
 
;Template
 
;Template
<onlyinclude>{{#if:{{{df|}}}|[[{{#expr:{{{3|{{{day|{{{3}}}}}}}}}}} {{MONTHNAME|{{{2|{{{month|1}}}}}}}}]]|[[{{MONTHNAME|{{{2|{{{month|1}}}}}}}} {{#expr:{{{3|{{{day|{{{3|1}}}}}}}}}}}]]}} [[{{{1|{{{year|{{{1|1970}}}}}}}}}]]<span style="display:none"> (<span class="bday">{{{1|{{{year|}}}}}}-{{pad2digit|{{{2|{{{month|}}}}}}}}-{{pad2digit|{{{3|{{{day|{{{3}}}}}}}}}}}</span>)</span><span class="noprint"> (age&nbsp;{{age | {{{1|{{{year|{{{1|1970}}}}}}}}} | {{{2|{{{month|{{{2|1}}}}}}}}} | {{{3|{{{day|{{{3|1}}}}}}}}} }})</span></onlyinclude>
+
<onlyinclude>{{#if:{{{df|}}}|[[{{#expr:{{{3|{{{day|1}}}}}}}} {{MONTHNAME|{{{2|{{{month|1}}}}}}}}]]|[[{{MONTHNAME|{{{2|{{{month|1}}}}}}}} {{#expr:{{{3|{{{day|1}}}}}}}}]]}} [[{{{1|{{{year|1970}}}}}}]]<span style="display:none"> (<span class="bday">{{{1|{{{year|1970}}}}}}-{{pad2digit|{{{2|{{{month|1}}}}}}}}-{{pad2digit|{{{3|{{{day|1}}}}}}}}</span>)</span><span class="noprint"> (age&nbsp;{{age | {{{1|{{{year|1970}}}}}} | {{{2|{{{month|1}}}}}} | {{{3|{{{day|1}}}}}} }})</span></onlyinclude>
 
[[Category:Date and time templates|{{PAGENAME}}]]
 
[[Category:Date and time templates|{{PAGENAME}}]]

Latest revision as of 03:09, October 18, 2019

NOTE: Date defaults to Jan 1, 1970 (1970/1/1).

Dependencies
Examples
  • {{Birth date and age|year=1929|month=1|day=15}}January 15 1929 (1929-01-15) (age 91)
  • {{Birth date and age|1929|1|15}}January 15 1929 (1929-01-15) (age 91)
  • {{Birth date and age|1929|1|15|df=yes}}15 January 1929 (1929-01-15) (age 91)



Template

January 1 1970 (1970-01-01) (age 50)

Community content is available under CC-BY-SA unless otherwise noted.