Extension:IncludeArticle

The Include Article extension allows any page to be shown on any other wiki page. An editor can choose how many letters or lines of the article are shown.

The page is shown with a custom tag, . The editor has several filtering options. This extension allows full custom formatting of external pages, using regular wiki template coding.

Example
To get the first 200 letters from a random article in the MAIN NAMESPACE


 * 

To get the first 300 letters from a random article:


 * 

To define your own format for the generated article, you can use your own style.





Installation
Copy the IncludeArticle directory into the extensions folder of your MediaWiki installation.

Options

 * article: Which article to show
 * random: Overides article and shows a random article of the given namespaces
 * namespaces: Limit results to random articles. Multiple namespaces can be given separated by "|"; you can use "0", "-", or "main" to refer to the default namespace.
 * start: Which letter to start with
 * count: How many letters will be shown, negative values will display the whole article removing the specific number of letters from the end
 * lines: Count lines (not letters) that will be shown

Parameters

 * title: Full title including namespace
 * titleblank: Title without namespace
 * content: Article content

Changes to LocalSettings.php
To make this extension work with mediawiki 1.12 or 1.13, add this line.

In mediawiki >= 1.14 the class 'Parser_OldPP' was dropped, so this extension would have to be fixed to use the new parser.