Difference between revisions of "Template:Access icon/doc"
Jump to navigation
Jump to search
blackwiki>Lensovet (better wording, describe default text value) |
blackwiki>Remember the dot (No, the title attribute is the Tooltip. The alt attribute is what screen readers see.) |
||
| Line 6: | Line 6: | ||
* The width is in pixels, and should be followed by px. For example, <code><nowiki>{{Access icon|20px}}</nowiki></code> produces the symbol at 20 pixels wide: {{Access icon|20px}}. If the width parameter is omitted, the default width is 12 pixels. | * The width is in pixels, and should be followed by px. For example, <code><nowiki>{{Access icon|20px}}</nowiki></code> produces the symbol at 20 pixels wide: {{Access icon|20px}}. If the width parameter is omitted, the default width is 12 pixels. | ||
| − | * The alt text is the text that screen readers will see | + | * The alt text is the text that screen readers will see. The [[MediaWiki]] software also automatically uses it as the [[tooltip]] when users hover the cursor over the image. The default text is "Handicapped/disabled access". |
<includeonly> | <includeonly> | ||
Revision as of 16:37, 10 July 2007
Usage
{{Access icon|width|alt text}}
Both the parameters are optional.
- The width is in pixels, and should be followed by px. For example,
{{Access icon|20px}}produces the symbol at 20 pixels wide:
. If the width parameter is omitted, the default width is 12 pixels.
- The alt text is the text that screen readers will see. The MediaWiki software also automatically uses it as the tooltip when users hover the cursor over the image. The default text is "Handicapped/disabled access".