Template:IconCaution
Jump to navigation
Jump to search
Displays an inline caution triangle icon ({{IconCaution}} → ).
Usage
- {{IconCaution}} →
Caution text (default: 15px, text-bottom)
- {{IconCaution|size= 32px }} →
Caution text
- {{IconCaution|alt= Important: }} →
Caution text (sets fallback/screen-reader alt text to "Important:")
- {{IconCaution|textbottom= no }} →
Caution text (disables text-bottom alignment)
- {{IconCaution|size= 32px |textbottom= middle }} →
Caution text (compare to second example)
Parameters
| Parameter | Default | Description |
|---|---|---|
| size = | 15px |
Icon size (e.g., 24px or 24).
|
| alt = | Caution: |
Alternative text for screen readers; pass empty (alt=) for a decorative icon.
|
| textbottom = | yes |
Applies text-bottom vertical alignment by default. Set to no (or blank) to disable, or pass another MediaWiki alignment value such as middle.
|
Displays an inline caution triangle icon.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Size | size | Icon size in pixels (e.g. 18px or 24).
| String | optional |
| Alt text | alt | Alternative text for accessibility. Leave blank (alt=) for a decorative icon.
| String | optional |
| Text-bottom alignment | textbottom | Set to no/blank to disable text-bottom alignment, or pass another MediaWiki alignment keyword (e.g. middle).
| String | optional |