Template:IconCross/doc

From OpenStreetMap Wiki
Jump to navigation Jump to search

This is a documentation subpage for Template:IconCross.
It contains usage information, categories and other content or metadata that is not part of the original template.

Displays an inline red cross icon ({{IconCross}} → No:).

Usage

  • {{IconCross}} → No: Example text (default: 15px, text-bottom)
  • {{IconCross|size= 24px }} → No: Example text
  • {{IconCross|alt= Forbidden: }} → Forbidden: Example text (sets fallback/screen-reader alt text to "Forbidden:")
  • {{IconCross|textbottom= no }} → No: Example text (disables text-bottom alignment)
  • {{IconCross|textbottom= middle }} → No: Example text

Parameters

Parameter Default Description
15px Icon size (e.g., 24px or 24).
No: Alternative text for screen readers, pass empty (alt=) for a decorative icon.
yes Applies text-bottom vertical alignment by default. Set to no (or blank) to disable, or pass another MediaWiki alignment value such as middle.

See also

Displays an inline red cross icon.

Template parameters

ParameterDescriptionTypeStatus
Sizesize

Icon size in pixels (e.g. 18px or 24).

Default
15px
Example
24px
Stringoptional
Alt textalt

Alternative text for accessibility. Leave blank (alt=) for a decorative icon.

Default
No:
Example
Forbidden:
Stringoptional
Text-bottom alignmenttextbottom

Set to no/blank to disable text-bottom alignment, or pass another MediaWiki alignment keyword (e.g. middle).

Suggested values
yes no middle
Default
yes
Stringoptional