Template:Callout: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
| Line 72: | Line 72: | ||
<templatestyles src="Template:Callout/styles.css" /> | <templatestyles src="Template:Callout/styles.css" /> | ||
<div class="callout callout-{{{type | <div class="callout callout-{{{type|note}}}"> | ||
<span class="callout-label"> | <span class="callout-label"> | ||
{{#switch: {{{type|note}}} | {{#switch: {{{type|note}}} | ||
Revision as of 15:49, 5 April 2026
Unified callout box with type-based styling (tip, note, warning, protip). Uses TemplateStyles.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Type | type | Callout type: tip, note, warning, protip
| String | optional |
| Title | title | The content of the callout | String | required |
| Text | text | The content of the callout | String | required |
Callout usage
Use this template to create a visually distinct callout box.
Valid types: tip, note, warning, protip.
Copy/paste/edit parameters
{{
Callout
| type = tip / note / warning / protip
| title = The title of your callout goes here.
| text = Your callout text goes here.
}}
The Callout will render as it appears below this line.
Note: The title of your callout goes here.Your callout text goes here