Jump to content

Template:Form field/doc

From Wikisource

{{form field}} stylistically renders a forum on a field. It can be either empty or filled in.

Examples

[edit]

Example

Name: {{form field|Erika Mustermann}}
Name: Erika Mustermann

Example

Address: {{form field|width=10em}}
Address:  

Example

Date: {{form field|27 / 10 / 2024|under=dd / mm / yy|width=10em}}
Date: 27 / 10 / 2024dd / mm / yy

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}}
Project completed.

Example

{{form field|width=full|left=Notes:}}
Notes:  

Example

{{form field|width=full|right=M.D.}}
  M.D.

CSS

[edit]

You can target the output of this template with the CSS:

TemplateData

[edit]
This is the TemplateData documentation for this template used by VisualEditor and other tools.

Form field

The template's full parameters are:

Template parameters

ParameterDescriptionTypeStatus
11

text written in the field

Stringoptional
widthwidth

width of the field

Suggested values
10em full
Stringoptional
underunder

small text which goes below the line

Stringoptional
leftleft

note to left of field

Stringoptional
rightright

note to right of field

Stringoptional