Extension:Preloader
From MediaWiki.org
|
Release status: stable |
|||
|---|---|---|---|
| Implementation | Page action, Tag | ||
| Description | Load boilerplate text when creating new pages | ||
| Author(s) | Rob Church | ||
| Last Version | 1.1 (31/12/2006) | ||
| MediaWiki | 1.7.0+ | ||
| License | No license specified | ||
| Download | Download snapshot |
||
|
|||
|
check usage (experimental) |
|||
The Preloader extension allows the creation of boilerplate text which will be inserted into the edit form when creating new pages. Different boilerplate text can be specified for different namespaces.
In addition, a new parser tag, <nopreload> is introduced, which is used to denote sections which should not be preloaded, ever; useful for instructions and advice on the boilerplate pages. This tag has no effect during a regular parse operation.
Contents |
Requirements
The Preloader extension requires MediaWiki 1.7.0 or later.
Installation
- Download all extension files from Subversion and place them in a Preloader directory within your MediaWiki extensions directory
- Edit LocalSettings.php and add the line
require_once( "{$IP}/extensions/Preloader/Preloader.php" );
Installation can be verified through the Special:Version page.
Configuration
Configuration of the boilerplate sources is done via the $wgPreloaderSource configuration variable, which takes the following format:
$wgPreloaderSource[ NAMESPACE ] = PAGE TITLE;
For instance,
$wgPreloaderSource[ NS_MAIN ] = 'Template:Boilerplate';$wgPreloaderSource[ NS_HELP ] = 'Template:Boilerplate help';
dictates that the boilerplate text for pages in the main namespace should be loaded from Template:Boilerplate, while pages in the Help namespace will be preloaded from Template:Boilerplate_help. Other namespaces have no boilerplate configured.
Feedback
Please submit comments, suggestions and bug reports to the extension's author via email.
See Also
- Extension:Boilerplate provides single preload template text
- Extension:PreloadManager provides per-namespace preload text
- Extension:HeaderFooter provides per-namespace header/footer text
- Extension:NewArticleTemplates provides per-namespace preload text
perhaps Extension:Preloader, Extension:PreloadManager, Extension:NewArticleTemplates and Extension:Boilerplate should be merged?