User:Kumark/Inputbox

Installation

 * 1) Download and save the files  and   to the extensions/inputbox/ folder of your MediaWiki installation. The most recent version of   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  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  is ignored. Applying comment &#160;for a new page works.

The texts taken from the  namespace are of course only examples, any existing page can be used for   or. Unfortunately  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  tag from the input box HTML and specified the   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,  , or   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