Difference between revisions of "Template:Hash-tag"

From blackwiki
Jump to navigation Jump to search
imported>Tbhotch
imported>GreenComputer
(Use WAI-ARIA attributes instead of image)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
[[File:Hash-transbg.svg|12px|alt={{if empty|{{{alt|}}}|Hash-tag}}|link=]]<noinclude>
+
<span role="img" aria-label="{{if empty|{{{alt|}}}|Hash-tag}}">#</span><noinclude>
 
{{documentation
 
{{documentation
 
|content =  
 
|content =  
This template generates a hash-tag symbol with [[Wikipedia:Alternative text for images|alternative text]] on a transparent background.
+
This template generates a hash-tag symbol with an alternative label.
  
 
== Usage ==
 
== Usage ==
Line 9: Line 9:
  
 
== See also ==
 
== See also ==
* [[Template:Number sign]]
+
Other templates that allow alternate text of the editor's choice:
 
* [[Template:Down-arrow]]
 
* [[Template:Down-arrow]]
 
* [[Template:Up-arrow]]
 
* [[Template:Up-arrow]]
Line 15: Line 15:
 
* [[Template:Double-dagger]]
 
* [[Template:Double-dagger]]
 
* [[Template:Section-sign]]
 
* [[Template:Section-sign]]
 +
Similar template that does not allow alternate text of the editor's choice:
 +
* [[Template:Number sign]]
 
}}
 
}}
 
[[Category:Single-image insertion templates]]
 
[[Category:Single-image insertion templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 14:52, 20 February 2020

<span role="img" aria-label="Script error: No such module "If empty".">#

Template documentation

This template generates a hash-tag symbol with an alternative label.

Usage

{{Hash-tag}} produces <span role="img" aria-label="Script error: No such module "If empty".">#
{{Hash-tag|alt=footnote}} produces <span role="img" aria-label="Script error: No such module "If empty".">#

See also

Other templates that allow alternate text of the editor's choice:

Similar template that does not allow alternate text of the editor's choice: