Template:SafetyCallout: Difference between revisions
Appearance
| [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-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> | ||
{{ | == 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
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Severity Level | level | Severity: danger, warning, caution, or notice
| String | required |
| Hazard Title | title | Brief description (e.g., Fire Hazard) | String | required |
| Hazard Details | body | Hazard, consequence, required action | Content | required |