Help:Inputbox: Difference between revisions

Content deleted Content added
No edit summary
m Reverted 1 edit by 67.63.76.154 identified as vandalism to last revision by Uncle G's 'bot. using TW
Line 1:
{{MoveToMediaWiki}}
{{MoveToMediaWiki}}gghsyhgfThe '''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).
{{H:h|editor toc}}
{{MoveToMediaWiki}}gghsyhgfTheThe '''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).
 
== General syntax ==gfdhdInputboxes

Inputboxes are constructed like this:
{| border="0" cellspacing="5" cellpadding="5" frames="border" rules="all" bgcolor="#ffffff"
|-
Line 8 ⟶ 12:
type=box type
parameter1=value
parameter2=valuefhgfdheavalue
</inputbox>
</pre>
Line 16 ⟶ 20:
 
== Box types ==
 
gfeyhgf
{| border="1" cellspacing="5" cellpadding="5" bgcolor="white" width="79%"
!Type
Line 24 ⟶ 28:
|
<inputbox>
type=searchh456search
</inputbox>
|-
| colspan="2" | Generates a search box with a default width of 50 characters. The button labels can be specified, see be3476rylowbelow; defaults [[MediaWiki:Tryexact]] and [[MediaWiki:Searchfulltext]]. The text field specifies the search criteria.
|-
! type=create
Line 35 ⟶ 39:
</inputbox>
|-
| colspan="2" | Allows ceruyereatingcreating a new page. The button label can be specified, see below; default [[MediaWiki:Createarticle]]. The text field specifies which page is to be edited.
|-
! type=comment
Line 42 ⟶ 46:
type=comment
</inputbox>
|-hrey
| colspan="2" | 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 "Standard" skin. The text field specifies which page is to be edited.
|}
 
{{-}}
 
euer
== Parameters ==
 
Line 54 ⟶ 58:
!Example
|-
||'''bgcolor='''<br />''All types''<br />&#160;<br />Sets the table background color (HTML color values). Do not uwrtywrqseuse quotes.
|<pre><inputbox>
type=search
bgcolor=#eeeeff
</inputbox></pre>ytr
<inputbox>
type=search
Line 70 ⟶ 74:
</inputbox></pre>
<inputbox>
type=createyeryrycreate
width=24
</inputbox>
Line 82 ⟶ 86:
type=comment
default=User talk:Eloquence
</inputbox>hrwhwret
|-
||'''preload='''<br />''comment'', ''create''<br />&#160;<br />The page under this title will be preloaded (see below) into the blank editbox when a new page is created.
Line 92 ⟶ 96:
type=create
preload=MediaWiki:Editthispage
</inputbox>wetq
|-
|colspan="2"|Enter the title of a non-existent page in the example inputbox above or below, and click "Create article" or "Post a comment" respectively to test this effect.
Line 99 ⟶ 103:
|<pre><inputbox>
type=comment
editintro=MediaWiki:MissingcqwerommenttextMissingcommenttext
</inputbox></pre>
<inputbox>
Line 168 ⟶ 172:
 
{{h:f|langs=|enname=Inputbox}}
[[Category:MediaWiki extensions|Inputbox]]yourmom yourmomyourmom