Extension:InputBox/ja

The InputBox extension adds already created HTML forms to wiki pages. Users can "complete" a form (entering text, selecting menu items, etc.) by entering text into the box.

InputBox was originally created by Erik Möller for the purpose of adding a Create an article box to Wikinews.

例
Box for starting a new article.

{|

結果

 * }

一般的な構文
入力ボックスは以下のように構築されます:

typeパラメーターは必須です. その他のパラメーターは省略可能です.

ボックスの種類
The default location of the submit button(s) is below the input box. The submit button can be moved to the right by using the line break parameter to eliminate the line break between the input box and the submit button: break=no

Having the submit button to the right is useful for search boxes when search suggestions would otherwise cover up a search button below the search box.

For type=search2 the default location for the search button is to the right. Currently, it does not seem to be possible to add other parameters to this type of input box. This search box searches the entire wiki that it is placed on.

パラメーター
create &#160;を既存のページに適用することによって単に編集ページが渡されます. その場合preloadは無視されます. 新しいページに対するcomment &#160;を適用することは機能します.

MediaWiki:名前空間から取得されたテキストはもちろん例で、どの既存のページもeditintro もしくはpreloadに対して使うことができます. 不幸にもpreloadはSpecial:Uploadの要約に対してまだ機能しません.

配置
If you want to create an infobox on the right side of the page, do something like:



パーサー関数
テンプレート内での入力ボックスの使用

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: article</tt>) as spelled out in the button, the second parameter gives the name of the template used to create the item (default: Template:Article</tt>).

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

関連項目

 * Extension:Create Page
 * Extension:CreateArticle
 * Extension:CreateBox
 * Extension:Preloader
 * Extension:DPL Page Name S/N Maker