Difference between revisions of "Template:Hash-tag"

From blackwiki
Jump to navigation Jump to search
imported>RexxS
(differentiate templates in the see also section)
imported>GreenComputer
(Use WAI-ARIA attributes instead of image)
 
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 ==

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: