Template talk:Warn: Difference between revisions

From Caps Wiki
Jump to navigation Jump to search
(→‎Large banner div warnings: Update NOTE example to match Mains Power page)
(→‎Other warning text suggestions: Fix colour space mistake (Adobe RGB -> sRGB))
 
(One intermediate revision by the same user not shown)
Line 7: Line 7:
=== Large banner div warnings ===
=== Large banner div warnings ===
Those should only be necessary to put those on guide pages that directly give safety advice about a topic ([[Mains Power|example]])
Those should only be necessary to put those on guide pages that directly give safety advice about a topic ([[Mains Power|example]])
<div style="background-color:#fee7e6; padding: 1.2rem; margin-top: 0.5em; border: 1px solid #bf3333; border-top-color:bf3333; border-top-width: .4rem; border-radius: .20rem; box-shadow: 2px 2px #F7F8F9;">[[File:OOjs UI icon alert-destructive.svg|35px|left|link=]]'''DANGER''' Pyrotechnic devices contain potentially lethal hazards or can become lethal hazards if not correctly repaired which will result in death or serious injury. Ensure you fully understand the content of this page before attempting to dissemble or repair a Pyrotechnic device. Do not attempt to dissemble or repair a Pyrotechnic device unless you understand how to do so safely.<br/></div>
<div style="background-color:#ffe5e5; padding: 1.2rem; margin-top: 0.5em; border: 1px solid #dd3333; border-top-color:dd3333; border-top-width: .4rem; border-radius: .20rem; box-shadow: 2px 2px #F7F8F9;">[[File:OOjs UI icon alert-destructive.svg|35px|left|link=]]'''DANGER''' Pyrotechnic devices contain potentially lethal hazards or can become lethal hazards if not correctly repaired which will result in death or serious injury. Ensure you fully understand the content of this page before attempting to disassemble or repair a Pyrotechnic device. Do not attempt to disassemble or repair a Pyrotechnic device unless you understand how to do so safely.<br/></div>


<div style="background-color:#fceee6; padding: 1.2rem; margin-top: 0.5em; border: 1px solid #df5c15 ; border-top-color:bf3333; border-top-width: .4rem; border-radius: .20rem; box-shadow: 2px 2px #F7F8F9;">[[File:OOjs UI icon alert-warning.svg|35px|left|link=]]'''WARNING''' Mains powered devices contain potentially lethal hazards or can become lethal hazards if not correctly repaired which may result in death or serious injury. Ensure you fully understand the content of this page before attempting to dissemble or repair a mains powered device. Do not attempt to dissemble or repair a mains powered device unless you understand how to do so safely.<br/></div>
<div style="background-color:#ffefe5; padding: 1.2rem; margin-top: 0.5em; border: 1px solid #ff5d00; border-top-color:ff5d00; border-top-width: .4rem; border-radius: .20rem; box-shadow: 2px 2px #F7F8F9;">[[File:OOjs UI icon alert-warning.svg|35px|left|link=]]'''WARNING''' Mains powered devices contain potentially lethal hazards or can become lethal hazards if not correctly repaired which may result in death or serious injury. Ensure you fully understand the content of this page before attempting to disassemble or repair a mains powered device. Do not attempt to disassemble or repair a mains powered device unless you understand how to do so safely.<br/></div>


<div style="background-color:#fcf8e6; padding: 1.2rem; margin-top: 0.5em; border: 1px solid #f1cc43; border-top-color:f1cc43; border-top-width: .4rem; border-radius: .20rem; box-shadow: 2px 2px #F7F8F9;">[[File:OOjs UI icon alert-yellow.svg|35px|left|link=]]'''CAUTION''' Lithium Polymer cells are potentially hazardous and can present a serious fire hazard which may result in serious injury or property damage. Ensure you fully understand the content of this page before attempting to disassemble or repair a Lithium Polymer battery. Do not attempt to dissemble or repair a Lithium Polymer battery unless you understand how to do so safely.<br/></div>
<div style="background-color:#fff9e5; padding: 1.2rem; margin-top: 0.5em; border: 1px solid #ffcc33; border-top-color:ffcc33; border-top-width: .4rem; border-radius: .20rem; box-shadow: 2px 2px #F7F8F9;">[[File:OOjs UI icon alert-yellow.svg|35px|left|link=]]'''CAUTION''' Lithium Polymer cells are potentially hazardous and can present a serious fire hazard which may result in serious injury or property damage. Ensure you fully understand the content of this page before attempting to disassemble or repair a Lithium Polymer battery. Do not attempt to disassemble or repair a Lithium Polymer battery unless you understand how to do so safely.<br/></div>


