Extension:CreateAPage

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.

Installation

 * 1) Dump the files into $IP/extensions/CreateAPage
 * 2) Add require_once("$IP/extensions/CreateAPage/CreatePage.php"); into the wiki's LocalSettings.php
 * 3) Installation can now be verified through the wiki's Special:Version

To-do list

 * 1) End-user documentation (for now, users can refer to the Wikia help page about CreateAPage)
 * 2) Fix ConfirmEdit by adding a hook into its body file &mdash; see http://trac.wikia-code.com/changeset?new=6990@wikia%2Ftrunk%2Fextensions%2FConfirmEdit&old=1711@wikia%2Ftrunk%2Fextensions%2FConfirmEdit
 * 3) Rewrite not to require EasyTemplate and YUI (one day...)
 * 4) JS rewrite almost done on 2 October 2011, but there are some bugs:
 * 5) Overlay bugs &mdash; see CreateAPage.resizeOverlay
 * 6) $IP/resources/jquery.ui/jquery.ui.dialog.js is not loaded despite that it's registered as a dependency in the module registration
 * 7) mw.msg does not work &mdash; &lt;message-name&gt; is returned instead of message text from the i18n file
 * 8) Clicking on a createplate on the createplate selector on Special:CreatePage gives the templateFrameSelected class to the wrong element (it seems to be the last one, no matter how many createplates you have and which one you click on) &mdash; the associated function is CreateAPage.switchTemplate
 * 9) Various stuff reported by Dantman:
 * 10) Use encodeURIComponent instead of escape
 * 11) var previewarea = jQuery( '#createpagepreview' );if ( !cDone && ( previewarea === null ) ) { makes no sense
 * 12) fontSize = '10pt';
 * 13) eval is evil
 * 14) See if PocketSilentArticle is still needed and if not, remove it

Parameters

 * $wgCreatePageCoverRedLinks &mdash; if set to true, a new option ("Use CreatePage when following broken links") is added to Special:Preferences