Template talk:Featured article: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:
The following code would set a monthly rotation
The following code would set a monthly rotation
  <nowiki>{{#switch:{{CURRENTDAY}}</nowiki>
  <nowiki>{{#switch:{{CURRENTDAY}}</nowiki>
==Featured Pages==
I agree that featured pages should be spoiler-free; for example, the President one could be altered to include only the information on him found before repaying the debt.  Titan Dweevil and Dream Den are similarly problematic, and I remember there being a Louie one when I first came here, containing the Dark Secret spoiler.  If I can get round to it, I'll make alterations as soon as possible.  It would also be nice to get a proper feature thing going on, featuring a particular article for, say, a week, until a new feature is written, rewritten and perfected.{{User:Greenpickle/sig}}

Revision as of 13:10, February 13, 2008

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}}

Featured Pages

I agree that featured pages should be spoiler-free; for example, the President one could be altered to include only the information on him found before repaying the debt. Titan Dweevil and Dream Den are similarly problematic, and I remember there being a Louie one when I first came here, containing the Dark Secret spoiler. If I can get round to it, I'll make alterations as soon as possible. It would also be nice to get a proper feature thing going on, featuring a particular article for, say, a week, until a new feature is written, rewritten and perfected.GP