Extension:NewPageTemplateSelector
Appearance
Release status: stable |
|
|---|---|
| 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 (Nikolai Kochkin) |
| Latest version | 0.1.0 |
| MediaWiki | 1.36-1.45 |
| Licence | MIT License |
| Download | GitHub:
Note: |
The NewPageTemplateSelector extension is similar to InputBox "create" option but allows you to specify a list of templates to preload.
Please use github issues for leaving feedback, reporting issues and requesting features. I may miss your message on the Discussions tab
Installation
[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).
- Download and place the file(s) in a directory called
NewPageTemplateSelectorin yourextensions/folder. - Add the following code at the bottom of your LocalSettings.php file:
wfLoadExtension( 'NewPageTemplateSelector' );
Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
Usage
[edit]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:
