வார்ப்புரு:Birth based on age as of date
&lt;includeonly&gt;&lt;onlyinclude&gt;{{#expr:{{{2}}}-{{{1|}}}-1}}{{#if:{{{mos|}}}|&amp;#32;or&amp;#32;|/}}{{#expr:{{{2}}}-{{{1}}}}}{{if|eq|{{{noage}}}|1|| (அகவை&amp;nbsp;{{#ifeq:{{#expr:{{MONTHNUMBER|{{{3|12}}}}}*31+{{{4|31}}}}}|{{#expr:{{CURRENTMONTH}}*31+{{CURRENTDAY}}}}|{{#expr:{{CURRENTYEAR}}-{{{2}}}+{{{1}}}}}|{{#ifexpr:{{#expr:{{MONTHNUMBER|{{{3|12}}}}}*31+{{{4|31}}}}}&gt;{{#expr:{{CURRENTMONTH}}*31+{{CURRENTDAY}}}}|{{#expr:{{CURRENTYEAR}}-{{{2}}}+{{{1}}}-1}}|{{#expr:{{CURRENTYEAR}}-{{{2}}}+{{{1}}}}}}}–{{#ifexpr:{{#expr:{{MONTHNUMBER|{{{3|1}}}}}*31+{{{4|1}}}}}&lt;{{#expr:{{CURRENTMONTH}}*31+{{CURRENTDAY}}}}|{{#expr:{{CURRENTYEAR}}-{{{2}}}+{{{1}}}+1}}|{{#expr:{{CURRENTYEAR}}-{{{2}}}+{{{1}}}}}}}}})}}&lt;/onlyinclude&gt;&lt;/includeonly&gt;&lt;noinclude&gt;
 This template calculates the birth year and current age based on the age as of a date. This is useful when a reference states only their age at the time of the reference's publication. 
 
 ===Syntax===
 &lt;pre&gt; {{birth based on age as of date |age |year|month|day}} &lt;/pre&gt;
 The age, year, and day must be supplied as [[இயல் எண்]]s; month can be specified as a natural number as well as by name or abbreviation (e.g. &quot;August&quot; or &quot;Aug&quot;).  The [[கிரெகொரியின் நாட்காட்டி]] is assumed, with no special support provided for [[dual dating]] or the difference between [[Old Style and New Style dates]].
 
 If they are not known, the &quot;day&quot; and &quot;month&quot; fields can be omitted; this is useful if, for example, only the publication year for a source is known.
 
 ===Options===
 To suppress the age field:
 &lt;pre&gt; {{birth based on age as of date |age |year|month|day |noage=1}} &lt;/pre&gt;
 
 With the &quot;noage=1&quot; option, the month and day can be &quot;1&quot;.
 
 To replace the '/' separator with ' or ' in compliance with [[WP:APPROXDATE]], add {{para|mos|1}}
 :&lt;code&gt;&lt;nowiki&gt;{{birth based on age as of date|50 |&lt;/nowiki&gt;{{#expr:{{CURRENTYEAR}}-1}}|{{CURRENTMONTH}}|{{CURRENTDAY}}|mos=1}}&lt;/code&gt;
 ::{{birth based on age as of date|50 |{{#expr:{{CURRENTYEAR}}-1}}|{{CURRENTMONTH}}|{{CURRENTDAY}}|mos=1}}
 ===Examples===
 If, for example, a reference dated July 4, {{#expr:{{CURRENTYEAR}}-1}} mentions that someone is 50 years old, that person's birth year and age can be rendered using:
  &lt;nowiki&gt;{{birth based on age as of date |50 |&lt;/nowiki&gt;{{#expr:{{CURRENTYEAR}}-1}}|July|4}}
 
 {| class=&quot;plainlinksneverexpand&quot; style=&quot;margin-top:0;&quot;
 !style=&quot;border:1px solid #aaa;background:#dfd;&quot;|
 The following examples are for a person reported as being 50 years old in {{#expr:{{CURRENTYEAR}}-1}}
 |-
 |
 {{Aligned table
    |class=wikitable |colstyle=padding-right:1.0em;
    |col1style=font-family:monospace;padding-right:1.0em;
    |row1header=on| {{sans-serif|Template code}} | Result
 
    | {{braces|birth based on age as of date|50 |{{#expr:{{CURRENTYEAR}}-1}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}
    |        {{birth based on age as of date|50 |{{#expr:{{CURRENTYEAR}}-1}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}
 
    | {{braces|birth based on age as of date|50 |{{#expr:{{CURRENTYEAR}}-1}}|{{CURRENTMONTHNAME}}|{{CURRENTDAY}}}}
    |        {{birth based on age as of date|50 |{{#expr:{{CURRENTYEAR}}-1}}|{{CURRENTMONTHNAME}}|{{CURRENTDAY}}}}
 
    | {{braces|birth based on age as of date|50 |{{#expr:{{CURRENTYEAR}}-1}}|12|31}}
    |        {{birth based on age as of date|50 |{{#expr:{{CURRENTYEAR}}-1}}|12|31}}
 
    | {{braces|birth based on age as of date|50 |{{#expr:{{CURRENTYEAR}}-1}}|Jan|1}}
    |        {{birth based on age as of date|50 |{{#expr:{{CURRENTYEAR}}-1}}|Jan|1}}
 
    | {{braces|birth based on age as of date|50 |{{#expr:{{CURRENTYEAR}}-1}}|12|31|noage{{=}}1}}
    |        {{birth based on age as of date|50 |{{#expr:{{CURRENTYEAR}}-1}}|12|31|noage=1}}
 
    | {{braces|birth based on age as of date|50|{{#expr:{{CURRENTYEAR}}-1}}|Jan|1|noage{{=}}1}}
    |        {{birth based on age as of date|50|{{#expr:{{CURRENTYEAR}}-1}}|Jan|1|noage=1}}
 
    | {{braces|birth based on age as of date|50|{{#expr:{{CURRENTYEAR}}-1}}|{{CURRENTMONTHNAME}}}}
    |        {{birth based on age as of date|50|{{#expr:{{CURRENTYEAR}}-1}}|{{CURRENTMONTHNAME}}}}
 
    | {{braces|birth based on age as of date|50|{{#expr:{{CURRENTYEAR}}-1}}|Jan}}
    |        {{birth based on age as of date|50|{{#expr:{{CURRENTYEAR}}-1}}|Jan}}
 
    | {{braces|birth based on age as of date|50|{{#expr:{{CURRENTYEAR}}-1}}|12}}
    |        {{birth based on age as of date|50|{{#expr:{{CURRENTYEAR}}-1}}|12}}
 
    | {{braces|birth based on age as of date|50|{{#expr:{{CURRENTYEAR}}-1}}}}
    |        {{birth based on age as of date|50|{{#expr:{{CURRENTYEAR}}-1}}}}
   }}
 |}
 
 &lt;!-- Add categories and interwikis to the /doc subpage, not here! --&gt;