Template:Arrow/doc
| This is a documentation subpage for Template:Arrow. It may contain usage information, categories and other content that is not part of the original template page. |
Usage
[edit]This template is used to create arrows pointing in the four cardinal directions, in various colour options. See the tables below for all currently-available values.
Plain arrows
[edit]Syntax: {{arrow}} or {{arrow|direction}}
| Parameter 1 | Output |
|---|---|
| r or right[a] | → |
| l or left | ← |
| u or up | ↑ |
| d or down | ↓ |
| r-l or right-left | ↔ |
- ↑ leaving the first parameter blank will also show the "right" arrow
Coloured arrows
[edit]Syntax: {{arrow|colour}} or {{arrow|colour|direction}}
| Parameter 1 | Parameter 2 | |||
|---|---|---|---|---|
| right[a] | left | up | down | |
| green | ||||
| purple | ||||
| grey | ||||
| red | ← | |||
| orange | ||||
| blue | ||||
| light_blue | ||||
| turquoise | ||||
| white[b] | ⬄ | |||
Accessible symbols
[edit]Wikipedia previously provided templates that generated images with alt text for symbols not read by screen readers.[1]
As of 2023,[2] the symbols in the table below will be read in the default configuration of all three major screen readers (JAWS, Apple's VoiceOver and NVDA).
Depending on user-configured verbosity settings, a reader may hear additional characters read aloud or fewer typographic or punctuation characters read aloud.[3]
| Symbol | Pronounced as | HTML entity | Template name |
|---|---|---|---|
| * | "star" or "asterisk" | * |
{{asterisk}} |
| † | "dagger" or "single dagger" | † |
{{dagger}} |
| ‡ | "double dagger" | ‡ |
{{double-dagger}} |
| # | "number" or "hash tag" | # |
{{number sign}} or {{hash-tag}} |
| ° | "degree" or "degrees" | ° |
{{degree}} |
| → | "right arrow" or "rightwards arrow" | → |
{{arrow}} |
| ↓ | "down arrow" or "downwards arrow" | ↓ |
{{down-arrow}} |
| ← | "left arrow" or "leftwards arrow" | ← |
{{left-arrow}} |
| ↑ | "up arrow" or "upwards arrow" | ↑ |
{{up-arrow}} |
| ′ | "prime" | ′ |
{{prime}} |
Notes
[edit]- ↑ Bohman, Paul (20 January 2014). "Why Don't Screen Readers Always Read What's on the Screen? Part 1: Punctuation and Typographic Symbols".
- ↑ Ragas, Sophie (17 March 2023). "How screen readers read special characters: an update".
- ↑ AudioEye (14 September 2013). "How Screen Readers Make Digital Content Accessible".
See also
[edit]{{Arrow2}}, a variant which allows for diagonal arrows as well as optional sizing.