Extension:CreateBox

From MediaWiki.org

Jump to: navigation, search
Manual on MediaWiki Extensions
List of MediaWiki Extensions
CreateBox

Release status: stable

Implementation Tag, Page action
Description Inputbox designed for page creation
Author(s) Ross McClure
Version 1.5 (2007-05-19)
MediaWiki 1.7 and above
Download SVN
Example undefined.net
Hooks used

UnknownAction

CreateBox is a specialized version of Inputbox that focuses on page creation.

If a user were to attempt to create a page that already exists, Inputbox allows the user do so, and disregards any preloaded content or edit introductions. CreateBox, by contrast, directs the user to an error page where they can enter a different page name, and all specified properties are preserved.

Contents

[edit] Parameters

CreateBox handles parameters in the same manner as Inputbox. Example:

 <createbox>
 parameter1=value
 parameter2=value
 </createbox>

All parameters to CreateBox are optional.

  • align: Sets the alignment of the div which contains CreateBox. Defaults to center.
  • break: If set to "yes", this inserts a line break between the text field and button.
  • buttonlabel: Sets the text of the Create button.
  • default: Sets the default text of the input box.
  • editintro: Specifies a page title. The given page will be included prior to the submission form in the Edit screen.
  • prefix: Specifies a title fragment, which will prefix the submitted title.
  • preload: Specifies a page title. The contents of the given page will be preloaded into the submission form.
  • width: Sets the width of the input box.

[edit] MediaWiki messages

Createbox specifies two messages in the MediaWiki: namespace.

  • MediaWiki:Create - The word "Create".
  • MediaWiki:Create_exists - The text of the error page shown when an article already exists.

[edit] Code

Download the code from SVN.

[edit] See also

Personal tools