Extension:CreateBox

From MediaWiki.org
Jump to: navigation, search
Manual on MediaWiki Extensions
List of MediaWiki Extensions
Crystal Clear action run.png
CreateBox

Release status: stable

Implementation Tag, Page action
Description Inputbox designed for page creation
Author(s) Ross McClure
Last Version 1.6 (2008-06-07)
MediaWiki 1.11+
License GPLv2+ [1]
Download SVN
Older version for pre-1.11 wikis
Example undefined.net

check usage (experimental)

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.

[edit] MediaWiki messages

CreateBox specifies two messages in the MediaWiki: namespace.

[edit] Code

Download the code from SVN.

[edit] Installation

  1. download from SVN.
  2. add
    require_once("{$IP}/extensions/CreateBox/CreateBox.php");
    
    to LocalSettings.php
  3. test it with #Parameters and #MediaWiki messages.

[edit] Optional Use

If you want a text box to show default text (without a button of any sort), just delete line 123 out of CreateBox.php

Uses could be to have a line of text too long but to be accessible by users (BBCode to copy and paste outside of wiki) without that text clogging up the page.

[edit] See also

Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Toolbox