Extension:IncludeArticle

The IncludeArticle 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

Alternatives
Mediawiki >1.18: IncludeArticle isn't working well, there´s a problem to phrase. There´s now a built-in solution: Just have a look to Transclusion.

A neat trick to include another page, e.g. IncludePage, into the current one: