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

편집 요약 없음
편집 요약 없음
42번째 줄: 42번째 줄:
|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
|{{MW version|version=1.35|comment=and later|gerrit change=572050|compact=1}}
|
|<syntaxhighlight lang="html"><inputbox>
|<syntaxhighlight lang="html"><inputbox>
type=search
type=search
92번째 줄: 92번째 줄:
|-
|-
|'''preload='''
|'''preload='''
|  The page under this title will be preloaded (see <tvar name=1>{{ll|Manual:Creating pages with preloaded text}}</tvar>) 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
|''?''
|''?''
104번째 줄: 104번째 줄:
</inputbox>
</inputbox>
|-
|-
| colspan="6" |  Enter the title of a non-existent page in the example InputBox above or below, and click "<tvar name=create>{{int|inputbox-createarticle}}</tvar>" or "<tvar name=new>{{int|inputbox-postcomment}}</tvar>" respectively to test this effect.
| colspan="6" |  Enter the title of a non-existent page in the example InputBox above or below, and click "" respectively to test this effect.
|-
|-
|'''editintro='''
|'''editintro='''
125번째 줄: 125번째 줄:
|<syntaxhighlight lang="html"><inputbox>
|<syntaxhighlight lang="html"><inputbox>
type=comment
type=comment
buttonlabel=<translate nowrap> Add new rumor
buttonlabel= Add new rumor
</inputbox></syntaxhighlight>
</inputbox></syntaxhighlight>
|<inputbox>
|<inputbox>
type=comment
type=comment
buttonlabel=<translate nowrap> Add new rumor
buttonlabel= Add new rumor
</inputbox>
</inputbox>
|-
|-
135번째 줄: 135번째 줄:
|  This specifies that there is no InputBox.
|  This specifies that there is no InputBox.


  It is used with parameter "<tvar name=default>default</tvar>", 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
|''?''
|''?''
144번째 줄: 144번째 줄:
hidden=yes
hidden=yes
default=Extension talk:InputBox
default=Extension talk:InputBox
buttonlabel=<translate nowrap> Post a comment on the talk page
buttonlabel= Post a comment on the talk page
</inputbox></syntaxhighlight>
</inputbox></syntaxhighlight>
|<inputbox>
|<inputbox>
152번째 줄: 152번째 줄:
hidden=yes
hidden=yes
default=Extension talk:InputBox
default=Extension talk:InputBox
buttonlabel=<translate nowrap> Post a comment on the talk page
buttonlabel= Post a comment on the talk page
</inputbox>
</inputbox>
|-
|-
161번째 줄: 161번째 줄:
|<syntaxhighlight lang="html"><inputbox>
|<syntaxhighlight lang="html"><inputbox>
type=search
type=search
searchbuttonlabel=<translate nowrap> Dig deeper
searchbuttonlabel= Dig deeper
</inputbox></syntaxhighlight>
</inputbox></syntaxhighlight>
|<inputbox>
|<inputbox>
type=search
type=search
searchbuttonlabel=<translate nowrap> Dig deeper
searchbuttonlabel= Dig deeper
</inputbox>
</inputbox>
|-
|-
174번째 줄: 174번째 줄:
|<syntaxhighlight lang="html"><inputbox>
|<syntaxhighlight lang="html"><inputbox>
type=search2
type=search2
searchbuttonlabel=<translate nowrap> Dig deeper
searchbuttonlabel= Dig deeper
fulltextbutton=true
fulltextbutton=true
</inputbox></syntaxhighlight>
</inputbox></syntaxhighlight>
|<inputbox>
|<inputbox>
type=search
type=search
searchbuttonlabel=<translate nowrap> Dig deeper
searchbuttonlabel= Dig deeper
fulltextbutton=true
fulltextbutton=true
</inputbox>
</inputbox>
189번째 줄: 189번째 줄:
|<syntaxhighlight lang="html"><inputbox>
|<syntaxhighlight lang="html"><inputbox>
type=search2
type=search2
searchbuttonlabel=<translate nowrap> Dig deeper
searchbuttonlabel= Dig deeper
labeltext=<translate nowrap> Look for:  
labeltext= Look for:  
</inputbox></syntaxhighlight>
</inputbox></syntaxhighlight>
|<inputbox>
|<inputbox>
type=search2
type=search2
searchbuttonlabel=<translate nowrap> Dig deeper
searchbuttonlabel= Dig deeper
labeltext=<translate nowrap> Look for:  
labeltext= Look for:  
</inputbox>
</inputbox>
|-
|-
|'''break='''
|'''break='''
|  Defaults to <tvar name=yes>'''yes'''</tvar> (use a line break).
|  Defaults to (use a line break).
|  All types
|  All types
|''?''
|''?''
216번째 줄: 216번째 줄:
|  Support for namespace checkboxes in fulltext search.
|  Support for namespace checkboxes in fulltext search.


  With "<tvar name=main><code>Main'''**'''</code></tvar>", main article namespace is checked by default.
  With "", main article namespace is checked by default.
