Extension:NewPageTemplateSelector

Category:Extensions without an imageCategory:Extensions without a compatibility policyCategory:MIT licensed extensions
MediaWiki extensions manual
NewPageTemplateSelector
Release status: stableCategory:Stable extensions
Implementation Tag Category:Tag extensions
Description The NewPageTemplateSelector extension provides a tag to insert "create page" input box with a dropdown of templates to preload
Author(s) Urfiner (Nikolai Kochkin)
Latest version 0.1.0
MediaWiki 1.36-1.43Category:Extensions with manual MediaWiki version
License MIT License
Download Category:Extensions in GitHub version control
Category:All extensionsCategory:Extensions not in ExtensionJson

The NewPageTemplateSelector extension is similar to InputBox "create" option but allows you to specify a list of templates to preload.

Usage

Put something like that on your page:

 <NewPageTemplateSelector 
    templates="Empty article, Template:Template name 1, Template:Template name 2" 
    placeholder="Please enter page name"
/>

And save the page. You will see something like this:


Installation and configuration

The extension tested on MediaWiki 1.36-1.43. Probably it will work on 1.32+ (the used hooks are quite old and the newest part of it is OOUI which is still relatively old).

To install the extension:

  1. Clone the repository to your extensions/ subfolder: git clone https://github.com/Griboedow/NewPageTemplateSelector.git
  2. Load the extension in your LocalSettings.php: wfLoadExtension( 'NewPageTemplateSelector' );

Done!

Category:Simple extensions Category:Page creation extensions
Category:All extensions Category:Extensions in GitHub version control Category:Extensions not in ExtensionJson Category:Extensions with manual MediaWiki version Category:Extensions without a compatibility policy Category:Extensions without an image Category:MIT licensed extensions Category:OutputPageParserOutput extensions Category:Page creation extensions Category:ParserFirstCallInit extensions Category:Simple extensions Category:Stable extensions Category:Tag extensions