Template talk:Featured article: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
(added some alternatives)
No edit summary
Line 2: Line 2:


This code sets a rotation of any length. (mod x) where x = length
This code sets a rotation of any length. (mod x) where x = length
  {{#switch:{{#expr:({{CURRENTDOW}}+{{CURRENTWEEK}}*7) mod 7}}
  <nowiki>{{#switch:{{#expr:({{CURRENTDOW}}+{{CURRENTWEEK}}*7) mod 7}}</nowiki>
Currently the code used just sets a weekly rotation:
Currently the code used just sets a weekly rotation:
  {{#switch:{{CURRENTDOW}}
  <nowiki>{{#switch:{{CURRENTDOW}}</nowiki>
The following code would set a monthly rotation
The following code would set a monthly rotation
  {{#switch:{{CURRENTDAY}}
  <nowiki>{{#switch:{{CURRENTDAY}}</nowiki>

Revision as of 10:15, January 4, 2007

A short discussion on the workings of this template is here: [1]

This code sets a rotation of any length. (mod x) where x = length

{{#switch:{{#expr:({{CURRENTDOW}}+{{CURRENTWEEK}}*7) mod 7}}

Currently the code used just sets a weekly rotation:

{{#switch:{{CURRENTDOW}}

The following code would set a monthly rotation

{{#switch:{{CURRENTDAY}}