| search, fulltext
| search, fulltext
|''?''
|''?''
238번째 줄: 238번째 줄:




* In <tvar name=tmove>type=move</tvar>, the prefix is prepended to the default parameter.
* In , the prefix is prepended to the default parameter.




254번째 줄: 254번째 줄:
</inputbox>
</inputbox>


  The button below prefixes the name with <tvar name=mypage>''<code>Special:Mypage/</code>''</tvar>.
  The button below prefixes the name with .
<inputbox>
<inputbox>
type=create
type=create
preload=Template:Article wizard/userpageskeleton
preload=Template:Article wizard/userpageskeleton
default=<translate nowrap> new article name here
default= new article name here
prefix=Special:Mypage/
prefix=Special:Mypage/
editintro=Wikipedia:Article wizard/Wizard-New edit instructions userdraft
editintro=Wikipedia:Article wizard/Wizard-New edit instructions userdraft
buttonlabel=<translate nowrap> Create a userspace draft
buttonlabel= Create a userspace draft
width=50
width=50
</inputbox>
</inputbox>
268번째 줄: 268번째 줄:
|  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
|{{MW version|version=1.19|comment=and later|gerrit change=|compact=1}}
||<syntaxhighlight lang="html"><inputbox>
|<syntaxhighlight lang="html"><inputbox>
type=search
type=search
placeholder=<translate nowrap> Search this Wiki
placeholder= Search this Wiki
</inputbox></syntaxhighlight>
</inputbox></syntaxhighlight>
|<inputbox>
|<inputbox>
type=search
type=search
placeholder=<translate nowrap> Search this Wiki
placeholder= Search this Wiki
</inputbox>
</inputbox>
|-
|-
337번째 줄: 336번째 줄:
|-
|-
|'''id='''
|'''id='''
|  id attribute for <tvar name=form>&lt;form&gt;</tvar>.
|  id attribute for .
|  All types
|  All types
|{{MW version|version=1.23|comment=and later|gerrit change=|compact=1}}for some types
|<syntaxhighlight lang="html"><inputbox>
|<syntaxhighlight lang="html"><inputbox>
type=comment
type=comment
357번째 줄: 355번째 줄:
| search2
| search2
|
|
|<syntaxhighlight lang="html"><translate nowrap> Text here: <inputbox>
|<syntaxhighlight lang="html"> Text here: <inputbox>
type=search2
type=search2
inline=true
inline=true
386번째 줄: 384번째 줄:
|-
|-
| id="preloadparams" |'''preloadparams[]='''
| id="preloadparams" |'''preloadparams[]='''
|  See [[<tvar name=man>Manual:Creating pages with preloaded text#Using parameters</tvar>|Creating pages with preloaded text]].
|  See [[Creating pages with preloaded text]].
| create, comment, commenttitle
| create, comment, commenttitle
|{{MW version|version=1.25|comment=and later|gerrit change=|compact=1}}
|
|<syntaxhighlight lang="html"><inputbox>
|<syntaxhighlight lang="html"><inputbox>
type=create
type=create
405번째 줄: 403번째 줄:
| Specify parameters to append to the search
| Specify parameters to append to the search
|search
|search
|{{MW version|version=1.30|comment=and later|gerrit change=|compact=1}}
|
|<syntaxhighlight lang="html"><inputbox>
|<syntaxhighlight lang="html"><inputbox>
type=search
type=search
431번째 줄: 429번째 줄:
|}
|}


  Applying <tvar name=create>''create''</tvar> to an existing page simply gives the edit page.
  Applying to an existing page simply gives the edit page.
  In that case <tvar name=preload><code>preload</code></tvar> is ignored.
  In that case is ignored.
  Applying <tvar name=comment>''comment''</tvar> for a new page works.
  Applying for a new page works.


  The texts taken from the <tvar name=mediawiki><code>MediaWiki:</code></tvar> namespace are of course only examples, any existing page can be used for <tvar name=editintro><code>editintro</code></tvar> or <tvar name=preload><code>preload</code></tvar>.
  The texts taken from the .
  Unfortunately <tvar name=preload><code>preload</code></tvar> does not yet work for the [[<tvar name=special>Special:Upload</tvar>|Upload]] summary.
  Unfortunately |Upload]] summary.

2022년 1월 2일 (일) 17:56 판

Parameters

Parameter Description Scope Compatibility 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.