<div style="background-color:#f8f9fa; padding: 1.2rem; margin-top: 0.5em; border: 1px solid #4666c8; border-top-color:4666c8 ; border-top-width: .4rem; border-radius: .20rem; box-shadow: 2px 2px #F7F8F9;">[[File:OOjs UI icon information-progressive.svg|35px|left|link=]]'''NOTE''' The content of this Wiki is community contributed and is a continuous work-in-progress and as such no guarantees that this information is complete, accurate or applicable can be made. Caps Wiki and its owner/operator and contributors assume no liability for actions taken based on this information.<br/></div>
<div style="background-color:#f8f9fa; padding: 1.2rem; margin-top: 0.5em; border: 1px solid #3366cc; border-top-color:3366cc; border-top-width: .4rem; border-radius: .20rem; box-shadow: 2px 2px #F7F8F9;">[[File:OOjs UI icon information-progressive.svg|35px|left|link=]]'''NOTE''' The content of this Wiki is community contributed and is a continuous work-in-progress and as such no guarantees that this information is complete, accurate or applicable can be made. Caps Wiki and its owner/operator and contributors assume no liability for actions taken based on this information.<br/></div>


=== Medium box warnings ===
=== Medium box warnings ===
Those could probably be put at the top of the disassembly notes or in an infobox under the device infobox on the right hand side of the page. ([[Heathkit IO 4550|example]])
Those could probably be put at the top of the disassembly notes or in an infobox under the device infobox on the right hand side of the page. ([[Heathkit IO 4550|example]])


<table cellspacing="0" cellpadding="0" border="0" style="margin-top:0.5em; border:1px #bf3333 solid; padding:0.5em; background-color:#fee7e6"><tr><td nowrap="true" valign="top">
<table cellspacing="0" cellpadding="0" border="0" style="margin-top:0.5em; border:1px #dd3333 solid; padding:0.5em; background-color:#ffe5e5"><tr><td nowrap="true" valign="top">
[[File:OOjs UI icon alert-destructive.svg|18px|text-bottom|alt=DANGER]] '''DANGER''' This device has exposed high voltage and intentionally defeats earth leakage circuit breakers.
[[File:OOjs UI icon alert-destructive.svg|18px|text-bottom|alt=DANGER]] '''DANGER''' This device has exposed high voltage and intentionally defeats earth leakage circuit breakers.
</table>
</table>


<table cellspacing="0" cellpadding="0" border="0" style="margin-top:0.5em; border:1px #df5c15 solid; padding:0.5em; background-color:#fceee6"><tr><td nowrap="true" valign="top">
<table cellspacing="0" cellpadding="0" border="0" style="margin-top:0.5em; border:1px #ff5d00 solid; padding:0.5em; background-color:#ffefe5"><tr><td nowrap="true" valign="top">
[[File:OOjs UI icon alert-warning.svg|18px|text-bottom|alt=WARNING]] '''WARNING''' This device contains a high voltage [[CRT Repairs|CRT]].
[[File:OOjs UI icon alert-warning.svg|18px|text-bottom|alt=WARNING]] '''WARNING''' This device contains a high voltage [[CRT Repairs|CRT]].
</table>
</table>


<table cellspacing="0" cellpadding="0" border="0" style="margin-top:0.5em; border:1px #f1cc43 solid; padding:0.5em; background-color:#fcf8e6"><tr><td nowrap="true" valign="top">
<table cellspacing="0" cellpadding="0" border="0" style="margin-top:0.5em; border:1px #ffcc33 solid; padding:0.5em; background-color:#fff9e5"><tr><td nowrap="true" valign="top">
[[File:OOjs UI icon alert-yellow.svg|18px|text-bottom|alt=CAUTION]] '''CAUTION''' This device is [[Mains Power|mains powered]].
[[File:OOjs UI icon alert-yellow.svg|18px|text-bottom|alt=CAUTION]] '''CAUTION''' This device is [[Mains Power|mains powered]].
</table>
</table>


