Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Many CMS' have news on the front page, where e.g. the sysop/webmaster posts about down time and other important news.

Often these can be scheduled, so that you e.g. write on Monday, and wants it to be visible from Tuesday to Friday.


Does MediaWiki have something like that?

share|improve this question
up vote 4 down vote accepted

Yes, you can use the #switch function to do this. There are some examples on this article - generating dynamic content with mediawiki.

The documentation on #switch is here: http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23switch

share|improve this answer

The "dpl" (Dynamic Page List) extension can also be used for that.

We use the following to display a random page from our site on our landing page. With DPL, you can filter that to a specific category, or filter by myriad other means.

resultsheader=__NOTOC__ __NOEDITSECTION__
listseparators=<h2>A Random Selection From Page: , [[%PAGE%]]</h2>,,\n\n
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.