HTMLForm/ru

HTMLForm is a class for handling everything related to user interface forms. It was introduced by Werdna in r48740 as a part of his preferences system rewrite. MediaWiki 1.16 and newer include HTMLForm in.

Historically MediaWikis from version 1.4.0 to version 1.11 included a different HTMLForm class, written by Hashar and JeLuF. This HTMLForm was removed in r29245.

HTMLForm/tutorial shows basics of HTMLForm.

Параметры
Documenting the parameters for HTMLForm forms so they don't get lost

Точная спецификация для:
 * Общие параметры в учебнике HtmlForm часть 2
 * Общие параметры в учебнике HtmlForm часть 3

Отображаемые форматы
The default display format for HTMLForm is a table layout, with labels in the left column and inputs in the right column. It is possible to select a few different formats e.g. $form->setDisplayFormat( 'div' ); will use a div-style layout.

To change the form to use the toolkit for HTML form elements, starting with MediaWiki 1.26, you'll need to use  :

См. также

 * Style guide/Forms