Extension:MultiBoilerplate
From MediaWiki.org
|
Release status: stable |
|||
|---|---|---|---|
| Implementation | User interface | ||
| Description | Allows a boilerplate to be selected from a drop down box located above the edit form when editing pages. | ||
| Author(s) | Robert Leverington (RobertLTalk) | ||
| Last Version | 1.8.0 | ||
| MediaWiki | 1.11 or higher | ||
| License | GNU General Public License 2.0 or later | ||
| Download | Download snapshot |
||
|
|||
|
check usage (experimental) |
|||
The MultiBoilerplate extension allows a boilerplate to be selected from a drop down box located above the edit form when editing non-existant pages or optionally (based upon configuration variable $wgMultiBoilerplateOverwrite), load the template over the current contents. Any data inside <noinclude></noinclude> tags will not be loaded, and any data inside <includeonly></includeonly> will only be included (and the tags are stripped before include).
Bugs and feature requests should be added to MediaZilla under the 'MediaWiki extensions' product and 'MultiBoilerplate' component.
Contents |
[edit] Installation
- Check out all extension files and place them in a MultiBoilerplate subdirectory within your MediaWiki extensions directory. (For 1.8 version (latest) select TRUNK)
- Add
require_once( "$IP/extensions/MultiBoilerplate/MultiBoilerplate.php" );toLocalSettings.php. - Enjoy!
[edit] Usage
Fill the $wgMultiBoilerplateOptions variable with a list of boilerplate names to templates.
$wgMultiBoilerplateOptions[ "My Boilerplate" ] = "Template:My Boilerplate";
Alternatively set the variable to false and use the MediaWiki:Multiboilerplate page to set options.
LocalSettings.php: |
$wgMultiBoilerplateOptions = false; |
MediaWiki:Multiboilerplate: |
* My Boilerplate|Template:My Boilerplate |
Optionally set whether or not the selection box is displayed on pages that already exist (defaults to false) using $wgMultiBoilerplateOverwrite.
$wgMultiBoilerplateOverwrite = true;
An includable special page can be added that displays a list of boilerplates.
$wgMultiBoilerplateDiplaySpecialPage = true;
[edit] Releases
| Version | Release date | Comments |
|---|---|---|
| 1.1 | 2007-12-18 | Original version. |
| 1.2 | 2008-01-07 | Refactor code, fix major bug that made the extension useless and add comments. |
| 1.3 | 2008-01-19 | Use Xml:: instead of manually created HTML, converted all double-quotes to single-quotes, added an optional message multiboilerplate-label to display a label before the drop-down box, and rename multiboilerplate-select to multiboilerplate-legend and multiboilerplate-load to multiboilerplate-submit to be less ambiguous. |
| 1.4 | 2008-02-06 |
|
| 1.5 | 2008-02-06 | Now handles <noinclude> and<includeonly> tags. |
| 1.6 | 2008-02-26 |
|
| 1.7 | 2009-04-08 | Get boilerplates from content message when used, instead of user language message. |
| 1.8.0 | 2009-07-31 | Optional special page |