Open main menu
MediaWiki extensions manual
OOjs UI icon advanced.svg
NewPage
Release status: experimental
Implementation MyWiki , Special page
Description A quick and simple wiki page creator
Author(s) Kirbylover4000talk
Latest version 1.0.0.0 b2
MediaWiki 1.14+
PHP 5
License No license specified
Download below the code is not here
Example http://wiki.worldwrestlingmania.cjb.net/wiki/Special:NewPage[1]
User-defined
Translate the NewPage extension if it is available at translatewiki.net
Check usage and version matrix.

What can this extension do?Edit

NewPage simply creates a new page from the title chosen at the Special Page.

UsageEdit

NewPage is simply operated by navigating to the [[Special:NewPage]] page, entering the appropriate information and clicking Create, which leads the user to the MediaWiki editor page, where they can start editing the page.

Download instructionsEdit

Please copy and paste the code found below and place it in $IP/extensions/MyPage/MyPage.php. [2]

InstallationEdit

To install this extension, add the following at the end LocalSettings.php:[3]

require_once("$IP/extensions/NewPage/NewPage.php");

Configuration parametersEdit

$npUserpageEdit

Set this to true to only let users create subpages of their userpage (e.g. "User:Foo/Bar" instead of just "Bar"). If you don't want this, it must be set to false. This variable is required: you might get a PHP error if it isn't defined!

User rightsEdit

User rights can be user-defined by entering entries to $wgGroupPermissions in LocalSettings.php. for example:[3]

 $wgGroupPermissions["sysop"]["newpage"] = true; #allow sysops to use NewPage
 $wgGroupPermissions["anonymous"]["newpage"] = false; #deny anonymous users of NewPage

CodeEdit

 /** * * * * * * * * * * * * * * * * *
 * Code currently not available
 * until a stable version of 
 * NewPage is released.
 * * * * * * * * * * * * * * * * * * *
 * I apologise for the inconvenience.
 * If you want to help me write
 * the extension, see below.
 * * * * * * * * * * * * * * * * * * */

Help NeededEdit

If you would like to help me write NewPage, leave a message on my talk page () and I will send you a reply asap.

NotesEdit

  1. I didn't format the example page as a link because my free web hosting service is in Wikimedia's URL block list. I swear to gosh there is no spamming content on my website.
  2. $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.
  3. 3.0 3.1 Make sure the require_once() is AFTER the variables you set for NewPage!