Release status: beta | |
|---|---|
| Implementation | Parser function, User interface |
| Description | Allows placing an input that takes the name of a new page into pages |
| Author(s) | |
| Latest version | 0.5.0 (2021-02-02) |
| MediaWiki | 1.35+ |
| PHP | 7.3+ |
| Database changes | No |
| |
| License | GNU General Public License 3.0 or later |
| Download | README RELEASE-NOTES |
TheCreate Page extension allows you to insert an input that takes the name of a new page into pages.
CreatePage folder to yourextensions/ directory.cdextensions/gitclonehttps://gerrit.wikimedia.org/r/mediawiki/extensions/CreatePagewfLoadExtension('CreatePage');
$wgCreatePageEditExistingfalse. Set totrue to edit existing pages.$wgCreatePageUseVisualEditorfalse. Set totrue to redirect to VisualEditor for page creation.The input is placed using the#createpage parser function. It accepts 3 optional arguments. Namespace, default page name, and submission button text are in that order.
Most simple usage, which will send the user to?title=enteredPageName&action=edit&redlink=1, i.e., create "enteredPageName" if it does not exist.
{{#createpage:}}
Create a page in the Course namespace:
{{#createpage:Course}}
A regularly behaving input, but with "Your page name" entered as the default value:
{{#createpage:|Your page name}}
Altering the text of the submission button:
{{#createpage:||Create this page!}}
Specifying the default content for the page to be created:
{{#createpage:|||Template:ScaffoldTemplateNameHere}}
Display the input on the same line as some text:
<pstyle="display:inline">Enter the name for a new course:</p> {{#createpage:Course||Create course}}
This extension was written byJeroen De Dauw as aWikimedia Foundation contractor for theWikipedia Education Program.
| This extension is included in the following wiki farms/hosts and/or packages: |