From mediawiki.org
MediaWiki extensions manual
OOjs UI icon advanced-invert.svg
Release status: experimental
Implementation Tag
Description The NewPageTemplateSelector extension provides a tag to insert "create page" input box with a dropdown of templates to preload
Author(s) Urfiner
Latest version 0.1.0
MediaWiki 1.36
License MIT License

Check usage and version matrix.

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


Put something like that on your page:

    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:

NewPageTemplateSelector Extension.png

Installation and configuration[edit]

The extension tested on MediaWiki 1.36. 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' );