Difference between revisions of "Template:IGTracker"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
<includeonly>{{#ifexpr: {{#time:d |now + 61 years}} > {{{Day}}} | {{#time:d |now + 61 years}} - {{{Day}}} | 0}} + {{#ifexpr: {{#time:m |now + 61 years}} > {{{Month}}} | {{#time:m |now + 61 years}} - {{{Month}}} | 0 }} + {{#ifexpr: {{#time:Y |now + 61 years}} > {{{Year}}} | ({{#time:Y |now + 61 years}} - {{{Year}}})*12 | 0 }} | <includeonly>{{#ifexpr: {{#expr:{{#time:d |now + 61 years}} > {{{Day}}} | {{#time:d |now + 61 years}} - {{{Day}}} | 0}} + {{#ifexpr: {{#time:m |now + 61 years}} > {{{Month}}} | {{#time:m |now + 61 years}} - {{{Month}}} | 0 }} + {{#ifexpr: {{#time:Y |now + 61 years}} > {{{Year}}} | ({{#time:Y |now + 61 years}} - {{{Year}}})*12 | 0 }} }} | ||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> |
Revision as of 15:13, 10 December 2022
UsageThis template allows you to put in a character's date of birth, and it will automatically calculate their age based on the current in-game date. The following requirements apply:
So, if you enter this: {{InfectedPowers| |Month=9 |Day=29 |Year=2033 |}} The template will return the current age of 25
If the year is not present, the template will return nothing. |