사용자:하늘/참고/OO.UI: 두 판 사이의 차이

편집 요약 없음
편집 요약 없음
12번째 줄: 12번째 줄:
fulltextbutton={{{fulltextbutton|}}}
fulltextbutton={{{fulltextbutton|}}}
labeltext={{{labeltext|}}}
labeltext={{{labeltext|}}}
break={{{break|}}}
namespaces={{{이름공간|}}}
namespaces={{{namespaces|}}}
prefix={{{경로|}}}
prefix={{{prefix|}}}
placeholder={{{placeholder|}}}
placeholder={{{placeholder|}}}
minor={{{minor|}}}
minor={{{잔글|}}}
nosummary={{{nosummary|}}}
nosummary={{{요약없음|}}}
summary={{{summary|}}}
summary={{{요약|}}}
id={{{id|}}}
id={{{id|}}}
inline={{{inline|}}}
dir={{{dir|}}}
dir={{{dir|}}}
preloadparams[]=
preloadparams[]=
searchfilter={{{searchfilter|}}}
searchfilter={{{검색필터|}}}
useve={{{useve|}}}
useve={{{useve|}}}
arialabel={{{arialabel|}}}
arialabel={{{arialabel|}}}
29번째 줄: 27번째 줄:


== Parameters ==  
== Parameters ==  
{| class="wikitable"
{| class="wikitable"
!  Parameter  
!  Parameter  
!  Description  
!  Description  
!  Scope  
!  Scope  
!  Compatibility
!  Example  
!  Example  
!  Result
!  Result
42번째 줄: 37번째 줄:
|Supply the aria-label attribute to the inputbox to allow generated markup be accessible to screen readers
|Supply the aria-label attribute to the inputbox to allow generated markup be accessible to screen readers
| All types
| All types
|
|<syntaxhighlight lang="html"><inputbox>
|<syntaxhighlight lang="html"><inputbox>
type=search
type=search
55번째 줄: 49번째 줄:
|  Do not use quotes.
|  Do not use quotes.
|  All types
|  All types
|''?''
|<syntaxhighlight lang="html"><inputbox>
|<syntaxhighlight lang="html"><inputbox>
type=search
type=search
68번째 줄: 61번째 줄:
|  Sets the width of the InputBox in characters.
|  Sets the width of the InputBox in characters.
|  All types
|  All types
|''?''
|<syntaxhighlight lang="html"><inputbox>
|<syntaxhighlight lang="html"><inputbox>
type=create
type=create
81번째 줄: 73번째 줄:
|  Default text to put in the InputBox.
|  Default text to put in the InputBox.
|  All types
|  All types
|''?''
|<syntaxhighlight lang="html"><inputbox>
|<syntaxhighlight lang="html"><inputbox>
type=comment
type=comment
94번째 줄: 85번째 줄:
|  The page under this title will be preloaded (see ) into the blank editbox when a new page is created.
|  The page under this title will be preloaded (see ) into the blank editbox when a new page is created.
| create, comment, commenttitle
| create, comment, commenttitle
|''?''
|<syntaxhighlight lang="html"><inputbox>
|<syntaxhighlight lang="html"><inputbox>
type=create
type=create
109번째 줄: 99번째 줄:
|  The page which is given under this parameter will be shown, as instructions, ''above'' the editing window.
|  The page which is given under this parameter will be shown, as instructions, ''above'' the editing window.
| create, comment
| create, comment
|''?''
|<syntaxhighlight lang="html"><inputbox>
|<syntaxhighlight lang="html"><inputbox>
type=comment
type=comment
122번째 줄: 111번째 줄:
|  This label will be used for the main button of the form.
|  This label will be used for the main button of the form.
|  All types
|  All types
|''?''
|<syntaxhighlight lang="html"><inputbox>
|<syntaxhighlight lang="html"><inputbox>
type=comment
type=comment
137번째 줄: 125번째 줄:
  It is used with parameter "", now not being a default, but the fixed value of the name of the page.
  It is used with parameter "", now not being a default, but the fixed value of the name of the page.
|create, comment
|create, comment
|''?''
|<syntaxhighlight lang="html"><inputbox>
|<syntaxhighlight lang="html"><inputbox>
type=comment
type=comment
158번째 줄: 145번째 줄:
|  This label will be used for the "Search full text" button of the search form.
|  This label will be used for the "Search full text" button of the search form.
| search, fulltext
| search, fulltext
|''?''
|<syntaxhighlight lang="html"><inputbox>
|<syntaxhighlight lang="html"><inputbox>
type=search
type=search
171번째 줄: 157번째 줄:
|  Show the full text search button on search2 form
|  Show the full text search button on search2 form
|search2
|search2
|''?''
|<syntaxhighlight lang="html"><inputbox>
|<syntaxhighlight lang="html"><inputbox>
type=search2
type=search2
186번째 줄: 171번째 줄:
|  Text to print beside the button
|  Text to print beside the button
|search2
|search2
|''?''
|<syntaxhighlight lang="html"><inputbox>
|<syntaxhighlight lang="html"><inputbox>
type=search2
type=search2
201번째 줄: 185번째 줄:
|  Defaults to  (use a line break).
|  Defaults to  (use a line break).
|  All types
|  All types
|''?''
|<syntaxhighlight lang="html"><inputbox>
|<syntaxhighlight lang="html"><inputbox>
type=create
type=create
218번째 줄: 201번째 줄:
  With "", main article namespace is checked by default.
  With "", main article namespace is checked by default.
| search, fulltext
| search, fulltext
|''?''
|<syntaxhighlight lang="html"><inputbox>
|<syntaxhighlight lang="html"><inputbox>
type=search
type=search
242번째 줄: 224번째 줄:


|search, fulltext, create
|search, fulltext, create
|''?''
|<syntaxhighlight lang="html"><inputbox>
|<syntaxhighlight lang="html"><inputbox>
type=search
type=search
266번째 줄: 247번째 줄:
|  Define placeholder text that will display in the input box when it is empty.
|  Define placeholder text that will display in the input box when it is empty.
|  All types
|  All types
|
|<syntaxhighlight lang="html"><inputbox>
|<syntaxhighlight lang="html"><inputbox>
type=search
type=search
279번째 줄: 259번째 줄:
|  Page to posts comment to, or page to move.
|  Page to posts comment to, or page to move.
| comment, move
| comment, move
|
|<syntaxhighlight lang="html"><inputbox>
|<syntaxhighlight lang="html"><inputbox>
type=comment
type=comment
292번째 줄: 271번째 줄:
|  Minor edit.
|  Minor edit.
| comment, create
| comment, create
|
|<syntaxhighlight lang="html"><inputbox>
|<syntaxhighlight lang="html"><inputbox>
type=comment
type=comment
307번째 줄: 285번째 줄:
|  Edit summary (headline) not required for new comment.
|  Edit summary (headline) not required for new comment.
|comment
|comment
|
|<syntaxhighlight lang="html"><inputbox>
|<syntaxhighlight lang="html"><inputbox>
type=comment
type=comment
322번째 줄: 299번째 줄:
|  Edit summary or move reason.
|  Edit summary or move reason.
| create, move
| create, move
|
|<syntaxhighlight lang="html"><inputbox>
|<syntaxhighlight lang="html"><inputbox>
type=create
type=create
353번째 줄: 329번째 줄:
|  Make the InputBox be an inline element (no line break at beginning).
|  Make the InputBox be an inline element (no line break at beginning).
| search2
| search2
|
|<syntaxhighlight lang="html"> Text here: <inputbox>
|<syntaxhighlight lang="html"> Text here: <inputbox>
type=search2
type=search2
368번째 줄: 343번째 줄:
|  Defaults to directionality of the page's language.
|  Defaults to directionality of the page's language.
|  All types
|  All types
|
|<syntaxhighlight lang="html"><inputbox>
|<syntaxhighlight lang="html"><inputbox>
dir=rtl
dir=rtl
385번째 줄: 359번째 줄:
|  See [[Creating pages with preloaded text]].
|  See [[Creating pages with preloaded text]].
| create, comment, commenttitle
| create, comment, commenttitle
|
|<syntaxhighlight lang="html"><inputbox>
|<syntaxhighlight lang="html"><inputbox>
type=create
type=create
402번째 줄: 375번째 줄:
| Specify parameters to append to the search
| Specify parameters to append to the search
|search
|search
|
|<syntaxhighlight lang="html"><inputbox>
|<syntaxhighlight lang="html"><inputbox>
type=search
type=search
415번째 줄: 387번째 줄:
|  When creating a page the input box will use the new visual editor, if the extension is installed, and this parameter is set to true.
|  When creating a page the input box will use the new visual editor, if the extension is installed, and this parameter is set to true.
| create, comment
| create, comment
|
|<syntaxhighlight lang="html"><inputbox>
|<syntaxhighlight lang="html"><inputbox>
type=create
type=create

2022년 1월 2일 (일) 18:01 판

Parameters

Parameter Description Scope Example Result
arialabel= Supply the aria-label attribute to the inputbox to allow generated markup be accessible to screen readers All types
<inputbox>
type=search
arialabel=Search the Wiki
</inputbox>
bgcolor= Do not use quotes. All types
<inputbox>
type=search
bgcolor=#eeeeff
</inputbox>
width= Sets the width of the InputBox in characters. All types
<inputbox>
type=create
width=24
</inputbox>

default= Default text to put in the InputBox. All types
<inputbox>
type=comment
default=User talk:Eloquence
</inputbox>

preload= The page under this title will be preloaded (see ) into the blank editbox when a new page is created. create, comment, commenttitle
<inputbox>
type=create
preload=Log
</inputbox>

Enter the title of a non-existent page in the example InputBox above or below, and click "" respectively to test this effect.
editintro= The page which is given under this parameter will be shown, as instructions, above the editing window. create, comment
<inputbox>
type=comment
editintro=MediaWiki:Missingcommenttext
</inputbox>

buttonlabel= This label will be used for the main button of the form. All types
<inputbox>
type=comment
buttonlabel= Add new rumor
</inputbox>

hidden= This specifies that there is no InputBox.
It is used with parameter "", now not being a default, but the fixed value of the name of the page.
create, comment
<inputbox>
type=comment
editintro=Extension:InputBox/editintro comment
preload=Extension:InputBox/preload
hidden=yes
default=Extension talk:InputBox
buttonlabel= Post a comment on the talk page
</inputbox>

searchbuttonlabel= This label will be used for the "Search full text" button of the search form. search, fulltext
<inputbox>
type=search
searchbuttonlabel= Dig deeper
</inputbox>
fulltextbutton= Show the full text search button on search2 form search2
<inputbox>
type=search2
searchbuttonlabel= Dig deeper
fulltextbutton=true
</inputbox>
labeltext= Text to print beside the button search2
<inputbox>
type=search2
searchbuttonlabel= Dig deeper
labeltext= Look for: 
</inputbox>
 
break= Defaults to (use a line break). All types
<inputbox>
type=create
width=24
break=no
</inputbox>
namespaces= Support for namespace checkboxes in fulltext search.
With "", main article namespace is checked by default.
search, fulltext
<inputbox>
type=search
namespaces=Main**,Help
</inputbox>
prefix=
  • Narrow down search to pages beginning with certain prefix. Defaults to empty string (search all pages).


  • Create new page beginning with a certain prefix.


  • In , the prefix is prepended to the default parameter.


Remark: underscores aren't recognized as spaces.

search, fulltext, create
<inputbox>
type=search
prefix={{FULLPAGENAME}}/Archive
</inputbox>
The button below prefixes the name with .

placeholder= Define placeholder text that will display in the input box when it is empty. All types
<inputbox>
type=search
placeholder= Search this Wiki
</inputbox>
page= Page to posts comment to, or page to move. comment, move
<inputbox>
type=comment
page=Project:Sandbox
</inputbox>

minor= Minor edit. comment, create
<inputbox>
type=comment
page=Project:Sandbox
minor=true
</inputbox>

nosummary= Edit summary (headline) not required for new comment. comment
<inputbox>
type=comment
page=Project:Sandbox
nosummary=true
</inputbox>

summary= Edit summary or move reason. create, move
<inputbox>
type=create
default=Special:Mypage/inputbox test
summary=Foo
</inputbox>

id= id attribute for . All types
<inputbox>
type=comment
page=Project:Sandbox
summary=Foo
id=bar
</inputbox>

inline= Make the InputBox be an inline element (no line break at beginning). search2
 Text here: <inputbox>
type=search2
inline=true
width=10
</inputbox>
Text here:
 
dir= Defaults to directionality of the page's language. All types
<inputbox>
dir=rtl
type=comment
page=Project:Sandbox
summary=Foo
</inputbox>

preloadparams[]= See Creating pages with preloaded text. create, comment, commenttitle
<inputbox>
type=create
preload=Log
preloadparams[]=param1
preloadparams[]=param2
</inputbox>

searchfilter= Specify parameters to append to the search search
<inputbox>
type=search
searchfilter=insource:foo
</inputbox>
useve= When creating a page the input box will use the new visual editor, if the extension is installed, and this parameter is set to true. create, comment
<inputbox>
type=create
break=no
useve=true
</inputbox>
Applying  to an existing page simply gives the edit page.
In that case  is ignored.
Applying  for a new page works.
The texts taken from the .
Unfortunately |Upload]] summary.