Extension:NewPage
|
NewPage Release status: experimental |
|||
|---|---|---|---|
| Implementation | MyWiki, Special page | ||
| Description | A quick and simple wiki page creator | ||
| Author(s) | Kirbylover4000Talk | ||
| Last 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] | ||
|
|||
|
|||
|
Check usage (experimental) |
|||
Contents |
[edit] What can this extension do?
NewPage simply creates a new page from the title chosen at the Special Page.
[edit] Usage
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.
[edit] Download instructions
Please copy and paste the code found below and place it in $IP/extensions/MyPage/MyPage.php. [2]
[edit] Installation
To install this extension, add the following at the end LocalSettings.php:[3]
require_once("$IP/extensions/NewPage/NewPage.php");
[edit] Configuration parameters
[edit] $npUserpage
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!
[edit] User rights
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
[edit] Code
/** * * * * * * * * * * * * * * * * *
* 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.
* * * * * * * * * * * * * * * * * * */
[edit] Help Needed
If you would like to help me write NewPage, leave a message on my talk page () and I will send you a reply asap.
[edit] Notes
- ↑ 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.
- ↑ $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.
- ↑ 3.0 3.1 Make sure the require_once() is AFTER the variables you set for NewPage!