<table cellspacing="0" cellpadding="0" border="0" style="margin-top:0.5em; border:1px #4666c8 solid; padding:0.5em; background-color:#f8f9fa"><tr><td nowrap="true" valign="top">
<table cellspacing="0" cellpadding="0" border="0" style="margin-top:0.5em; border:1px #3366cc solid; padding:0.5em; background-color:#f8f9fa"><tr><td nowrap="true" valign="top">
[[File:OOjs UI icon information-progressive.svg|18px|text-bottom|alt=NOTE]] '''NOTE''' This device is subject to strict regulations in some regions, modifications may be unlawful.
[[File:OOjs UI icon information-progressive.svg|18px|text-bottom|alt=NOTE]] '''NOTE''' This device is subject to strict regulations in some regions, modifications may be unlawful.
</table>
</table>

Latest revision as of 05:03, 12 February 2022

Other warning text suggestions

Here's what I think some other warnings should look like. Those are more akin to the warnings you see on products and in product manuals and use similar graphics and phrasing. I expected those will be dismissed as rubbish red tape by some experienced repair technicians but they are not the target, the target is someone inexperienced, probably a kid who stumbles across this wiki trying to fix a game console who has no clue what they're doing along with any lawyers and government regulators.

If you're happy with those I'll write the template code for them later this week.

Large banner div warnings

Those should only be necessary to put those on guide pages that directly give safety advice about a topic (example)

DANGER Pyrotechnic devices contain potentially lethal hazards or can become lethal hazards if not correctly repaired which will result in death or serious injury. Ensure you fully understand the content of this page before attempting to disassemble or repair a Pyrotechnic device. Do not attempt to disassemble or repair a Pyrotechnic device unless you understand how to do so safely.
WARNING Mains powered devices contain potentially lethal hazards or can become lethal hazards if not correctly repaired which may result in death or serious injury. Ensure you fully understand the content of this page before attempting to disassemble or repair a mains powered device. Do not attempt to disassemble or repair a mains powered device unless you understand how to do so safely.
CAUTION Lithium Polymer cells are potentially hazardous and can present a serious fire hazard which may result in serious injury or property damage. Ensure you fully understand the content of this page before attempting to disassemble or repair a Lithium Polymer battery. Do not attempt to disassemble or repair a Lithium Polymer battery unless you understand how to do so safely.
NOTE The content of this Wiki is community contributed and is a continuous work-in-progress and as such no guarantees that this information is complete, accurate or applicable can be made. Caps Wiki and its owner/operator and contributors assume no liability for actions taken based on this information.

Medium box warnings

Those could probably be put at the top of the disassembly notes or in an infobox under the device infobox on the right hand side of the page. (example)

DANGER DANGER This device has exposed high voltage and intentionally defeats earth leakage circuit breakers.

WARNING WARNING This device contains a high voltage CRT.

CAUTION CAUTION This device is mains powered.

NOTE NOTE This device is subject to strict regulations in some regions, modifications may be unlawful.

Small in-line warnings

For use in instructions about specific things (now sure how much people would use those but they could be useful)

DANGER DANGER Capacitor C5 is 2 kV 125 μF (300 J).

WARNING WARNING Those 450 V capacitors do not have bleeder resistors.

CAUTION CAUTION This heatsink has very sharp edges.

NOTE NOTE The sensor window is extremely fragile.


WizardTim (talk) 10:55, 9 February 2022 (UTC)

I really like these and would like to implement them. The way I've been making the templates won't work well for this though because it's using if-then's to substitute based on strings and this really needs something like a drop down menu to choose which kind to use for probably both the warning icon/color and the size. @Lyiriyah: , do you know enough about templates to do something like that?

I do won't if we should simplify to three options like "DANGER", "CAUTION", "NOTE" since "WARNING" and "CAUTION" mean fairly similar things and the colors become less distinct. That way the severity of the warning is immediately obvious. And it would make it easier to decide which ones to use as well.

--AkBKukU (talk) 13:13, 11 February 2022 (UTC)

I haven’t done much with Wiki templates but I can probably figure it out if needed, I’d probably implement them as three different templates probably ‘warn-banner’, ‘warn-box’ and ‘warn-inline’.
I strongly recommend sticking to those words as they’re standardised in hazard communication worldwide across languages and not only in the electronics industry. You can give the advice of “the template word you use should match what is written on the device”
The difference between them in summary is:
DANGER – Situation that will result in serious injury or death.
WARNING – Situation could result in serious injury or death.
CAUTION – Situation could result moderate or minor injury.
NOTE – Situations unrelated to injury or things related to property damage or legal implications.
WizardTim (talk) 13:41, 11 February 2022 (UTC)