This is a documentation subpage for Template:Form field. It contains usage information, categories and other content that is not part of the original template page. |
This template uses TemplateStyles: |
{{form field}} stylistically renders a forum on a field. It can be either empty or filled in.
Examples
editExample
Name: {{form field|Erika Mustermann}}
Example
Address: {{form field|width=10em}}
Example
Date: {{form field|27 / 10 / 2024|under=dd / mm / yy|width=10em}}
To create a line that grows to fill the available horizontal space, use the special parameter |width=full
Example
{{form field|Project completed.|width=full}}
Example
{{form field|width=full|left=Notes:}}
Example
{{form field|width=full|right=M.D.}}
CSS
editYou can target the output of this template with the CSS:
.wst-form-field
(search for wst-form-field in CSS files).wst-form-field .field
.wst-form-field .under
.wst-form-field .label
(left or right)
TemplateData
editThis is the TemplateData documentation for this template used by VisualEditor and other tools.
Form field
The template's full parameters are:
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 | text written in the field | String | optional |
width | width | width of the field
| String | optional |
under | under | small text which goes below the line | String | optional |
left | left | note to left of field | String | optional |
right | right | note to right of field | String | optional |