Difference between revisions of "Template:Activity"

From Nookipedia, the Animal Crossing wiki
(Vacation 1/12 - 1/16)
(Back from vacation)
Line 1: Line 1:
 
{{#switch: {{{user|}}}
 
{{#switch: {{{user|}}}
 
| Jake={{#ifeq: {{#time: n}} | 1 | {{#ifeq: {{#expr: {{#time: j}} > 12}} | 1 | Vacation | Active}} | Active}}
 
| Jake={{#ifeq: {{#time: n}} | 1 | {{#ifeq: {{#expr: {{#time: j}} > 12}} | 1 | Vacation | Active}} | Active}}
| SuperHamster=Vacation
+
| SuperHamster=Active
 
| Mario=Active
 
| Mario=Active
 
| Sky=Inactive
 
| Sky=Inactive

Revision as of 13:09, January 11, 2017

Inactive

Documentation

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: {{#ifeq: {{#time: n}} | MONTH_IN_NUMBER_FORMAT | {{#ifeq: {{#expr: {{#time: j}} > DATE}} | 1 | FUTURE_STATUS | CURRENT_STATUS}} | CURRENT_STATUS}}
Note: Be sure your month's number is not zero padded. (e.g. 8 not 08)