HTMLForm/zh

HTMLForm is a class for handling everything related to user interface forms. MediaWiki 1.16 and newer include HTMLForm in.

HTMLForm/tutorial shows basics of HTMLForm.

参数
Precise specification for:
 * Generic Parameters on HTMLForm tutorial part 2
 * Type/Class related Parameters on HTMLForm tutorial part 3

显示格式
The default display format for HTMLForm is a  layout, with labels in the left column and inputs in the right column. It is possible to select a few different formats e.g.  will use a div-based layout, the others more rare ones are   and.

To change the form to use the toolkit for HTMLform elements, starting with MediaWiki 1.26, you'll need to use   as display format in  :

Historical notes
HTMLForm was introduced by Werdna in r48740 as a part of his preferences system rewrite. 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.

参见

 * 样式指引/表单