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 2: Line 2:
<span style="font-size: 1.4em;">{{#if: {{{icon|}}} | {{{icon}}} | ⚠️ }}</span>
<span style="font-size: 1.4em;">{{#if: {{{icon|}}} | {{{icon}}} | ⚠️ }}</span>
<div><strong>{{#if: {{{title|}}} | {{{title}}} | Warning }}</strong><br/>{{{1|}}}</div>
<div><strong>{{#if: {{{title|}}} | {{{title}}} | Warning }}</strong><br/>{{{1|}}}</div>
</div><noinclude>
</div>
== Usage ==
<pre>{{Warning|Your warning message here.}}</pre>
 
With optional parameters:
<pre>{{Warning|Your warning message here.|title=Caution|icon=🛑}}</pre>
 
== Examples ==
{{Warning|This page is under construction.}}
 
{{Warning|This action cannot be undone.|title=Caution|icon=🛑}}
 
<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"
},
"icon": {
"label": "Icon",
"description": "Custom emoji or icon to display.",
"type": "string",
"required": false,
"default": "⚠️",
"example": "🛑"
}
}
}
</templatedata>
 
[[Category:Notice templates]]
</noinclude>

Revision as of 18:59, 1 January 2026

{{#if: | {{{icon}}} | ⚠️ }}

{{#if: | {{{title}}} | Warning }}