Extension:MultiBoilerplate
|
MultiBoilerplate 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 | ||
| Database changes | no | ||
| License | GNU General Public License 2.0 or later | ||
| Download |
SVN [?]:
#Releases |
||
|
|||
| Check usage and version matrix; stats | |||
| Bugs: list open list all report | |||
The MultiBoilerplate extension allows a boilerplate to be selected from a drop down box located above the edit form when editing non-existent 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 |
Installation[edit]
- Check out all extension files and place them in a MultiBoilerplate subdirectory within your MediaWiki extensions directory.
- Add
require_once( "$IP/extensions/MultiBoilerplate/MultiBoilerplate.php" );toLocalSettings.php. - Enjoy!
Usage[edit]
Use LocalSettings.php to configure MultiBoilerplate.
- To list the boilerplate pages:
$wgMultiBoilerplateOptions[ "My Boilerplate" ] = "Template:My Boilerplate";
$wgMultiBoilerplateOptions[ "My Other Boilerplate" ] = "Template:My Other Boilerplate";
$wgMultiBoilerplateOptions[ "Yet Another Boilerplate" ] = "Template:Yet Another Boilerplate";
- Alternative is:
$wgMultiBoilerplateOptions = false;
and use the MediaWiki:Multiboilerplate page to list boilerplate pages with the following format: * Name | Template
Example:
* My Boilerplate | Template:My Boilerplate
* My Other Boilerplate | Template:My Other Boilerplate
* Yet Another Boilerplate | Template:Yet Another Boilerplate
- You can set whether or not the selection box is displayed on pages that already exist (default is
false):
$wgMultiBoilerplateOverwrite = true;
- An includable special page
Special:boilerplatescan be added that displays a list of boilerplates.
$wgMultiBoilerplateDiplaySpecialPage = true;
Releases[edit]
| 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 |