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}}} | 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 }} }} | <includeonly>{{#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 }} / 2 }} | ||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
Revision as of 15:33, 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 26
If the year is not present, the template will return nothing. |