Template:Age: Difference between revisions

From Prismatic Imperium
Jump to navigation Jump to search
No edit summary
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#expr:{{CURRENTYEAR}}+1286}}{{CURRENTMONTH}}{{CURRENTDAY2}}
<includeonly>{{#sub:{{#expr:{{#expr:{{CURRENTYEAR}}+1286}}{{CURRENTMONTH}}{{CURRENTDAY2}}-{{{1}}}{{padleft:{{{2|01}}}|2}}{{padleft:{{{3|01}}}|2}}}}|0|-4}}</includeonly>
{{#expr:{{{1}}}+1286}}{{padleft:{{{2}}}|2}}{{padleft:{{{3}}}|2}}
<noinclude>
<includeonly>{{#sub:{{#expr:{{#expr:{{CURRENTYEAR}}+1286}}{{CURRENTMONTH}}{{CURRENTDAY2}}-{{#expr:{{{1}}}+1286}}{{{2}}}{{{3}}}}}|0|-4}}</includeonly>
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>
[[Category:Templates]]
</noinclude>

Latest revision as of 12:49, 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}}