Difference between revisions of "Template:IGTracker"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
<includeonly>{{#expr: {{#ifexpr: {{#time:d |now + 61 years}} >= {{{Day}}} | | <includeonly>{{#expr: {{#expr: {{#ifexpr: {{#time:d |now + 61 years}} >= {{{Day}}} | 1 | 0}} + {{#ifexpr: {{#time:m |now + 61 years}} >= {{{Month}}} | {{#time:m |now + 61 years}} - {{{Month}}} | 12- {{{Month}}} - {{#time:m |now + 61 years}} }} + {{#ifexpr: {{#time:Y |now + 61 years}} > {{{Year}}} | ({{#time:Y |now + 61 years}} - {{{Year}}})*12 | 0 }} + 1}} | ||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> |
Revision as of 15:26, 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. |