From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.svg

Release status:Extension status stable

ImplementationTemplate:Extension#type Page action, Tag
DescriptionTemplate:Extension#description Loads boilerplate text when creating new pages
Author(s)Template:Extension#username Rob Church, troyengel
Latest versionTemplate:Extension#version 1.3.0 (2018-06-04)
MediaWikiTemplate:Extension#mediawiki 1.25+
Database changesTemplate:Extension#needs-updatephp No
LicenseTemplate:Extension#license No license specified
Hooks usedTemplate:Extension#hook

Translate the Preloader extension if it is available at translatewiki.net

Check usage and version matrix.

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.


  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'Preloader' );
  • YesY Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.


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.


Please submit comments, suggestions and bug reports on Gitlab.

See Also