Help:InputBox

Jump to: navigation, search
These are a few examples for the usage of the InputBox extension. For complete documentation see InputBox on mediawiki.org.
Table in examples is used to position search on the left as parameter align is implemented in a newer version then one currently installed.

Search

Plain search

Code:

{|
|-
|<inputbox>
type=search
</inputbox>
|}

Result:


Comment:
This is the simplest example; box in its default settings.


Search with Go button

Code:

{|
|-
|<inputbox>
type=search
width=50
buttonlabel=Go
searchbuttonlabel=Search
break=no
</inputbox>
|}

Result:


Comment:
This one is the same type as one on the top right corner of the screen.


Search in some namespaces

{|
|-
|<inputbox>
type=search
namespaces=Help**,openSUSE,Main
</inputbox>
|}

Result:


Comment:
This is used to limit search only to namespaces that we want. The double asterisk is used to put check mark on name space that we want searched by default.


Comments

Simple comment

Code:

{|
|-
|<inputbox>
type=comment
default=Help:InputBox/Sandbox
</inputbox>
|}

Result:



Comment:
This is the simplest example where user comment will be added to Help:InputBox/Sandbox, but user can change the page where comment will be added. It is also user responsibility to add section title on screen that will appear after button "New section" is pressed.


Comment to predefined page

Code:

{|
|-
|<inputbox>
type=comment
default=Help:InputBox/Sandbox
buttonlabel=Add comment to the Sandbox
hidden=yes
</inputbox>
|}

Result:



Comment:
The parameter hidden=yes is used to hide input box, so that user can add comment only to the page that we set with default=.