Admin Forum:Coding Featured Article page (embeded in the Main Page) to rotate daily/weekly/monthly

Forums: Admin Central Index → Technical Help → Coding Featured Article page (embeded in the Main Page) to rotate daily/weekly/monthly Wikia's forums are a place for the community to help other members. To contact staff directly or to report bugs, please use Special:Contact.

I am an admin over at the Company of Heroes wiki. I am wanting to write some code in our Featured Articles page, so it rotates each article daily/weekly or monthly. The FA page is embedded into our Main Page, so it the FAs become boring rather quickly.

Here are the relevant links to everything you should need: Company of Heroes wiki, wiki FA page, CoH wiki user page

Any help much appreciated. Attack Rhino (Talk - Contributions) 13:15, February 10, 2012 (UTC)


 * Is it rotating at all currently? -- Fandyllic (talk &middot; contr) 13 Feb 2012 1:05 PM Pacific


 * No, not currently. If you (or someone else) could tell me a template of rotating it, I should be able to do it myself.
 * Thanks, Attack Rhino (Talk - Contributions) 03:05, February 14, 2012 (UTC)


 * I got it rotating again, but getting it to switch daily, weekly or monthly will take a bit more thought and work.
 * If you want to force it to rotate, just add ?action=purge (or &action=purge) to the end of the URL, like: http://companyofheroes.wikia.com/wiki/Company_of_Heroes_Wiki?action=purge -- Fandyllic (talk &middot; contr) 14 Feb 2012 1:11 PM Pacific


 * Okay, well thank you very much. I assume it rotates by page load or something?
 * I might keep this thread open, to wait and see if any more replies are made about date or time rotation.
 * Thanks again, Attack Rhino (Talk - Contributions) 21:30, February 14, 2012 (UTC)


 * The Fallout Wiki has templates to automatically rotate their featured article section once a day.
 * The template in-use on their main page:
 * The template page:
 * --Gardimuer { ʈalk } 04:46, February 16, 2012 (UTC)


 * See Template:Wikiportal:Main/Featured_article for the template that uses Template:Wikiportal/Featured_article.
 * This is probably the easiest way to do it, but requires alot of work. You basically have to create abstracts of the articles you want to feature and put them on subpages named based on day of the year (Day# Monthname is how Fallout Wiki did it) or some other scheme (Month#). Weekly would be the hardest to implement with this method, I think. -- Fandyllic (talk &middot; contr) 16 Feb 2012 3:33 PM Pacific