Difference between revisions of "Template:Access icon/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Remember the dot
m (formatting)
m (27 revisions imported)
 
(21 intermediate revisions by 20 users not shown)
Line 1: Line 1:
 +
{{documentation subpage}}
 +
 +
==Purpose==
 +
Provides an SVG representation of the [[International Symbol of Access]]
 +
 
==Usage==
 
==Usage==
 
<code><nowiki>{{Access icon|width|alt text}}</nowiki></code>
 
<code><nowiki>{{Access icon|width|alt text}}</nowiki></code>
Line 6: Line 11:
 
* 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 MediaWiki software also automatically adds it to the text you see when hovering your cursor over the image.
+
* 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".
 +
 
 +
==Notes==
 +
The [[Unicode]] codepoint encoding for the International Symbol of Access is :
 +
<pre>
 +
U+267F ♿ WHEELCHAIR SYMBOL
 +
</pre>
 +
However, not all [https://www.fileformat.info/info/unicode/char/267f/fontsupport.htm fonts support] this character.
 +
 
 +
If you specify [[DejaVu Sans]], for example, and have it installed, then you may use
 +
<pre>
 +
<span style="font-size:xx-large; font-family:DejaVu Sans">&#x267F;</span>
 +
</pre>
 +
to show <span style="font-size:xx-large; font-family:DejaVu Sans">&#x267F;</span>
  
<includeonly>
+
==See also==
 +
* [[International Symbol of Access]]
 +
 
 +
<includeonly>{{Sandbox other||
 +
<!-- ADD CATEGORIES BELOW THIS LINE -->
 
[[Category:Symbol templates|Access icon]]
 
[[Category:Symbol templates|Access icon]]
 +
[[Category:Disability templates]]
  
[[zh:Template:無障礙圖示]]
+
}}</includeonly>
 
 
</includeonly>
 

Latest revision as of 16:24, 16 October 2020

Purpose

Provides an SVG representation of the International Symbol of Access

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: Handicapped/disabled access. 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".

Notes

The Unicode codepoint encoding for the International Symbol of Access is :

	U+267F	♿	WHEELCHAIR SYMBOL	

However, not all fonts support this character.

If you specify DejaVu Sans, for example, and have it installed, then you may use

<span style="font-size:xx-large; font-family:DejaVu Sans">♿</span>

to show

See also