Template:Ambox

Revision as of 18:37, 28 May 2026 by PerikiyoXD (talk | contribs) (Created page with "<div class="ambox" style=" display: flex; align-items: flex-start; gap: 12px; margin: 12px 0; padding: 10px 14px; border: 1px solid {{#switch:{{{type|}}} | warning = #f0a500 | error = #cc3333 | notice = #3680b0 | success = #3a7d44 | #a2a9b1 }}; border-left-width: 5px; background-color: {{#switch:{{{type|}}} | warning = #fef9ed | error = #fff0f0 | notice = #eaf3fb | success = #f0faf1 | #f8f9...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
📌

Usage

Displays a styled article message box. Supports four built-in types, each with a distinct colour and icon.

Syntax

{{Ambox
| type = notice <!-- notice | warning | error | success -->
| text = Your message here. Can include [[wikilinks]] and '''formatting'''.
}}

You can also override the icon:

{{Ambox
| type = warning
| icon = 🔧
| text = Custom icon example.
}}

Types

Type Border / Background Default Icon Use for
notice Blue ℹ️ General information, tips
warning Amber ⚠️ Cautions, things to watch out for
error Red 🚫 Errors, do-not-do instructions
success Green Confirmations, completed steps
(none) Grey 📌 Neutral / uncategorised