Difference between revisions of "Template:IGTracker"

From ShadowHaven Reloaded
Jump to navigation Jump to search
 
(41 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<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>
 
{{#switch: {{{AwakenedStatus|0}}}
| 0 = {{#expr: floor({{#if: {{{Year}}} | (floor(({{#time:xNU |now + 61 years}} - {{#time:xNU |{{{Year}}}-{{{Month}}}-{{{Day}}} }}) / 604800)) | 0 }}/8)+1 }}
| 1 = {{#expr: floor( 0.5*((4 * {{#if: {{{Year}}} | (floor(({{#time:xNU |now + 61 years}} - {{#time:xNU |{{{Year}}}-{{{Month}}}-{{{Day}}} }}) / 604800)) | 0 }} + 25)^0.5 - 3)) }}
| 2 = {{#expr: floor( 0.5*((8 * {{#if: {{{Year}}} | (floor(({{#time:xNU |now + 61 years}} - {{#time:xNU |{{{Year}}}-{{{Month}}}-{{{Day}}} }}) / 604800)) | 0 }} + 25)^0.5 - 3)) }}
| 0
}}
</includeonly>
</includeonly>
<noinclude>
<noinclude>
Line 6: Line 13:
|
|
==Usage==
==Usage==
This 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:
This template tracks the number of weeks a character has been active and uses that information to provide the number of initiations or mundane ascensions the character can take.


* All entries including Month must be in numeric format.
* All entries including Month must be in numeric format.
* Year must be the full, 4 digit year.
* Year must be the full, 4 digit year.
* AwakenedStatus is either 0, 1, or 2. Enter 0 for Mundane, 1 for Mage or Mystic Adept, or 2 for all other awakened.


So, if you enter this:
So, if you enter this:


<pre>
<pre>
{{InfectedPowers|
{{IGTracker|
|Month=9
|Month=11
|Day=29
|Day=9
|Year=2033
|Year=2083
|AwakenedStatus=2
|}}
|}}
</pre>
</pre>


The template will return the current age of {{Age|
This template will return the total number of initiations or ascensions the character can take. {{IGTracker|
|Month=9
|Month=11
|Day=29
|Day=2
|Year=2060
|Year=2083
|AwakenedStatus=2
|}}
|}}
The Month and Day field are both optional, if they are missing, the template will assume January and the 1st of the month. If you wish, you only need to enter a year.
If the year is not present, the template will return nothing.




[[Category:Templates]]
[[Category:Templates]]
[[Category:Character Page Templates]]
[[Category:Character Page Templates]]
[[Category:Contact Templates]]
|}
|}
</noinclude>
</noinclude>

Latest revision as of 21:40, 23 August 2024


Usage

This template tracks the number of weeks a character has been active and uses that information to provide the number of initiations or mundane ascensions the character can take.

  • All entries including Month must be in numeric format.
  • Year must be the full, 4 digit year.
  • AwakenedStatus is either 0, 1, or 2. Enter 0 for Mundane, 1 for Mage or Mystic Adept, or 2 for all other awakened.

So, if you enter this:

{{IGTracker|
|Month=11
|Day=9
|Year=2083
|AwakenedStatus=2
|}}

This template will return the total number of initiations or ascensions the character can take.

13