Template:Callout: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
| Line 58: | Line 58: | ||
<span class="callout-icon"> | <span class="callout-icon"> | ||
{{#switch: {{{type|note}}} | {{#switch: {{{type|note}}} | ||
| tip = | | tip = 💡 | ||
| warning = ⚠️ | | warning = ⚠️ | ||
| protip = ⭐ | | protip = ⭐ | ||
| note = 📝 | | note = 📝 | ||
| #default = 📝 | | #default = 📝 | ||
}} | }} | ||
</span> | </span> | ||
<span class="callout-label"> | |||
{{#switch: {{{type|note}}} | |||
| tip = Important Tip | |||
| warning = Warning | |||
| protip = Pro Tip | |||
| note = Note | |||
| #default = Note | |||
}} | |||
</span> | </span> | ||
{{#if: {{{title|}}} | | |||
<span class="callout-title"> — {{{title}}}</span> | |||
}} | |||
</div> | |||
<div class="callout-body"> | <div class="callout-body"> | ||
{{{text| | {{{text|{{{1}}}}}} | ||
</div> | </div> | ||
</div> | </div> | ||
| Line 81: | Line 93: | ||
<span class="callout-icon"> | <span class="callout-icon"> | ||
{{#switch: {{{type|note}}} | {{#switch: {{{type|note}}} | ||
| tip = 💡Important Tip | | tip = 💡Important Tip | ||
| warning = ⚠️ Warning | | warning = ⚠️ Warning | ||
| protip = ⭐ Pro Tip | | protip = ⭐ Pro Tip | ||
| note = 📝 Note | | note = 📝 Note | ||
| #default = 📝 Note | | #default = 📝 Note | ||
}} <span class="callout-title">{{{title|Your title goes here}}}</span></span><p class="callout-body"> | }} <span class="callout-title">{{{title|Your title goes here}}}</span> | ||
{{{text|Your callout text goes here}}}</p> | </span><p class="callout-body"> | ||
{{{text|Your callout text goes here}}} | |||
</p> | |||
</span> | </span> | ||
</div> | </div> | ||
</div> | </div> | ||
--> | --> | ||
Revision as of 16:45, 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}}}