Extension:Blurb

The Blurb extension allows a custom excerpt from Special:RandomPage to be included on a wiki page. This can be used to implement a rotating featured article, for example.

Installing
Copy the Blurb directory into the extensions folder of your MediaWiki installation. Then add the following line to your LocalSettings.php file (near the end):

Usage

 * &lt;blurbfeed/&gt;: this defines a blurb of a random page; on the wiki page, a preview is rendered.

Configuration
Configuration settings to define in LocalSettings.php:

$wgNewsFeedURLPattern
his defines the pattern used by the &lt;newsfeedlink&gt; tag to generate feed URLs. In the pattern, $1 will be replaced by the page title, and $2 will be replaced by the requested feed format. If you are using pretty URLs with $wgArticlePath set to $wgScript/$1 or /wiki/$1, etc, you can use the following for nicer feed URLs:
 * (note that $wgArticlePath already contains $1 withe the meaning "page title") If you want to use rewrite rules for canonical feed URLs, like /feed/Foo.rss, set

$wgNewsFeedUserPattern
This defines the pattern used to generate author names in feed items. In the pattern, $1 is replaced by the user name. To e.g. generate email-addresses at your site as author names, use

$wgBlurbHeadLength
Defaults to 1024 * 4 characters.

$wgBlurbHeadScan
Defaults to 512 characters.

$wgBlurbMinimumLength
Minimum length that a page must be to appear in the blurb. Defaults to 512 characters.

$wgBlurbSubstr
Defaults to 1024 characters.

$wgBlurbExclude
An array of pages to exclude from your blurbs. By default, the main page is excluded.

Related Extensions
This extension is based on Extension:News.