Template:Warning box: Difference between revisions

From stencil.wiki
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:


== Usage ==
== Usage ==
Provided fields fill out the optional title + text of the message box.
The provided field fills out the text of the message box.
<pre>
<pre>
{{Warning box|text=Keep the Riso <u>''turned off'' and ''unplugged''</u> during the following steps.}}
{{Warning box|Keep the Riso <u>''turned off'' and ''unplugged''</u> during the following steps.}}
</pre>
</pre>
{{mbox|text=Keep the Riso <u>''turned off'' and ''unplugged''</u> during the following steps.|color_bar=#FF665E|icon=triangle-exclamation}}
{{mbox|text=Keep the Riso <u>''turned off'' and ''unplugged''</u> during the following steps.|color_bar=#FF665E|icon=triangle-exclamation}}
Line 13: Line 13:
{
{
"params": {
"params": {
"title": {
"1": {
"label": "Title",
"description": "Header text to be used at the top of the box—this will be displayed in bold.",
"type": "string",
"suggested": true
},
"text": {
"label": "Text",
"label": "Text",
"description": "The body text of the message box.",
"description": "The body text of the message box.",
Line 31: Line 25:
</templatedata>
</templatedata>
</noinclude><!--
</noinclude><!--
--><includeonly>{{mbox|title={{{title|}}}|text={{{text|}}}|color_bar=#FF665E|icon=triangle-exclamation}}</includeonly>
--><includeonly>{{mbox|text={{{1|}}}|color_bar=#FF665E|icon=triangle-exclamation}}</includeonly>

Latest revision as of 20:05, 12 August 2025

This template displays a message box with a red styling and a triangle + exclamation point icon—it's meant to be used for important pull-out warnings (especially on Category:Tutorials pages).

Usage

The provided field fills out the text of the message box.

{{Warning box|Keep the Riso <u>''turned off'' and ''unplugged''</u> during the following steps.}}
Keep the Riso turned off and unplugged during the following steps.

TemplateData

Used to display a simple warning box.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Text1

The body text of the message box.

Stringrequired