Extension:InputBox/zh

InputBox扩展已经创造了HTML表单维基页面. 用户可以通过将文本输入框中“完成”表单（输入文本、选择菜单项等）.

InputBox最初是由Erik Möller为在维基新闻中加入框的目的而创建的.

示例
创建一篇新文章的输入框.

输出结果


常见问题
输入框像这样子构造

type参数必须输入. 而其他所有参数均为可选. preloadparams[]可以出现不止一次.

输入框类型
默认情况下按钮位于输入框的下面.

通过设置换行参数可将“”按钮移至右侧：.

将“”按钮移至右侧对于使用搜索框时搜索建议覆盖了下方搜索按钮的情况很有用.

对于 ，默认的搜索按钮位置在右侧. 目前，似乎无法将其他参数添加到这种类型的输入框中. This search box searches the entire wiki that it is placed on.

参数
Applying create to an existing page simply gives the edit page. In that case  is ignored. Applying comment for a new page works.

The texts taken from the  namespace are of course only examples, any existing page can be used for   or. Unfortunately  does not yet work for the Upload summary.

Alignment
If you want to create an inputbox on the right side of the page, do something like:



Parser function
Using InputBox in a template

In order to create many similar input boxes, InputBox can be used in a template. However, passing template parameters to InputBox parameters only works if the  tag is written as  inside the template.

The following example is a template to create a new wiki page from a named template:

When instantiating the template, the first parameter gives the item that is created (default: ) as spelled out in the button, the second parameter gives the name of the template used to create the item (default:  ).

E.g., the code for an input box to create a new project from a project template might look like this: