Jump to content

Template:Warning: Difference between revisions

From SOJI ELECTRONICS
[unchecked revision][checked revision]
Created page with "{| class="wikitable warning" ! ⚠️ WARNING — {{{title|}}} |- | {{{body|}}} |}<noinclude> == Description == WARNING callout — potential hazard with risk of serious injury. == Usage == Insert via Visual Editor: Insert → Template → "Warning" == TemplateData == <templatedata> { "description": "WARNING safety callout - potential hazard with serious injury risk", "params": { "title": { "label": "Hazard Title", "description"..."
 
No edit summary
 
Line 2: Line 2:
! ⚠️ WARNING — {{{title|}}}
! ⚠️ WARNING — {{{title|}}}
|-
|-
|  
|
{{{body|}}}
{{{body|}}}
|}<noinclude>
|}<noinclude>
== Description ==
WARNING callout — potential hazard with risk of serious injury.
== Usage ==
Insert via Visual Editor: Insert → Template → "Warning"


== TemplateData ==
== TemplateData ==
<templatedata>
<templatedata>
{
{
    "description": "WARNING safety callout - potential hazard with serious injury risk",
"description": "WARNING safety callout for life-threatening hazards.",
    "params": {
"params": {
        "title": {
"title": {
            "label": "Hazard Title",
"label": "Hazard title (no WARNING prefix)",
            "description": "Brief description (e.g., Mechanical Hazard)",
"description": "Just the hazard name. Template auto-adds 'WARNING —' prefix.",
            "type": "string",
"type": "string",
            "required": true,
"required": true,
            "example": "Mechanical Hazard"
"example": "Fire / Explosion Hazard"
        },
},
        "body": {
"body": {
            "label": "Hazard Details",
"label": "Content (use * for each bullet)",
            "description": "Hazard, consequence, and required action",
"description": "Type wikitext with * at start of each line for bullet list. Each new bullet = new line starting with *",
            "type": "content",
"type": "content",
            "required": true
"required": true,
        }
"example": "* '''Hazard''': Fuel vapors are flammable\n* '''Consequence''': Death or serious injury\n* '''Required action''': Empty tank, ventilate"
    },
}
    "paramOrder": ["title", "body"],
},
    "format": "block"
"paramOrder": ["title", "body"],
"format": "block"
}
}
</templatedata>
</templatedata>
[[Category:Safety Templates]]
 
</noinclude>
</noinclude>

Latest revision as of 11:08, 13 May 2026

⚠️ WARNING —

TemplateData

WARNING safety callout for life-threatening hazards.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Hazard title (no WARNING prefix)title

Just the hazard name. Template auto-adds 'WARNING —' prefix.

Example
Fire / Explosion Hazard
Stringrequired
Content (use * for each bullet)body

Type wikitext with * at start of each line for bullet list. Each new bullet = new line starting with *

Example
* '''Hazard''': Fuel vapors are flammable
  • '''Consequence''': Death or serious injury
  • '''Required action''': Empty tank, ventilate
Contentrequired


SOJI Electronics