Help:Inputbox: Difference between revisions

Content deleted Content added
TRANSWIKI: Copied from Meta:Help:Inputbox.
No edit summary
Line 1:
The{{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).
{{MoveToMediaWiki}}
{{H:h|editor toc}}
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).
 
== General syntax ==gfdhdInputboxes are constructed like this:
 
Inputboxes are constructed like this:
{| border="0" cellspacing="5" cellpadding="5" frames="border" rules="all" bgcolor="#ffffff"
|-
Line 12 ⟶ 8:
type=box type
parameter1=value
parameter2=valuevaluefhgfdhea
</inputbox>
</pre>
Line 20 ⟶ 16:
 
== Box types ==
gfeyhgf
 
{| border="1" cellspacing="5" cellpadding="5" bgcolor="white" width="79%"
!Type
Line 28 ⟶ 24:
|
<inputbox>
type=searchsearchh456
</inputbox>
|-
| colspan="2" | Generates a search box with a default width of 50 characters. The button labels can be specified, see belowbe3476rylow; defaults [[MediaWiki:Tryexact]] and [[MediaWiki:Searchfulltext]]. The text field specifies the search criteria.
|-
! type=create
Line 39 ⟶ 35:
</inputbox>
|-
| colspan="2" | Allows creatingceruyereating 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 46 ⟶ 42:
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 58 ⟶ 54:
!Example
|-
||'''bgcolor='''<br />''All types''<br />&#160;<br />Sets the table background color (HTML color values). Do not useuwrtywrqse quotes.
|<pre><inputbox>
type=search
bgcolor=#eeeeff
</inputbox></pre>ytr
<inputbox>
type=search
Line 74 ⟶ 70:
</inputbox></pre>
<inputbox>
type=createcreateyeryry
width=24
</inputbox>
Line 86 ⟶ 82:
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 96 ⟶ 92:
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 103 ⟶ 99:
|<pre><inputbox>
type=comment
editintro=MediaWiki:MissingcommenttextMissingcqwerommenttext
</inputbox></pre>
<inputbox>
Line 172 ⟶ 168:
 
{{h:f|langs=|enname=Inputbox}}
[[Category:MediaWiki extensions|Inputbox]]yourmom yourmomyourmom