Jump to content

Template:SafetyCallout: Difference between revisions

From SOJI ELECTRONICS
[unchecked revision][checked revision]
Created page with "<div class="safety-callout safety-{{{level|notice}}}"> <div class="safety-icon">{{#switch:{{{level|notice}}} | danger = ☠️ | warning = ⚠️ | caution = ⚠️ | notice = ℹ️ | #default = ℹ️ }}</div> <div class="safety-content"> <div class="safety-title">'''{{uc:{{{level|NOTICE}}}}} — {{{title|}}}'''</div> <div class="safety-body"> {{{body|}}} </div> </div> </div><noinclude> {{Documentation}} </noinclude>"
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<div class="safety-callout safety-{{{level|notice}}}">
<div class="safety-callout safety-{{{level|notice}}}">
<div class="safety-icon">{{#switch:{{{level|notice}}}
| danger  = ☠️
| warning = ⚠️
| caution = ⚠️
| notice  = ℹ️
| #default = ℹ️
}}</div>
<div class="safety-content">
<div class="safety-content">
<div class="safety-title">'''{{uc:{{{level|NOTICE}}}}} — {{{title|}}}'''</div>
<div class="safety-title">'''{{uc:{{{level|NOTICE}}}}} — {{{title|}}}'''</div>
Line 14: Line 7:
</div>
</div>
</div><noinclude>
</div><noinclude>
{{Documentation}}
== Description ==
Safety warning callout box per ANSI Z535.6.
 
== Usage ==
<pre>
{{SafetyCallout
| level = danger
| title = Fire Hazard
| body  = '''Hazard''': ...
'''Consequence''': ...
'''Action''': ...
}}
</pre>
 
== TemplateData ==
<templatedata>
{
    "description": "Safety warning callout box per ANSI Z535.6 standard",
    "params": {
        "level": {
            "label": "Severity Level",
            "description": "Severity: danger, warning, caution, or notice",
            "type": "string",
            "required": true,
            "suggestedvalues": ["danger", "warning", "caution", "notice"],
            "default": "notice"
        },
        "title": {
            "label": "Hazard Title",
            "description": "Brief description (e.g., Fire Hazard)",
            "type": "string",
            "required": true
        },
        "body": {
            "label": "Hazard Details",
            "description": "Hazard, consequence, required action",
            "type": "content",
            "required": true
        }
    },
    "paramOrder": ["level", "title", "body"],
    "format": "block"
}
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 10:37, 13 May 2026

NOTICE —

Description

Safety warning callout box per ANSI Z535.6.

Usage

{{SafetyCallout
| level = danger
| title = Fire Hazard
| body  = '''Hazard''': ...
'''Consequence''': ...
'''Action''': ...
}}

TemplateData

Safety warning callout box per ANSI Z535.6 standard

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Severity Levellevel

Severity: danger, warning, caution, or notice

Suggested values
danger warning caution notice
Default
notice
Stringrequired
Hazard Titletitle

Brief description (e.g., Fire Hazard)

Stringrequired
Hazard Detailsbody

Hazard, consequence, required action

Contentrequired
SOJI Electronics