Difference between revisions of "Template:IGTracker"
Jump to navigation
Jump to search
(Created page with "<includeonly>{{#if: {{{Year}}} | {{#expr: {{#time:Y |now + 61 years}} - {{{Year}}} - {{#ifexpr: {{#time:m |now + 61 years}} < {{{Month|1}}} | 1 | {{#ifexpr: {{#time:m |now + 61 years}} > {{{Month|1}}} | 0 | {{#ifexpr: {{#time:d |now + 61 years}} < {{{Day|1}}} | 1 | 0 }} }} }} }} }} </includeonly> <noinclude> {| cellpadding=5 cellspacing=0 style="border: gray 2px solid; width: 100%; -moz-border-radius: 20px; -webkit-border-radius: 25px; border-radius: 25px; background...") |
|||
Line 1: | Line 1: | ||
<includeonly>{{#if: {{{Year}}} | {{#expr: {{#time:Y |now + 61 years}} - {{{Year}}} | <includeonly>{{#if: {{#if: {{{Year}}} | {{#expr: {{{#time:Y |now + 61 years}} - {{{Year}}}} * 12 + {{#ifexpr: {{#time:m |now + 61 years}} }} }} }} | ||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
Line 14: | Line 14: | ||
<pre> | <pre> | ||
{{ | {{InfectedPowers| | ||
|Month=9 | |Month=9 | ||
|Day=29 | |Day=29 |
Revision as of 13:59, 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. |