Difference between revisions of "Template:Age"

From Prismatic Imperium
Jump to navigation Jump to search
Line 1: Line 1:
 
<includeonly>{{#sub:{{#expr:{{#expr:{{CURRENTYEAR}}+1286}}{{CURRENTMONTH}}{{CURRENTDAY2}}-{{{1}}}{{padleft:{{{2|01}}}|2}}{{padleft:{{{3|01}}}|2}}}}|0|-4}}</includeonly>
 
<includeonly>{{#sub:{{#expr:{{#expr:{{CURRENTYEAR}}+1286}}{{CURRENTMONTH}}{{CURRENTDAY2}}-{{{1}}}{{padleft:{{{2|01}}}|2}}{{padleft:{{{3|01}}}|2}}}}|0|-4}}</includeonly>
 +
<noinclude>
 +
To use the age template (set to use ingame years), you can pass year, month, and date as parameters, e.g.:
 +
<code><nowiki>{{age|3271|12|24}}</nowiki></code>
 +
</noinclude>

Revision as of 14:44, 4 July 2021


To use the age template (set to use ingame years), you can pass year, month, and date as parameters, e.g.: {{age|3271|12|24}}