Content deleted Content added
m 2nd attempt |
m TRANSWIKI from Meta |
||
Line 18:
== Box types ==
{| border="1" cellspacing="5" cellpadding="5
!Type
!Example
|
Generates a search box with a width of 50 characters<sup>1</sup>. The button labels can be specified, see below; the defaults are [[MediaWiki:Tryexact]] and [[MediaWiki:Searchfulltext]]. The text field specifies the search criteria.▼
|
<inputbox>
type=search
</inputbox>
|
▲| colspan="2" | Generates a search box with a default width of 50 characters
|-
! type=create
Allows creating a new page. Note especially the preload= and editintro= options below. The button label can be specified, see below; the default is [[MediaWiki:Createarticle]]. The text field specifies which page is to be edited.▼
|
<inputbox>
type=create
</inputbox>
|
▲| colspan="2" | Allows creating a new page
|-
! type=comment
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; the default is [[MediaWiki:Postcomment]]; note that this message is also used in the sidebar of the old "Standard" skin. The text field specifies which page is to be edited.▼
|
<inputbox>
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;
|}
== Parameters ==
Line 208 ⟶ 204:
Applying ''create '' to an existing page simply gives the edit page. In that case <tt>editintro</tt> and <tt>preload</tt> are ignored.
Applying ''comment '' for a new page works, if the page already exists <tt>editintro</tt> is ignored.
The texts taken from the <tt>MediaWiki:</tt> namespace are of course only examples, any existing page can be used for <tt>editintro</tt> or <tt>preload</tt>.
Unfortunately <tt>preload</tt> does not yet work for the [[Special:Upload]] summary.
==Caveats==
Line 230 ⟶ 228:
{{h:f|langs=|enname=Inputbox}}
|