Difference between revisions of "Template:IGTracker"

From ShadowHaven Reloaded
Jump to navigation Jump to search
Line 1: Line 1:
<includeonly>{{#expr:floor(({{#time:xNU |now + 61 years}} - {{#time:xNU |{{{Year}}}-{{{Month}}}-{{{Day}}} }}) / 86400)}}
<includeonly>{{#expr:(floor(({{#time:xNU |now + 61 years}} - {{#time:xNU |{{{Year}}}-{{{Month}}}-{{{Day}}} }}) / 604800)) }}
</includeonly>
</includeonly>
<noinclude>
<noinclude>
Line 6: Line 6:
|
|
==Usage==
==Usage==
This template allows you to put in a character's stamp date, and it will automatically calculate how many optional infected powers they are allowed to buy. If you enter how many you currently have, it will display your remaining selections.:
This template allows you to put in a character's stamp date and your current IG in order to calculate if you can qualify for another IG.:


* All entries including Month must be in numeric format.
* All entries including Month must be in numeric format.
Line 15: Line 15:
<pre>
<pre>
{{InfectedPowers|
{{InfectedPowers|
|Month=9
|Month=12
|Day=29
|Day=19
|Year=2033
|Year=2083
|Bought=0
|Current IG=0
|}}
|}}
</pre>
</pre>


The template will return remaining number of optional powers to select {{InfectedPowers|
The template will return Yes/No indicating if you can take another initiation. {{InfectedPowers|
|Month=9
|Month=11
|Day=29
|Day=20
|Year=2060
|Year=2083
|Bought=0
|Current IG=0
|}}
|}}



Revision as of 10:44, 11 December 2022


Usage

This template allows you to put in a character's stamp date and your current IG in order to calculate if you can qualify for another IG.:

  • All entries including Month must be in numeric format.
  • Year must be the full, 4 digit year.

So, if you enter this:

{{InfectedPowers|
|Month=12
|Day=19
|Year=2083
|Current IG=0
|}}

The template will return Yes/No indicating if you can take another initiation. 11



The date fields are mandatory, the Bought field can be left at 0 or updated when you buy an optional power.