<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://72.14.177.54/skins/common/feed.css?207"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>Help:Inputbox - Revision history</title>
		<link>http://72.14.177.54/phonology/?title=Help:Inputbox&amp;action=history</link>
		<description>Revision history for this page on the wiki</description>
		<language>en</language>
		<generator>MediaWiki 1.15.1</generator>
		<lastBuildDate>Sun, 14 Jun 2026 11:38:28 GMT</lastBuildDate>
		<item>
			<title>Admin at 13:49, 13 August 2006</title>
			<link>http://72.14.177.54/phonology/?title=Help:Inputbox&amp;diff=1399&amp;oldid=prev</link>
			<description>&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{H:h|editor toc}}&lt;br /&gt;
The '''inputbox''' extension is a [[m:MediaWiki|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 [[m:Wikinews|Wikinews]]. It requires MediaWiki 1.5 and an extensions script (see ''Installation'' below).&lt;br /&gt;
&lt;br /&gt;
== General syntax ==&lt;br /&gt;
&lt;br /&gt;
Inputboxes are constructed like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 &amp;lt;inputbox&amp;gt;&lt;br /&gt;
 type=box type&lt;br /&gt;
 parameter1=value&lt;br /&gt;
 parameter2=value&lt;br /&gt;
 &amp;lt;/inputbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The ''type'' parameter is mandatory. All other parameters are optional.&lt;br /&gt;
&lt;br /&gt;
== Box types ==&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;5&amp;quot; cellpadding=&amp;quot;5&amp;quot; bgcolor=&amp;quot;white&amp;quot; width=&amp;quot;79%&amp;quot;&lt;br /&gt;
!Type&lt;br /&gt;
!Example&lt;br /&gt;
|-&lt;br /&gt;
! type=search&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;inputbox&amp;gt;&lt;br /&gt;
type=search&lt;br /&gt;
&amp;lt;/inputbox&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | Generates a search box with a default width of 50 characters. The button labels can be specified, see below; defaults [[MediaWiki:Tryexact]] and [[MediaWiki:Searchfulltext]]. The text field specifies the search criteria.&lt;br /&gt;
|-&lt;br /&gt;
! type=create&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;inputbox&amp;gt;&lt;br /&gt;
type=create&lt;br /&gt;
&amp;lt;/inputbox&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | Allows creating a new page. The button label can be specified, see below; default [[MediaWiki:Createarticle]]. The text field specifies which page is to be edited.&lt;br /&gt;
|-&lt;br /&gt;
! type=comment&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;inputbox&amp;gt;&lt;br /&gt;
type=comment&lt;br /&gt;
&amp;lt;/inputbox&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | Add one or more sections to an existing page, or create a page, with an edit summary that is automatically the same as the (first) new section header. The button label can be specified, see below; default [[MediaWiki:Postcomment]] also used in the sidebar of the &amp;quot;Standard&amp;quot; skin.  The text field specifies which page is to be edited.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;5&amp;quot; cellpadding=&amp;quot;5&amp;quot; frames=&amp;quot;border&amp;quot; rules=&amp;quot;all&amp;quot; bgcolor=&amp;quot;#ffffff&amp;quot;&lt;br /&gt;
!Parameter&amp;lt;br/&amp;gt;''Scope''&lt;br /&gt;
!Description&lt;br /&gt;
!Example&lt;br /&gt;
|---&lt;br /&gt;
|&lt;br /&gt;
'''&amp;lt;font id=&amp;quot;par_bgcolor&amp;quot; /&amp;gt;bgcolor='''&amp;lt;br/&amp;gt;&lt;br /&gt;
''All types''&lt;br /&gt;
|width=&amp;quot;30%&amp;quot;|Sets the table background color (HTML color values). Do not use quotes.&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;inputbox&amp;gt;&lt;br /&gt;
type=search&lt;br /&gt;
bgcolor=#eeeeff&lt;br /&gt;
&amp;lt;/inputbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''produces:''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;inputbox&amp;gt;&lt;br /&gt;
type=search&lt;br /&gt;
bgcolor=#eeeeff&lt;br /&gt;
&amp;lt;/inputbox&amp;gt;&lt;br /&gt;
|---&lt;br /&gt;
|&lt;br /&gt;
'''&amp;lt;font id=&amp;quot;par_width&amp;quot; /&amp;gt;width='''&amp;lt;br/&amp;gt;&lt;br /&gt;
''All types''&lt;br /&gt;
|width=&amp;quot;30%&amp;quot;|Sets the width of the inputbox in characters, '''required''' for old browsers (see above).&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;inputbox&amp;gt;&lt;br /&gt;
type=create&lt;br /&gt;
width=6&lt;br /&gt;
&amp;lt;/inputbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''produces:''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;inputbox&amp;gt;&lt;br /&gt;
type=create&lt;br /&gt;
width=6&lt;br /&gt;
&amp;lt;/inputbox&amp;gt;&lt;br /&gt;
|---&lt;br /&gt;
|&lt;br /&gt;
'''&amp;lt;font id=&amp;quot;par_default&amp;quot; /&amp;gt;default='''&amp;lt;br/&amp;gt;&lt;br /&gt;
''All types''&lt;br /&gt;
|width=&amp;quot;30%&amp;quot;|Default text to put in the inputbox.&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;inputbox&amp;gt;&lt;br /&gt;
type=comment&lt;br /&gt;
default=User talk:Eloquence&lt;br /&gt;
&amp;lt;/inputbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''produces:''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;inputbox&amp;gt;&lt;br /&gt;
type=comment&lt;br /&gt;
default=User talk:Eloquence&lt;br /&gt;
&amp;lt;/inputbox&amp;gt;&lt;br /&gt;
|---&lt;br /&gt;
|'''&amp;lt;font id=&amp;quot;par_preload&amp;quot; /&amp;gt;preload='''&amp;lt;br/&amp;gt;&lt;br /&gt;
''comment'', ''create''&lt;br /&gt;
&lt;br /&gt;
|width=&amp;quot;30%&amp;quot;|The text of the page under this title will be loaded into the blank editbox when a new page is created. Enter the title of a non-existent page in the example inputbox, and click &amp;quot;Create&amp;quot; to test this effect.&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;inputbox&amp;gt;&lt;br /&gt;
type=create&lt;br /&gt;
width=20&lt;br /&gt;
preload=MediaWiki:Editthispage&lt;br /&gt;
&amp;lt;/inputbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''produces:''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;inputbox&amp;gt;&lt;br /&gt;
type=create&lt;br /&gt;
width=20&lt;br /&gt;
preload=MediaWiki:Editthispage&lt;br /&gt;
&amp;lt;/inputbox&amp;gt;&lt;br /&gt;
|---&lt;br /&gt;
|'''&amp;lt;font id=&amp;quot;par_editintro&amp;quot; /&amp;gt;editintro='''&amp;lt;br/&amp;gt;''comment'', ''create''&lt;br /&gt;
|width=&amp;quot;30%&amp;quot;|The text of the page under this title will be added, as instructions, ''before'' the submission form for '''new''' pages. Enter the title of a non-existent page in the example inputbox, and click &amp;quot;Create&amp;quot; to test this effect.&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;inputbox&amp;gt;&lt;br /&gt;
type=comment&lt;br /&gt;
width=20&lt;br /&gt;
editintro=MediaWiki:Missingcommenttext&lt;br /&gt;
&amp;lt;/inputbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''produces:''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;inputbox&amp;gt;&lt;br /&gt;
type=comment&lt;br /&gt;
width=20&lt;br /&gt;
editintro=Mediawiki:Missingcommenttext&lt;br /&gt;
&amp;lt;/inputbox&amp;gt;&lt;br /&gt;
|---&lt;br /&gt;
|'''&amp;lt;font id=&amp;quot;par_buttonlabel&amp;quot; /&amp;gt;buttonlabel='''&amp;lt;br/&amp;gt;''All types''&lt;br /&gt;
|width=&amp;quot;30%&amp;quot;|This label will be used for the main button of the form.&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;inputbox&amp;gt;&lt;br /&gt;
type=comment&lt;br /&gt;
buttonlabel=Add new rumor&lt;br /&gt;
&amp;lt;/inputbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''produces:''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;inputbox&amp;gt;&lt;br /&gt;
type=comment&lt;br /&gt;
buttonlabel=Add new rumor&lt;br /&gt;
&amp;lt;/inputbox&amp;gt;&lt;br /&gt;
|---&lt;br /&gt;
|'''&amp;lt;font id=&amp;quot;par_searchbuttonlabel&amp;quot; /&amp;gt;searchbuttonlabel='''&amp;lt;br/&amp;gt;''search''&lt;br /&gt;
|width=&amp;quot;30%&amp;quot;|This label will be used for the &amp;quot;Search full text&amp;quot; button of the search form.&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;inputbox&amp;gt;&lt;br /&gt;
type=search&lt;br /&gt;
searchbuttonlabel=Dig deeper&lt;br /&gt;
&amp;lt;/inputbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''produces:''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;inputbox&amp;gt;&lt;br /&gt;
type=search&lt;br /&gt;
searchbuttonlabel=Dig deeper&lt;br /&gt;
&amp;lt;/inputbox&amp;gt;&lt;br /&gt;
|---&lt;br /&gt;
|'''&amp;lt;font id=&amp;quot;par_break&amp;quot; /&amp;gt;break='''&amp;lt;br/&amp;gt;''yes''&lt;br /&gt;
|width=&amp;quot;30%&amp;quot;|Whether or not to insert a line break between the input box and the button(s). Defaults to using the line break unless set to '''no'''.&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;inputbox&amp;gt;&lt;br /&gt;
type=create&lt;br /&gt;
break=no&lt;br /&gt;
&amp;lt;/inputbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''produces:''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;inputbox&amp;gt;&lt;br /&gt;
type=create&lt;br /&gt;
break=no&lt;br /&gt;
&amp;lt;/inputbox&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Applying ''create ''&amp;amp;#160;to an existing page simply gives the edit page. In that case &amp;lt;tt&amp;gt;editintro&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;preload&amp;lt;/tt&amp;gt; are ignored.&lt;br /&gt;
Applying ''comment ''&amp;amp;#160;for a new page works, if the page already exists &amp;lt;tt&amp;gt;editintro&amp;lt;/tt&amp;gt; is ignored. &lt;br /&gt;
&lt;br /&gt;
The texts taken from the &amp;lt;tt&amp;gt;MediaWiki:&amp;lt;/tt&amp;gt; namespace are of course only examples, any existing page can be used for &amp;lt;tt&amp;gt;editintro&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;preload&amp;lt;/tt&amp;gt;.&lt;br /&gt;
Unfortunately &amp;lt;tt&amp;gt;preload&amp;lt;/tt&amp;gt; does not yet work for the [[Special:Upload]] summary.&lt;br /&gt;
&lt;br /&gt;
==Caveats==&lt;br /&gt;
* Variables, parameters, and templates are not allowed in values of parameters of inputbox; see [[Template talk:Inputbox demo]].&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
#Download and save the file [http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/inputbox/inputbox.php inputbox.php] to the ''extensions'' folder of your MediaWiki installation. Make sure you use this link to download the extension, as the latest version in CVS does not work with the current MediaWiki release branch.&lt;br /&gt;
#Open and edit the [[LocalSettings.php]] file by adding the following line near the bottom:&lt;br /&gt;
&amp;lt;pre&amp;gt;require_once(&amp;amp;quot;extensions/inputbox.php&amp;amp;quot;);&amp;lt;/pre&amp;gt;&lt;br /&gt;
NOTE: Make sure that it is still above the closing php tag so that it looks like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
require_once(&amp;amp;quot;extensions/inputbox.php&amp;amp;quot;);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;!-- I make the installation more specific because adding the require_once at the top of the LocalSettings.php file (still under the opening &amp;quot;&amp;lt;?php&amp;quot; tag didn't work for me.  Putting the line near the bottom of the file did.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
*[[Template talk:New city in Morocco]].&lt;br /&gt;
*[[w:Wikipedia:Village pump (proposals)#User talk inputbox]]&lt;br /&gt;
&lt;br /&gt;
{{h:f|langs=|enname=Inputbox}}&lt;/div&gt;</description>
			<pubDate>Sun, 13 Aug 2006 13:49:32 GMT</pubDate>			<dc:creator>Admin</dc:creator>			<comments>http://72.14.177.54/phonology/Help_talk:Inputbox</comments>		</item>
	</channel>
</rss>