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}}
▲
== General syntax ==
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=
</inputbox>
</pre>
Line 16 ⟶ 20:
== Box types ==
{| border="1" cellspacing="5" cellpadding="5" bgcolor="white" width="79%"
!Type
Line 24 ⟶ 28:
|
<inputbox>
type=
</inputbox>
|-
| colspan="2" | Generates a search box with a default width of 50 characters. The button labels can be specified, see
|-
! type=create
Line 35 ⟶ 39:
</inputbox>
|-
| colspan="2" | Allows
|-
! type=comment
Line 42 ⟶ 46:
type=comment
</inputbox>
|-
| 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.
|}
{{-}}
== Parameters ==
Line 54 ⟶ 58:
!Example
|-
||'''bgcolor='''<br />''All types''<br /> <br />Sets the table background color (HTML color values). Do not
|<pre><inputbox>
type=search
bgcolor=#eeeeff
</inputbox></pre>
<inputbox>
type=search
Line 70 ⟶ 74:
</inputbox></pre>
<inputbox>
type=
width=24
</inputbox>
Line 82 ⟶ 86:
type=comment
default=User talk:Eloquence
</inputbox>
|-
||'''preload='''<br />''comment'', ''create''<br /> <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>
|-
|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:
</inputbox></pre>
<inputbox>
Line 168 ⟶ 172:
{{h:f|langs=|enname=Inputbox}}
[[Category:MediaWiki extensions|Inputbox]]
|