Template:Calculator label/doc

From Festipedia, hosted by the FR Heritage Group

Usage[edit]

Add a label for a field from {{calculator}}. This associates the label with the element which is better for accessibility. It also means if you click on the label, it selects the field in question.

This template depends on mediawiki:Gadget-calculator.js

TemplateData[edit]

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

TemplateData for Calculator label

Way to add a label to a form control from Template:Calculator. Adding labels using this template helps ensure calculators are accessible

Template parameters

ParameterDescriptionTypeStatus
11 label

Text for label

Contentrequired
forfor

The id from the calculator template this label is for

Stringrequired
titletitle

Tooltip to show on hover

Stringoptional
stylestyle

CSS for label

Stringoptional