Template:Warning: Difference between revisions

From Unofficial werewolv.es How To Play
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
<div class="warning-box" style="border: 2px solid #f4a020; background-color: #fff3cd; padding: 12px 15px; margin: 10px 0; border-radius: 4px; display: flex; align-items: flex-start; gap: 10px;">
<div class="warning-box" style="border: 2px solid #f4a020; background-color: #fff3cd; padding: 12px 15px; margin: 10px 0; border-radius: 4px;">
<span style="font-size: 1.4em;">{{#if: {{{icon|}}} | {{{icon}}} | ⚠️ }}</span>
<strong>⚠️ {{{title|Warning}}}:</strong> {{{1|Warning text goes here.}}}
<div><strong>{{#if: {{{title|}}} | {{{title}}} | Warning }}</strong><br/>{{{1|}}}</div>
</div><noinclude>
</div>
== Usage ==
<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 action cannot be undone.|title=Caution}}
 
<templatedata>
{
"description": "Displays a warning box to highlight important cautionary information.",
"params": {
"1": {
"label": "Message",
"description": "The warning message to display.",
"type": "string",
"required": true,
"example": "This action cannot be undone."
},
"title": {
"label": "Title",
"description": "Custom title for the warning box.",
"type": "string",
"required": false,
"default": "Warning",
"example": "Caution"
}
}
}
</templatedata>
 
[[Category:Notice templates]]
</noinclude>

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.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Message1

The warning message to display.

Example
This action cannot be undone.
Stringrequired
Titletitle

Custom title for the warning box.

Default
Warning
Example
Caution
Stringoptional