Difference between revisions of "Template:Activity"

From Nookipedia, the Animal Crossing wiki
(Added Whitney33)
(Updated status and documentation.)
Line 6: Line 6:
 
| Drago=Active
 
| Drago=Active
 
| SNES=Inactive
 
| SNES=Inactive
| sunmarsh={{#ifeq: {{#time: n}} | 1 | {{#ifeq: {{#expr: {{#time: j}} > 18}} | 1 | Hiatus | Active}} | Active}}
+
| sunmarsh= {{#ifeq: {{#expr: {{#time: j}} > 7}} | 1 | {{#ifeq: {{#expr: {{#time: n}} > 3}} | 1 | Hiatus | {{#ifeq: {{#expr: {{#time: Y}} > 2017}} | 1 | Hiatus | Active}}}} | Active}}
 
| Heidy Isabel=Inactive
 
| Heidy Isabel=Inactive
 
| Beethoven Freak=Active
 
| Beethoven Freak=Active
Line 19: Line 19:
 
Acceptable parameters are "Active", "Inactive", "Around", "Hiatus", and "Vacation". If no parameter is entered the template defaults to "Inactive".
 
Acceptable parameters are "Active", "Inactive", "Around", "Hiatus", and "Vacation". If no parameter is entered the template defaults to "Inactive".
  
The following formula can be used to have one's status automatically change on a given date:
+
===Notes===
<code><nowiki>{{#ifeq: {{#time: n}} | MONTH_IN_NUMBER_FORMAT | {{#ifeq: {{#expr: {{#time: j}} > DATE}} | 1 | FUTURE_STATUS | CURRENT_STATUS}} | CURRENT_STATUS}}</nowiki></code>
+
The following formula can be used to have one's status automatically change on a given date:<br>
<br>Note: Be sure your month's number is not zero padded. (e.g. 8 not 08)
+
<code><nowiki>{{#ifeq: {{#expr: {{#time: j}} > DATE}} | 1 | {{#ifeq: {{#expr: {{#time: n}} > MONTH}} | 1 | FUTURE_STATUS | {{#ifeq: {{#expr: {{#time: Y}} > YEAR}} | 1 | FUTURE_STATUS | CURRENT_STATUS}}}} | CURRENT_STATUS}}</nowiki></code>
 +
<br>
 +
*DATE is the numerical date ''after which'' the status should change. (e.g. for March 1st, 2018: DATE = 1)
 +
*MONTH is the numerical month associated with the date that the status should change. (e.g. for March 1st, 2018: MONTH = 3)
 +
*YEAR is the numerical year associated with the date that the status should change. (e.g. for March 1st, 2018: YEAR = 2018)
 +
*FUTURE_STATUS is the the new status that will take effect ''after'' the date entered has passed.
 +
*CURRENT_STATUS is the status that will be shown up to and including the date entered.

Revision as of 22:12, March 8, 2017

Inactive

Documentation

Acceptable parameters are "Active", "Inactive", "Around", "Hiatus", and "Vacation". If no parameter is entered the template defaults to "Inactive".

Notes

The following formula can be used to have one's status automatically change on a given date:
{{#ifeq: {{#expr: {{#time: j}} > DATE}} | 1 | {{#ifeq: {{#expr: {{#time: n}} > MONTH}} | 1 | FUTURE_STATUS | {{#ifeq: {{#expr: {{#time: Y}} > YEAR}} | 1 | FUTURE_STATUS | CURRENT_STATUS}}}} | CURRENT_STATUS}}

  • DATE is the numerical date after which the status should change. (e.g. for March 1st, 2018: DATE = 1)
  • MONTH is the numerical month associated with the date that the status should change. (e.g. for March 1st, 2018: MONTH = 3)
  • YEAR is the numerical year associated with the date that the status should change. (e.g. for March 1st, 2018: YEAR = 2018)
  • FUTURE_STATUS is the the new status that will take effect after the date entered has passed.
  • CURRENT_STATUS is the status that will be shown up to and including the date entered.