Jump to content

Template:Calculator label/doc

From Wikipedia, the free encyclopedia

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 for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Calculator label in articles based on its TemplateData.

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