Difference between revisions of "Template:Double-dagger"

From blackwiki
Jump to navigation Jump to search
imported>Pol098
m (brief explanation of alternative text)
imported>RexxS
(These allow alternate text of the editor's choice)
 
(5 intermediate revisions by 5 users not shown)
Line 1: Line 1:
[[File:Double-dagger-14-plain.png|alt={{ifempty|{{{alt|}}}|double-dagger}}|link=]]<noinclude>
+
[[File:Double-dagger-14-plain.png|alt={{if empty|{{{alt|}}}|double-dagger}}|link=]]<noinclude>
 
{{documentation
 
{{documentation
 
|content =  
 
|content =  
This template generates a double-dagger symbol with [[Wikipedia:Alternative text for images|alternative text]]. The text is not normally visible to readers, but may be displayed by web browsers when images are switched off, is read out loud by [[screen reader]]s for those with visual impairment, and can be used by search engines to determine the content of the image.
+
This template generates a double-dagger symbol with [[Wikipedia:Alternative text for images|alternative text]]. The default alt text is "double-dagger". The text is not normally visible to readers, but may be displayed by web browsers when images are switched off, is read out loud by [[screen reader]]s for those with visual impairment, and can be used by search engines to determine the content of the image.
  
 
== Usage ==
 
== Usage ==
 
:<code><nowiki>{{double-dagger}}</nowiki></code> produces {{double-dagger}}
 
:<code><nowiki>{{double-dagger}}</nowiki></code> produces {{double-dagger}}
:<code><nowiki>{{double-dagger|alt=footnote}}</nowiki></code> produces {{double-dagger|alt=footnote}}<br>(either the symbol or the alternative text is displayed according to the browser).
+
:<code><nowiki>{{double-dagger|alt=footnote}}</nowiki></code> produces {{double-dagger|alt=footnote}}<br />(Either the symbol or the alternative text is displayed, according to the browser settings.)
  
 
== See also ==
 
== See also ==
 +
These allow alternate text of the editor's choice:
 
* [[Template:Dagger]]
 
* [[Template:Dagger]]
 
* [[Template:Down-arrow]]
 
* [[Template:Down-arrow]]
Line 15: Line 16:
 
* [[Template:Section-sign]]
 
* [[Template:Section-sign]]
 
}}
 
}}
[[Category:Image insertion templates]]
+
[[Category:Single-image insertion templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 12:34, 14 May 2019

Script error: No such module "If empty".

Template documentation

This template generates a double-dagger symbol with alternative text. The default alt text is "double-dagger". The text is not normally visible to readers, but may be displayed by web browsers when images are switched off, is read out loud by screen readers for those with visual impairment, and can be used by search engines to determine the content of the image.

Usage

{{double-dagger}} produces Script error: No such module "If empty".
{{double-dagger|alt=footnote}} produces Script error: No such module "If empty".
(Either the symbol or the alternative text is displayed, according to the browser settings.)

See also

These allow alternate text of the editor's choice: