Extension:CreateAPage
CreateAPage Release status: beta |
|
---|---|
Implementation | Special page |
Description | Adds an easy to use interface for creating new articles |
Author(s) |
|
Latest version | 4.2 |
MediaWiki | 1.39+ |
License | GNU General Public License 2.0 or later |
Download | |
$wgCreatePageCoverRedLinks |
|
Quarterly downloads | 6 (Ranked 134th) |
Translate the CreateAPage extension if it is available at translatewiki.net | |
CreateAPage extension adds an easy to use interface for creating new articles. The interface is accessible at Special:CreatePage.
This extension was forked from r15554 of Wikia's version. Wikia dropped support entirely for this extension in February 2012.
Installation
[edit]- Download and move the extracted
CreateAPage
folder to yourextensions/
directory.
Developers and code contributors should install the extension from Git instead, using:cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/CreateAPage - Add the following code at the bottom of your LocalSettings.php file:
wfLoadExtension( 'CreateAPage' );
- Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
Usage
[edit]End-user
[edit]Go to Special:CreatePage
as a user who has the createpage
user right. Additionally, if the $wgCreatePageCoverRedLinks
option is set to true
in the wiki's LocalSettings.php file, users can choose on their preferences (Special:Preferences) to use the CreateAPage editor for all content namespace page creations.
Wiki administrator
[edit]You may need to customize the message MediaWiki:Createpage-template-infobox-format, especially if your wiki's content language is not English and your infobox templates are not prefixed with the prefix "Infobox". This message contains a regular expression that is used to determine what is and what isn't an infobox for the purposes of rendering an infobox via the CreateAPage interface.
Once that's done, you need to set up some createplates. Create the createplates you want (e.g. MediaWiki:Createplate-actor, MediaWiki:Createplate-character, etc. for a wiki about a television show or a movie/movie series) and ensure that these contain the necessary special markup needed; refer to the old Wikia help page for more info.
Once that's done, edit the list of available createplates at MediaWiki:Createplate-list to make the new createplates usable at Special:CreatePage for users. The syntax for that page is createplate name (e.g. actor in MediaWiki:Createplate-actor), followed by a pipe, followed by the name of the createplate as it should be displayed to end-users on Special:CreatePlate. Entries are separated by newlines. For example:
actor|Actor or actress character|In-universe character Blank|Other
You'll likely want to keep the blank createplate there to ensure nothing breaks and to offer users a less structured approach at creating a new page, because there are no doubt some cases where that is entirely warranted.
To-do list
[edit]- Rewrite not to require EasyTemplate (one day...); Mustache is the way to go nowadays
- Proper, extensive end-user documentation in addition to the Usage section above. For now, users can refer to the Wikia help page about CreateAPage; there's also this example createplate and the template it uses.
Parameters
[edit]$wgCreatePageCoverRedLinks
— if set to true, a new option ("Use CreatePage when following broken links") is added to Special:Preferences