Extension:DailyFeaturedPage

The DailyFeaturedPage extension lets you show desired article content on different days in the same location. For example, lets say on your main page, you want to showcase content from selected articles and rotate different article text each day, you can use this extension to program a different article text to appear each day  ("the daily featured page"). You can also use modify this extension by using other PHP date functions  so that the featured page content is shown on an hourly or minutely basis.

Installation

 * 1) To try out this extension, create 2 new article pages, with the names "Apples" and "Oranges". In the Apples article, add this content text: My apples content to show in the daily featured page section This content will not show on the daily featured page location.   In the Oranges article, add this content text: My oranges content to show in the daily featured page section This content will not show on the daily featured page location.
 * 2) Save  to a temporary on your computer.  Use an editor such as Notepad++ to edit the dailyfeaturedpage.php file and edit these lines:case date("2013-08-01"): $featuredArticle[0] = "Apples"; break; case date("2013-08-02"): $featuredArticle[0] = "Oranges"; break; In the lines that say case date("2013-08-01"): and case date("2013-08-02"): change the dates to the dates you want. For example, if today's date is September 1, 2015, change to case date("2015-09-01"): and case date("2015-09-02"): Also add more case statements for additional articles you want to show for future dates. When you have made the changes, save the dailyfeaturedpage.php file and move the file into your mediawiki extensions folder.
 * 3) Add the  tags to the location where  you want  to  see the content of the daily featured page. Refresh this location and you should see the Apples content in the location where you inserted the  tags.

Usage
Drop the tag dailyfeaturedpage in the locations that you want to show the article content. Your wiki page will automatically rotate to show different article content on each day. See installation section.

Customisation
You can customize the start time to start at hours or minutes by adding a statement like this: You can also use this extension with other transclusion tags. For more info about transclusions see If you want to show the entire article in the wiki location where you inserted the dailyfeaturedpage tag, then you don't need to add transclusion tags to the original articles.