Difference between revisions of "Module:Dagger"

From blackwiki
Jump to navigation Jump to search
blackwiki>Frungi
(mentioning the default alt text)
m (26 revisions imported)
 
(7 intermediate revisions by 6 users not shown)
Line 1: Line 1:
[[File:Dagger-14-plain.png|alt={{ifempty|{{{alt|}}}|dagger}}|link=]]<noinclude>
+
[[File:Dagger-14-plain.png|alt={{if empty|{{{alt|}}}|dagger}}|link=]]<noinclude>
 
{{documentation
 
{{documentation
 
|content =  
 
|content =  
Line 6: Line 6:
 
== Usage ==
 
== Usage ==
 
:<code><nowiki>{{dagger}}</nowiki></code> produces {{dagger}}
 
:<code><nowiki>{{dagger}}</nowiki></code> produces {{dagger}}
:<code><nowiki>{{dagger|alt=footnote}}</nowiki></code> produces {{dagger|alt=footnote}}<br>(either the symbol or the alternative text is displayed according to the browser).
+
:<code><nowiki>{{dagger|alt=footnote}}</nowiki></code> produces {{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:Double-dagger]]
 
* [[Template:Double-dagger]]
 
* [[Template:Down-arrow]]
 
* [[Template:Down-arrow]]
Line 14: Line 15:
 
* [[Template:Hash-tag]]
 
* [[Template:Hash-tag]]
 
* [[Template:Section-sign]]
 
* [[Template:Section-sign]]
 +
These do not allow alternate text of the editor's choice:
 +
* [[Template:Extinct]]
 
* [[Template:KIA]] for the "Killed in action" marker
 
* [[Template:KIA]] for the "Killed in action" marker
 +
* [[Template:Gc]] for a light gray superscripted dagger
 
}}
 
}}
[[Category:Image insertion templates]]
+
[[Category:Single-image insertion templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 12:08, 21 September 2020

Script error: No such module "If empty".

50px Module documentation

This template generates a dagger symbol with alternative text. The default alt text is "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

{{dagger}} produces File:Dagger-14-plain.png
{{dagger|alt=footnote}} produces File:Dagger-14-plain.png
(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:

These do not allow alternate text of the editor's choice: