Web
Analytics
Join the HITS Discord and leave your suggestions for this wiki, talk about your edits, or just chat with fellow Tally Hall fans!

Difference between revisions of "Template:Age"

From Tally Hallmanac: The Ultimate Tally Hall Wiki
Jump to navigation Jump to search
m (Protected "Template:Age" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
Tag: Reverted
Line 1: Line 1:
<includeonly>{{#invoke:age|age_generic|template=age_full_years}}</includeonly><noinclude>{{documentation}}</noinclude>
<includeonly><onlyinclude>{{#expr:{{{2}}}-{{{1|}}}-1}}{{#if:{{{mos|}}}|&#32;or&#32;|/}}{{#expr:{{{2}}}-{{{1}}}}}{{#if:{{{noage|}}}||&#32;(age&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}}}}}>{{#expr:{{CURRENTMONTH}}*31+{{CURRENTDAY}}}}|{{#expr:{{CURRENTYEAR}}-{{{2}}}+{{{1}}}-1}}|{{#expr:{{CURRENTYEAR}}-{{{2}}}+{{{1}}}}}}}–{{#ifexpr:{{#expr:{{MONTHNUMBER|{{{3|1}}}}}*31+{{{4|1}}}}}<{{#expr:{{CURRENTMONTH}}*31+{{CURRENTDAY}}}}|{{#expr:{{CURRENTYEAR}}-{{{2}}}+{{{1}}}+1}}|{{#expr:{{CURRENTYEAR}}-{{{2}}}+{{{1}}}}}}}}})}}</onlyinclude></includeonly><noinclude>
{{Documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>

Revision as of 09:05, 15 February 2022