Template:Warning: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<div style="border: 2px solid #f4a020; background-color: #fff3cd; padding: | <div class="warning-box" style="border: 2px solid #f4a020; background-color: #fff3cd; padding: 12px 15px; margin: 10px 0; border-radius: 4px;"> | ||
<strong>⚠️ Warning:</strong> {{{1|Warning text goes here.}}} | <strong>⚠️ {{{title|Warning}}}:</strong> {{{1|Warning text goes here.}}} | ||
</div><noinclude> | </div><noinclude> | ||
== Usage == | == Usage == | ||
<pre>{{Warning|Your warning message here.}}</pre> | <pre>{{Warning|Your warning message here.}}</pre> | ||
== | With custom title: | ||
<pre>{{Warning|Your warning message here.|title=Caution}}</pre> | |||
== Examples == | |||
{{Warning|This page is under construction.}} | {{Warning|This page is under construction.}} | ||
{{Warning|This action cannot be undone.|title=Caution}} | |||
<templatedata> | <templatedata> | ||
| Line 17: | Line 22: | ||
"type": "string", | "type": "string", | ||
"required": true, | "required": true, | ||
"example": "This | "example": "This action cannot be undone." | ||
}, | |||
"title": { | |||
"label": "Title", | |||
"description": "Custom title for the warning box.", | |||
"type": "string", | |||
"required": false, | |||
"default": "Warning", | |||
"example": "Caution" | |||
} | } | ||
} | } | ||
Latest revision as of 18:59, 1 January 2026
⚠️ Warning: Warning text goes here.
Usage
{{Warning|Your warning message here.}}
With custom title:
{{Warning|Your warning message here.|title=Caution}}
Examples
⚠️ Warning: This page is under construction.
⚠️ Caution: This action cannot be undone.
Displays a warning box to highlight important cautionary information.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Message | 1 | The warning message to display.
| String | required |
| Title | title | Custom title for the warning box.
| String | optional |