Template:Callout: Difference between revisions
Jump to navigation
Jump to search
m ai rewrite |
mNo edit summary |
||
| Line 52: | Line 52: | ||
</noinclude> | </noinclude> | ||
<templatestyles src="Template:Callout/styles.css" /> | |||
<div class="callout callout-{{{type|note}}}"> | |||
<div class="callout-header"> | |||
<span class="callout-icon"> | |||
{{#switch: {{{type|note}}} | |||
| tip = 💡 | |||
| warning = ⚠️ | |||
| protip = ⭐ | |||
| note = 📝 | |||
| #default = 📝 | |||
}} | |||
</span> | |||
<span class="callout-label"> | |||
{{#switch: {{{type|note}}} | |||
| tip = Important Tip | |||
| warning = Warning | |||
| protip = Pro Tip | |||
| note = Note | |||
| #default = Note | |||
}} | |||
</span> | |||
{{#if: {{{title|}}} | | |||
<span class="callout-title"> — {{{title}}}</span> | |||
}} | |||
</div> | |||
<div class="callout-body"> | |||
{{{text|{{{1}}}}}} | |||
</div> | |||
</div> | |||
<!-- | |||
<templatestyles src="Template:Callout/styles.css" /> | <templatestyles src="Template:Callout/styles.css" /> | ||
| Line 69: | Line 104: | ||
</span> | </span> | ||
</div> | </div> | ||
</div> | |||
--> | |||
Revision as of 16:27, 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 | Optional title for the callout | String | optional |
| Text | text | Main content of the callout | String | required |
Callout usage
Use this template to create a visually distinct callout box.
Valid types: tip, note, warning, protip.
{{ Callout
| type = tip / note / warning / protip
| title = Your Title goes here
| text = Your callout text goes here.
}}
The Callout will render as it appears below this line.
Note
{{{1}}}