Help:Inputbox: Difference between revisions

Content deleted Content added
Omniplex (talk | contribs)
m 2nd attempt
Omniplex (talk | contribs)
m TRANSWIKI from Meta
Line 18:
== Box types ==
 
{| border="1" cellspacing="5" cellpadding="5" frames="border" rules="all" bgcolor="#ffffffwhite" width="8079%"
!Type
!Description
!Example
|---
|'''<font! id="type_search" />type=search'''
|width="30%"|
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<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.
|'''<font id="type_create" />type=create'''
|-
|width="30%"|
! 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. 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.
|'''<font id="type_comment" />type=comment'''
|-
|width="30%"|
! 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
editintro=Template:Instructions
</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; 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.
|}
 
'''Note <sup>1</sup> :''' The default width doesn't work on old browsers resulting in an input box for one character. Specify a width explicitly (see below), <tt>width=</tt>''n'' works best with ''n'' &lt;= 50 characters for narrow browser windows.
 
== Parameters ==
Line 208 ⟶ 204:
 
Applying ''create ''&#160;to an existing page simply gives the edit page. In that case <tt>editintro</tt> and <tt>preload</tt> are ignored.
Applying ''comment ''&#160;for a new page works, if the page already exists <tt>editintro</tt> is ignored. The texts taken from the
 
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}}
[[Category:MediaWiki extensions|Inputbox]]