Template talk:Featured article: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
(link)
 
(added some alternatives)
Line 1: Line 1:
A short discussion on the workings of this template is here: [http://kol.coldfront.net/thekolwiki/index.php/Template_talk:Featuredarticle]
A short discussion on the workings of this template is here: [http://kol.coldfront.net/thekolwiki/index.php/Template_talk:Featuredarticle]
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}}

Revision as of 10:13, 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:3

Currently the code used just sets a weekly rotation:

{{#switch:3

The following code would set a monthly rotation

{{#switch:12