Extension:Create Page
|
Create Page 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) | Jeroen De Dauw |
| MediaWiki | 1.18.0 or higher |
| PHP | 5.3 or above |
| Database changes | no |
| License | GNU GPL v3+ |
| Download | |
| Check usage and version matrix; stats | |
| Bugs: list open list all report | |
Contents |
Requirements[edit]
Create Page requires:
- MediaWiki 1.18 or above
- PHP 5.3 or above
Download[edit]
You can find the current version of Create Page on the Google Code download page, as well as a list of legacy downloads.
You can get the code directly from SVN. Tags can be obtained via
svn checkout http://svn.wikimedia.org/svnroot/mediawiki/tags/extensions/CreatePage/REL_version
Where 'version' is the version number of the tag, such as 0_1 (see the available tags). The latest code can be obtained from trunk:
svn checkout http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/CreatePage/
Installation[edit]
Once you have downloaded the code, place the CreatePage directory within your MediaWiki 'extensions' directory. Then add the following code to your LocalSettings.php file:
# Create Page require_once( "$IP/extensions/CreatePage/CreatePage.php" );
Usage[edit]
The input is placed using the #createpage parser function. It accepts 3 optional arguments. Namespace, default page name and submission button text, in that order.
Most simple usage, which will send the user to ?title=enteredPageName&action=edit&redlink=1, ie create enteredPageName if it does not exist yet.
{{#createpage}}
Create a page in the Course namespace.
{{#createpage|Course}}
A regularly behaving input, but with "Your page name" entered as default value.
{{#createpage||Your page name}}
Altering the text of the submission button.
{{#createpage|||Create this page!}}
Display the input on the same line as some text.
<p style="display:inline">Enter the name for a new course:</p> {{#createpage:Course||Create course}}
Version[edit]
This is a copy of the release notes file on SVN, which might be more up to date then this page.
Version 0.1[edit]
(2012-2-4)
Initial release.
Internationalization[edit]
Create Page is fully internationalized. Translation of Create Page messages is done through translatewiki.net. The translation for this extension can be found here. To add language values or change existing ones, you should create an account on translatewiki.net, then request permission from the administrators to translate a certain language or languages on this page (this is a very simple process). Once you have permission for a given language, you can log in and add or edit whatever messages you want to in that language.
Authors[edit]
Create Page has been written by Jeroen De Dauw as Wikimedia Foundation contractor for the Wikipedia Education Program.