Jump to content

Extension:CreatePageUw

From mediawiki.org
MediaWiki extensions manual
CreatePageUw
Release status: stable
Implementation Special page
Description Adds Special:CreatePage - one-field form to create a new page.
Author(s) Edward Chernenkotalk
Latest version 0.1.0
Compatibility policy Snapshots releases along with MediaWiki. Master is not backward compatible.
MediaWiki 1.35+
License GNU General Public License 2.0 or later
Download
  • $wgCreatePageUwUseVE
Quarterly downloads 49 (Ranked 91st)
Translate the CreatePageUw extension if it is available at translatewiki.net

The CreatePageUw extension adds a special page (Special:CreatePage) that can be used to create a new page. This extension is a modern port of the precursing Uniwiki CreatePage extension.

Rationale

[edit]

New users often ask: "Where do I create a new page?":

You don't want to explain to them about redlinks, send them to some lengthy manual, etc.
Instead, with this extension, you can answer: on [[Special:CreatePage]].

Creating pages in other namespaces

[edit]

If the user asks "where do I create a new category", you can answer: on [[Special:CreatePage/Category]].

If user visits [[Special:CreatePage/Category]] and types "Cats" in the form, then new page will be called "Category:Cats".
This works with any existing namespace: [[Special:CreatePage/Template]] will create "Template:Cats", etc.

User can override it by explicitly typing the namespace prefix in the form. For example, if user visits [[Special:CreatePage/Help]], but types "Talk:Something", then newly created page will be "Talk:Something", not "Help:Something".

NOTE: we are purposely not adding a dropdown menu "Select namespace", because this extension is aimed at very new users, and they don't know what "namespace" is. The form must be as simple as possible to avoid confusing new users.

Installation

[edit]
  • Download and move the extracted CreatePageUw folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/CreatePageUw
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'CreatePageUw' );
    
  • Configure as required.
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration

[edit]

Optional parameters for LocalSettings.php :

  • $wgCreatePageUwUseVE = true; - use VisualEditor instead of the usual edit form.

Alternatives

[edit]