Difference between revisions of "Module:Dagger"
Jump to navigation
Jump to search
Module documentation
blackwiki>Meteor sandwich yum m (→See also: add) |
blackwiki>Jdaloner m (Updated usage of "if empty" template. Tweaked punctuation and wording as well.) |
||
| Line 1: | Line 1: | ||
| − | [[File:Dagger-14-plain.png|alt={{ | + | [[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>( | + | :<code><nowiki>{{dagger|alt=footnote}}</nowiki></code> produces {{dagger|alt=footnote}}<br />(Either the symbol or the alternative text is displayed, depending on the browser.) |
== See also == | == See also == | ||
Revision as of 11:00, 27 September 2014
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
{{dagger|alt=footnote}}produces
(Either the symbol or the alternative text is displayed, depending on the browser.)
See also
- Template:Double-dagger
- Template:Down-arrow
- Template:Up-arrow
- Template:Hash-tag
- Template:Section-sign
- Template:KIA for the "Killed in action" marker
- Template:Gc for a light gray superscripted dagger
| You might want to create a documentation page for this Scribunto module. Editors can experiment in this module's sandbox (create | mirror) and testcases (create) pages. Subpages of this module. |