Extension:InputBox

Installation

 * 1) Download and save the files inputbox.php and InputBox.i18n.php to the extensions/inputbox/ folder of your MediaWiki installation. The most recent version of inputbox.php may not work on older MediaWiki installations. Version 1.17 works for MediaWiki 1.6.8.

You can as well check out from the subversion repository directly to the $IP/extensions/ folder, if you so wish:
 * 1) Open and edit the LocalSettings.php file by adding the following line near the bottom:

Example
This kind was found on the main page of a Wikipedia. It could be used for starting new articles, since it doesn’t go to the edit box of articles that already exist.

The Inputbox extension is a MediaWiki extension by Erik Möller to add predefined HTML forms to wiki pages. It was originally created for the purpose of adding a Create an article box to Wikinews. It requires at least MediaWiki 1.5 and an extensions script (see above).

General syntax
Inputboxes are constructed like this:

The type parameter is mandatory. All other parameters are optional.

Parameters
Applying create &#160;to an existing page simply gives the edit page. In that case preload is ignored. Applying comment &#160;for a new page works.

The texts taken from the MediaWiki: namespace are of course only examples, any existing page can be used for editintro or preload. Unfortunately preload</tt> does not yet work for the Special:Upload summary.

Please note that variables, templates, parser functions and template parameters are not supported in inputbox parameters.

Alignment enhancement
I found that there was a need to define alignment each time I use an input box. I could have just removed the div</tt> tag from the input box HTML and specified the div</tt> when posting the inputbox. Instead I added a parameter that allows you to define the align in the code.

To use this, get an updated copy of the code here then you can specify align=left</tt>, align=center</tt>, or align=right</tt> with the other parameters.

I hope you find it useful.

Known bugs

 * 5210 - and tags are not respected from a preloaded template.
 * 11777 - Multiple inputboxes make page invalid due to repetitive similar id