Difference between revisions of "Template:Activity"

From Nookipedia, the Animal Crossing wiki
(On hiatus until 8/8 due to school.)
(Adding useful formula to documentation)
Line 16: Line 16:
 
== Documentation ==
 
== Documentation ==
 
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:
 +
<code><nowiki>{{#ifeq: {{#time: n}} | MONTH_IN_NUMBER_FORMAT | {{#ifeq: {{#expr: {{#time: j}} > DATE}} | 1 | FUTURE_STATUS | CURRENT_STATUS}} | CURRENT_STATUS}}</nowiki></code>
 +
<br>Note: Be sure your month's number is not zero padded. (e.g. 8 not 08)

Revision as of 18:31, July 17, 2016

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)