Template:Mars symbol/sandbox
Appearance
♂
This is the template sandbox page for Template:Mars symbol (diff). See also the companion subpage for test cases. |
This template generates a Mars symbol with alternative text. The default alt text is "Mars symbol". 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.
Note: on mobile browsers the Unicode symbol will be rendered as an emoji in some circumstances. This template provides a workaround for those situations.
Usage
[edit]{{Mars symbol}}
produces{{Mars symbol|alt=male}}
produces
(The alt text is only read by screen reading software.)