Extension:Did You Know

This extension allows for displaying a "did you know" box in articles (using some wikitext construct) and other interfaces such as special pages (by using the PHP interface from another extension).

The did you know (DYK) box consists of a header "Did you know... ?", followed by content pulled from a wiki page. The wiki page gets randomly selected from a list of pages within a certain category (this category can be configured in LocalSettings). A "type" parameter can also be provided, which causes the lookup for the page to happen in a different category, for example, where $type gets replaced by the value of the type parameter. If there are no pages in this category, the selection mechanism falls back to the default category.

Requirements
requires:


 * MediaWiki 1.18 or above
 * PHP 5.2 or above

Installation
Once you have downloaded the code, place the DidYouKnow directory within your MediaWiki 'extensions' directory. Then add the following code to your LocalSettings.php file:

Usage
...

Version
This is a copy of the, which might be more up to date then this page.

...

Internationalization
is fully internationalized. Translation of messages is done through translatewiki.net. The translation for this extension can be found here. To add language values or change existing ones, you should create an account on translatewiki.net, then request permission from the administrators to translate a certain language or languages on this page (this is a very simple process). Once you have permission for a given language, you can log in and add or edit whatever messages you want to in that language.