{{{label}}}
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 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
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 label | Text for label | Content | required |
for | for | The id from the calculator template this label is for | String | required |
title | title | Tooltip to show on hover | String | optional |
style | style | CSS for label | String | optional |
class | class | CSS class or classes to add to label | String | optional |