Difference between revisions of "Template:Age"
Jump to navigation
Jump to search
m (Reverted edits by 141.101.105.193 (talk) to last revision by Efefknee) |
|||
Line 1: | Line 1: | ||
<includeonly>{{#expr:({{{4|{{CURRENTYEAR}}}}})-({{{1}}})-(({{{5|{{CURRENTMONTH}}}}})<({{{2}}})or({{{5|{{CURRENTMONTH}}}}})=({{{2}}})and({{{6|{{CURRENTDAY}}}}})<({{{3}}}))}}<!-- | <includeonly>{{#expr:({{{4|{{CURRENTYEAR}}}}})-({{{1}}})-(({{{5|{{CURRENTMONTH}}}}})<({{{2}}})or({{{5|{{CURRENTMONTH}}}}})=({{{2}}})and({{{6|{{CURRENTDAY}}}}})<({{{3}}}))}}<!-- | ||
− | {{#if:{{{nosmw}}}||{{#set: | + | {{#if:{{{nosmw|}}}||{{#set: |
|has age={{#expr:({{{4|{{CURRENTYEAR}}}}})-({{{1}}})-(({{{5|{{CURRENTMONTH}}}}})<({{{2}}})or({{{5|{{CURRENTMONTH}}}}})=({{{2}}})and({{{6|{{CURRENTDAY}}}}})<({{{3}}}))}} | |has age={{#expr:({{{4|{{CURRENTYEAR}}}}})-({{{1}}})-(({{{5|{{CURRENTMONTH}}}}})<({{{2}}})or({{{5|{{CURRENTMONTH}}}}})=({{{2}}})and({{{6|{{CURRENTDAY}}}}})<({{{3}}}))}} | ||
}}}}<!-- | }}}}<!-- | ||
--></includeonly><noinclude> | --></includeonly><noinclude> | ||
{{documentation}}[[Category:Source Wikipedia]][[Category:Templates]]</noinclude> | {{documentation}}[[Category:Source Wikipedia]][[Category:Templates]]</noinclude> |