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

From comp.tf
Jump to navigation Jump to search
(Created page with "<includeonly>{{#if:{{{df|}}}|{{#expr:{{{3|{{{day}}}}}}}} {{MONTHNAME|{{{2|{{{month}}}}}}}}|{{MONTHNAME|{{{2|{{{month}}}}}}}} {{#expr:{{{3|{{{day}}}}}}}},}} {{{1|{{{year}}}}}}<...")
 
m
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{df|}}}|{{#expr:{{{3|{{{day}}}}}}}} {{MONTHNAME|{{{2|{{{month}}}}}}}}|{{MONTHNAME|{{{2|{{{month}}}}}}}} {{#expr:{{{3|{{{day}}}}}}}},}} {{{1|{{{year}}}}}}<span style="display:none"> (<span class="bday">{{{1|{{{year}}}}}}-{{padleft:{{{2|{{{month}}}}}}|2|0}}-{{padleft:{{{3|{{{day}}}}}}|2|0}}</span>)</span><span class="noprint"> (age&nbsp;{{age | {{{1|{{{year}}}}}} | {{{2|{{{month}}}}}} | {{{3|{{{day}}}}}} }})</span><!--
+
== Usage ==
-->{{#set:
+
 
|has birth_day={{{1|{{{year}}}}}}-{{{2|{{{month}}}}}}-{{{3|{{{day}}}}}}
+
<nowiki>{{birth date and age|year|month|day}} </nowiki><br />
}}</includeonly><noinclude>
+
 
{{documentation}}[[Category:Source Wikipedia]][[Category:Templates]]</noinclude>
+
== Example ==
 +
 
 +
<pre>{{birth_date_and_age|1980|09|22}}</pre>
 +
 
 +
gives:
 +
 
 +
{{birth_date_and_age|1980|09|22}}
 +
[[Category:Source Wikipedia]]

Latest revision as of 12:21, 9 December 2019

Usage[edit]

{{birth date and age|year|month|day}}

Example[edit]

{{birth_date_and_age|1980|09|22}}

gives:

September 22, 1980 (1980-09-22) (age 43)