Difference between revisions of "Template:Chembox Hazards/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Plastikspork
(Fix)
 
(336 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{#if:{{{ExternalMSDS|}}}{{{GHSPictograms|}}}{{{GHSSignalWord|}}}{{{HPhrases|}}}{{{PPhrases|}}}{{{EUIndex|}}}{{{EUClass|}}}{{{RPhrases|}}}{{{SPhrases|}}}{{{RSPhrases|}}}{{{MainHazards|}}}{{{IngestionHazard|}}}{{{InhalationHazard|}}}{{{EyeHazard|}}}{{{SkinHazard|}}}{{{NFPA-F|}}}{{{NFPA-H|}}}{{{NFPA-R|}}}{{{NFPA-O|}}}{{{FlashPt|}}}{{{FlashPtC|}}}{{{FlashPtF|}}}{{{FlashPtK|}}}{{{Autoignition|}}}{{{AutoignitionC|}}}{{{AutoignitionF|}}}{{{AutoignitionK|}}}{{{ExploLimits|}}}{{{PEL|}}}{{{TLV|}}}{{{TLV-TWA|}}}{{{TLV-STEL|}}}{{{TLV-C|}}}{{{LD50|}}}|! {{Chembox header}} {{!}} Hazards{{{Reference|}}}
+
{{#if:{{{ExternalSDS|}}}{{{Hazards_data_page|}}}{{{GHSPictograms|}}}{{{GHSSignalWord|}}}{{{HPhrases|}}}{{{PPhrases|}}}{{{GHS_ref|}}}{{{MainHazards|}}}{{{IngestionHazard|}}}{{{InhalationHazard|}}}{{{EyeHazard|}}}{{{SkinHazard|}}}{{{NFPA-F|}}}{{{NFPA-H|}}}{{{NFPA-R|}}}{{{NFPA-S|}}}{{{NFPA_ref|}}}
{{!}}-
+
{{{FlashPt|}}}{{{FlashPtC|}}}{{{FlashPtF|}}}{{{FlashPtK|}}}
{{#ifexist:{{PAGENAME}} (data page)|
+
{{{AutoignitionPt|}}}{{{AutoignitionPtC|}}}{{{AutoignitionPtF|}}}{{{AutoignitionPtK|}}}{{{AutoignitionPt_notes|}}}
{{!}} [[Material safety data sheet|MSDS]]
+
{{{ExploLimits|}}}{{{PEL|}}}{{{REL|}}}{{{IDLH|}}}{{{NIOSH_ref|}}}{{{TLV|}}}{{{TLV-TWA|}}}{{{TLV-STEL|}}}{{{TLV-C|}}}{{{LD50|}}}{{{LDLo|}}}{{{LC50|}}}{{{LCLo|}}}{{{LDLC50_ref|}}}<!-- outdated, use new GHS data: -->{{{EUClass|}}}{{{RPhrases|}}}{{{SPhrases|}}}{{{RSPhrases|}}}{{{DSD_ref|}}}
{{!}} [[{{PAGENAME}} (data page)#Material Safety Data Sheet|External MSDS]]
+
|<!-- then:
{{!}}-
+
----- HEADER -----
|{{#if:{{{ExternalMSDS|}}}|{{Chembox ExternalMSDS| value={{{ExternalMSDS}}} }} }} }}
+
-->{{Chembox headerbar
{{#if:{{{GHSPictograms|}}}|{{Chembox GHSPictograms| value={{{GHSPictograms}}}  }} }}
+
|header=Hazards/sandbox
{{#if:{{{GHSSignalWord|}}}|{{Chembox GHSSignalWord| value={{{GHSSignalWord}}}  }} }}
+
|ref={{{Hazards_ref|}}}<!--
{{#if:{{{HPhrases|}}}|{{Chembox HPhrases| value={{{HPhrases}}} }} }}
+
----- maintenance cats -----
{{#if:{{{PPhrases|}}}|{{Chembox PPhrases| value={{{PPhrases}}}  }} }}
+
-->|addTestCategories=<!--
{{#if:{{{EUIndex|}}}|{{Chembox EUIndex| value={{{EUIndex}}}  }} }}
+
-->|addMainCategories={{#if:{{{EUClass|}}}{{{RPhrases|}}}{{{SPhrases|}}}{{{RSPhrases|}}}|[[Category:Chembox having DSD data]]}}<!--
{{#if:{{{EUClass|}}}|{{Chembox EUClass| value={{{EUClass}}} }} }}
+
-->{{#if:{{{GHSPictograms|}}}{{{GHSSignalWord|}}}{{{HPhrases|}}}{{{PPhrases|}}}|[[Category:Chembox having GHS data]]}}<!--
{{#if:{{{RPhrases|}}}|{{Chembox RPhrases| value={{{RPhrases}}} }} }}
+
  ----- templatepar -----
{{#if:{{{SPhrases|}}}|{{Chembox SPhrases| value={{{SPhrases}}} }} }}
+
-->|templatepar={{#invoke:TemplatePar
{{#if:{{{RSPhrases|}}}|{{Chembox RSPhrases| value={{{RSPhrases}}} }} }}
+
|check
{{#if:{{{MainHazards|}}}|{{Chembox MainHazards| value={{{MainHazards}}} }} }}
+
|template=Template:Chembox Hazards
{{#if:{{{IngestionHazard|}}}|{{Chembox IngestionHazard| value={{{IngestionHazard}}} }} }}
+
|all= |opt= Hazards_ref= ExternalSDS= GHS_ref= GHSPictograms= GHSSignalWord= Hazards_data_page= HPhrases= PPhrases= EUClass= RPhrases= SPhrases= RSPhrases= MainHazards= IngestionHazard= InhalationHazard= EyeHazard= SkinHazard= NFPA-F= NFPA-H= NFPA-R= NFPA-S= NFPA_ref= FlashPt= FlashPtC= FlashPtF= FlashPtK= FlashPt_notes= FlashPt_ref= AutoignitionPt= AutoignitionPtC= AutoignitionPtF= AutoignitionPtK= AutoignitionPt_ref= AutoignitionPt_notes= ExploLimits= TLV= TLV-TWA= TLV-STEL= TLV-C= LDLC50_ref= LD50= LDLo= LC50= LCLo= PEL= REL= IDLH= NIOSH_id= NIOSH_ref=
{{#if:{{{InhalationHazard|}}}|{{Chembox InhalationHazard| value={{{InhalationHazard}}} }} }}
+
|cat=Chemical articles with unknown parameter in Chembox
{{#if:{{{EyeHazard|}}}|{{Chembox EyeHazard| value={{{EyeHazard}}} }} }}
+
|format=0|preview={{Chembox templatePar/formatPreviewMessage|msg=@@@}}|errNS=0}}<!--
{{#if:{{{SkinHazard|}}}|{{Chembox SkinHazard| value={{{SkinHazard}}} }} }}
+
----- END HEADERBAR -->}}<!--
{{#if:{{{NFPA-H|}}}{{{NFPA-F|}}}{{{NFPA-R|}}}{{{NFPA-O|}}}|{{Chembox NFPA
+
----- START DATA ROWS ----- -->
|par_F={{#ifeq:{{{NFPA-F|}}}||0|{{{NFPA-F}}}}}
+
{{#if:{{{MainHazards|}}} |{{Chembox MainHazards| value={{{MainHazards}}} }}}}
|par_H={{#ifeq:{{{NFPA-H|}}}||0|{{{NFPA-H}}}}}
+
{{#if:{{#ifexist:{{PAGENAME}} (data page)|Exists}}{{{Hazards_data_page|}}}{{{ExternalSDS|}}} |{{Chembox SDS| data page={{#if:{{{Hazards_data_page|}}} |{{{Hazards_data_page|}}}|{{#ifexist:{{PAGENAME}} (data page)|[[{{PAGENAME}} (data page)#Safety data sheet|data page]]}}}} |externalSDS={{{ExternalSDS|}}} }}}}
|par_R={{#ifeq:{{{NFPA-R|}}}||0|{{{NFPA-R}}}}}
+
{{#if:{{{IngestionHazard|}}} |{{Chembox IngestionHazard| value={{{IngestionHazard}}} }}}}
|par_O={{{NFPA-O|}}} }} }}
+
{{#if:{{{InhalationHazard|}}} |{{Chembox InhalationHazard| value={{{InhalationHazard}}} }}}}
{{#if:{{{FlashPtC|}}}{{{FlashPtF|}}}{{{FlashPtK|}}}{{{FlashPt|}}}|{{Chembox FlashPt|value={{{FlashPt|}}}|value1={{{FlashPtC|}}}|value2={{{FlashPtF|}}}|value3={{{FlashPtK|}}} }} }}
+
{{#if:{{{EyeHazard|}}} |{{Chembox EyeHazard| value={{{EyeHazard}}} }}}}
{{#if:{{{AutoignitionC|}}}{{{AutoignitionF|}}}{{{AutoignitionK|}}}{{{Autoignition|}}}|{{Chembox Autoignition|value={{{Autoignition|}}}|value1={{{AutoignitionC|}}}|value2={{{AutoignitionF|}}}|value3={{{AutoignitionK|}}} }} }}
+
{{#if:{{{SkinHazard|}}} |{{Chembox SkinHazard| value={{{SkinHazard}}} }}}}
{{#if:{{{ExploLimits|}}}|{{Chembox ExploLimits|value={{{ExploLimits}}} }} }}
+
{{#if:{{{FlashPt|}}}{{{FlashPtC|}}}{{{FlashPtF|}}}{{{FlashPtK|}}}{{{FlashPt_notes|}}} |<!--
{{#if:{{{PEL|}}}|{{Chembox PEL|value={{{PEL}}} }} }}
+
-->{{Chembox FlashPt
{{#if:{{{TLV|}}}{{{TLV-TWA|}}}{{{TLV-STEL|}}}{{{TLV-C|}}}|{{Chembox TLV
+
|data={{Chembox CalcTemperatures |
|value={{{TLV|}}}|value1={{{TLV-TWA|}}}|value2={{{TLV-STEL|}}}|value3={{{TLV-C|}}} }} }}
+
|temp_text={{{FlashPt|}}}&#x20;
{{#if:{{{LD50|}}}|{{Chembox LD50|value={{{LD50}}} }} }}
+
|temp_C={{{FlashPtC|}}} |temp_F={{{FlashPtF|}}} |temp_K={{{FlashPtK|}}}
}}{{Chembox parametercheck|1={{{RTECS|}}}|2={{#if:{{{HPhrases|}}}{{{PPhrases|}}}|{{{RPhrases|}}}{{{SPhrases|}}} }}|4={{{Autoignition|}}}|catsort4=A }}<noinclude>
+
|temp_unit={{#if:{{{FlashPtC|}}} |C |{{#if:{{{FlashPtF|}}} |F |{{#if:{{{FlashPtK|}}} |K}} }}}}
{{documentation}}
+
|temp_ref={{{FlashPt_ref|}}}
<!--old depr check
+
|temp_notes={{{FlashPt_notes|}}} }} }} }}
{{#if:{{{RTECS|}}}|[[Category:Chemical infoboxes with misplaced or deprecated parameters]]}}{{#if:{{{HPhrases|}}}{{{PPhrases|}}}|{{#if:{{{RPhrases|}}}{{{SPhrases|}}}|[[Category:Chemical infoboxes with misplaced or deprecated parameters]]}}}}-->
+
{{#if:{{{AutoignitionPt|}}}{{{AutoignitionPtC|}}}{{{AutoignitionPtF|}}}{{{AutoignitionPtK|}}}{{{AutoignitionPt_notes|}}}
</noinclude>
+
|{{Chembox AutoignitionPt
 +
|data={{Chembox CalcTemperatures |
 +
|temp_text={{{AutoignitionPt|}}}&#x20;
 +
|temp_C={{{AutoignitionPtC|}}} |temp_F={{{AutoignitionPtF|}}} |temp_K={{{AutoignitionPtK|}}}
 +
|temp_unit={{#if:{{{AutoignitionPtC|}}} |C |{{#if:{{{AutoignitionPtF|}}} |F |{{#if:{{{AutoignitionPtK|}}} |K}} }}}}
 +
|temp_ref={{{AutoignitionPt_ref|}}}
 +
|temp_notes={{{AutoignitionPt_notes|}}} }} }}}}
 +
{{#if:{{{ExploLimits|}}}|{{Chembox ExploLimits
 +
|value={{{ExploLimits}}} }}}}
 +
{{#if:{{{TLV|}}}{{{TLV-TWA|}}}{{{TLV-STEL|}}}{{{TLV-C|}}}
 +
|{{Chembox TLV
 +
|value={{{TLV|}}} |value1={{{TLV-TWA|}}} |value2={{{TLV-STEL|}}} |value3={{{TLV-C|}}}
 +
}}}}<!--
 +
 
 +
LD50 set -->
 +
{{#if:{{{LD50|}}}{{{LDLo|}}}{{{LC50|}}}{{{LCLo|}}}
 +
|{{Chembox Lethal amounts (set)/sandbox
 +
|LDLC50_ref={{{LDLC50_ref|}}}
 +
|LD50={{{LD50|}}}
 +
|LDLo={{{LDLo|}}}
 +
|LC50={{{LC50|}}}
 +
|LCLo={{{LCLo|}}}
 +
}}
 +
|{{#if:{{{LDLC50_ref|}}}|{{Chembox ghost reference|ghost_ref={{{LDLC50_ref|}}}|sort=Lethal dose}}}}
 +
}}<!--
 +
 
 +
GHS set -->
 +
{{#if:{{{GHSPictograms|}}}{{{GHSSignalWord|}}}{{{HPhrases|}}}{{{PPhrases|}}}
 +
|{{Chembox GHS (set)<!-- new as set Nov2019 -->
 +
| GHS_ref={{{GHS_ref|}}}
 +
| GHSPictograms={{{GHSPictograms|}}}
 +
| GHSSignalWord={{{GHSSignalWord|}}}
 +
| bareword={{trim|1={{KillMarkers|1={{{GHSSignalWord|}}} }}}}
 +
| HPhrases={{{HPhrases|}}}
 +
| PPhrases={{{PPhrases|}}}
 +
}}
 +
|{{#if:{{{GHS_ref|}}}|{{Chembox ghost reference|ghost_ref={{{GHS_ref|}}}|sort=GHS}}}}
 +
}}<!--
 +
 
 +
NFPA 704 fire diamond as a set Nov2019 -->
 +
{{#if:{{{NFPA-H|}}}{{{NFPA-F|}}}{{{NFPA-R|}}}{{{NFPA-S|}}}{{{NFPA-O|}}}
 +
|{{Chembox NFPA (set)<!-- new as set Nov2019 -->
 +
|NFPA-F={{{NFPA-F|}}}|NFPA-H={{{NFPA-H|}}}|NFPA-R={{{NFPA-R|}}}|NFPA-S={{{NFPA-S|{{{NFPA-O|}}}}}}
 +
|NFPA_ref={{{NFPA_ref|}}}
 +
|showimage={{{showimage|yes}}}<!-- e.g., radioation symbol -->
 +
}}
 +
|{{#if:{{{NFPA_ref|}}}|{{Chembox ghost reference|ghost_ref={{{NFPA_ref|}}}|sort=NFPA}}}}
 +
}}<!--
 +
 
 +
NIOSH set -->
 +
{{#if:{{{PEL|}}}{{{REL|}}}{{{IDLH|}}}
 +
|{{Chembox NIOSH (set)/sandbox
 +
|PEL ={{{PEL|}}}
 +
|REL ={{{REL|}}}
 +
|IDLH={{{IDLH|}}}
 +
|NIOSH_id ={{{NIOSH_id|}}}<!-- will not be used when no other NIOSH data -->
 +
|NIOSH_ref={{{NIOSH_ref|}}} }}
 +
|{{#if:{{{NIOSH_ref|}}}|{{Chembox ghost reference|ghost_ref={{{NIOSH_ref|}}}|sort=NIOSH}}}}
 +
}}<!--
 +
 
 +
DSD set (check/warning DSD 2017) -->
 +
{{#if:{{{GHSPictograms|}}}{{{GHSSignalWord|}}}{{{HPhrases|}}}{{{PPhrases|}}}
 +
|<!-- GHS data present, so do not show outdated DSD data. 1 June 2017 -->
 +
|{{#if:{{{EUClass|}}}{{{RPhrases|}}}{{{SPhrases|}}}{{{RSPhrases|}}}
 +
|{{Chembox DSD (set)<!-- new as set Nov2019 -->
 +
  | EUClass  ={{{EUClass|}}}
 +
  | RPhrases ={{{RPhrases|}}}
 +
  | SPhrases ={{{SPhrases|}}}
 +
  | RSPhrases={{{RSPhrases|}}}
 +
  | DSD_ref  ={{{DSD_ref|}}}
 +
  }}
 +
|{{#if:{{{DSD_ref|}}}|{{Chembox ghost reference|ghost_ref={{{DSD_ref|}}}|sort=DSD}}}}
 +
}}}}
 +
<!--
 +
end of Hazards subsection template-->
 +
}}<!--
 +
 
 +
--><noinclude>{{documentation}}</noinclude>

Latest revision as of 00:05, 30 March 2020

Template documentation[view] [edit] [history] [purge]

Usage

This box can be used as a module in the {{chembox}}. Copy the left column into an existing chembox, before the first section, and give the section a unique number 0–9. For example first line here can be | Section7 = {{Chembox Hazards.

This parameter list:
| Section7 = {{Chembox Hazards
| Hazards_ref =
<!-- (data page) -->
| ExternalSDS = 
| GHSPictograms = 
| GHSSignalWord = 
| HPhrases = 
| PPhrases = 
| MainHazards = 
| IngestionHazard = 
| InhalationHazard = 
| EyeHazard = 
| SkinHazard = 
| NFPA-F = 
| NFPA-H = 
| NFPA-R = 
| NFPA-S = 
| NFPA_ref = 
| FlashPt =
| FlashPtC =
| FlashPt_notes =
| FlashPt_ref =
| AutoignitionPt =
| AutoignitionPtC =
| AutoignitionPt_ref=
| AutoignitionPt_notes=
| ExploLimits = 
| TLV = 
| TLV-TWA = 
| TLV-STEL = 
| TLV-C = 
| LD50 = 
| LDLo = 
| LC50 = 
| LCLo = 
| PEL =
| REL = 
| IDLH =
| NIOSH_id =
| NIOSH_ref =
 }}
Template:Pre2

Uses

 [[{{PAGENAME}} (data page)#Material Safety Data Sheet]]

Example

  • Example data from Ammonia and other
Chembox Hazards/sandbox
Hazards
Safety data sheet ICSC 0414 (anhydrous)
GHS pictograms GHS04: Compressed GasGHS05: Corrosive[1]
H221, H280, H314, H331, H400[1]
Template:P-phrases[1]
NFPA 704 (fire diamond) Template:NFPA 704 diamond
Flash point flammable gas (see text)
651 °C (1,204 °F; 924 K)
Explosive limits 15–28%
100 mg
Lethal dose or concentration (LD, LC):
0.015 mL/kg (human, oral)
0.2 mL/kg
NIOSH (US health exposure limits):[3]
PEL (Permissible)
50 ppm (25 ppm ACGIH- TLV; 35 ppm STEL)
REL (Recommended)
75 ppm
IDLH (Immediate danger)
100 ppm
Except where otherwise noted, data are given for materials in their standard state (at 25 °C [77 °F], 100 kPa).
Infobox references
{{Chembox
| Section7 = {{Chembox Hazards
| ExternalSDS = [http://www.inchem.org/documents/icsc/icsc/eics0414.htm ICSC 0414] (anhydrous)
| GHSPictograms = {{GHS04}}{{GHS05}}<ref name="sigma">{{Sigma-Aldrich|id=294993|name=Ammonia|accessdate=2013-07-20}}</ref>
| HPhrases = {{H-phrases|221|280|314|331|400}}<ref name="sigma" />
| PPhrases = {{P-phrases|210|261|273|280|305+351+338|310}}<ref name="sigma" />
| RPhrases = {{R10}}, {{R23}}
| SPhrases = {{S1/2}}, {{S9}}
| EUIndex = 007-001-00-5 (anhydrous)<br />
007-001-01-2 (solutions)
| EUClass = {{Hazchem T}} {{Hazchem C}}
| NFPA-F = 1
| NFPA-H = 3
| NFPA-R = 0
| NFPA-S = RA
| NFPA_ref = <ref>Some source here</ref>
| FlashPt = flammable gas (''see text'')
| AutoignitionPtC = 651
| ExploLimits = 15–28%
| TLV = 100 mg
| LD50 = 0.015 mL/kg (human, oral)
| LC50 = 0.2 mL/kg
| PEL = 50 ppm (25 ppm [[ACGIH]]- TLV; 35 ppm [[STEL]])
| REL = 75 ppm
| IDLH = 100 ppm
| NIOSH_id = 0174
 }}}}

GHS


Tracking category

TemplateData

TemplateData documentation used by VisualEditor and other tools
See the monthly parameter usage report for this template.

TemplateData for Chembox Hazards

Adds a subsection to {{Chembox}}. To be used: |Section7={{Chembox Hazards|...}}

Template parameters

ParameterDescriptionTypeStatus
ExternalSDSExternalSDS

no description

Unknownoptional
Hazards_data_pageHazards_data_page

no description

Unknownoptional
GHSPictogramsGHSPictograms

no description

Unknownoptional
GHSSignalWordGHSSignalWord

no description

Unknownoptional
HPhrasesHPhrases

no description

Unknownoptional
PPhrasesPPhrases

no description

Unknownoptional
EUClassEUClass

no description

Unknowndeprecated
RPhrasesRPhrases

no description

Unknowndeprecated
SPhrasesSPhrases

no description

Unknowndeprecated
RSPhrasesRSPhrases

no description

Unknowndeprecated
MainHazardsMainHazards

no description

Unknownoptional
IngestionHazardIngestionHazard

no description

Unknownoptional
InhalationHazardInhalationHazard

no description

Unknownoptional
EyeHazardEyeHazard

no description

Unknownoptional
SkinHazardSkinHazard

no description

Unknownoptional
NFPA-FNFPA-F

no description

Unknownoptional
NFPA-HNFPA-H

no description

Unknownoptional
NFPA-RNFPA-R

no description

Unknownoptional
NFPA-SNFPA-S

no description

Unknownoptional
FlashPtFlashPt

no description

Unknownoptional
FlashPtCFlashPtC

no description

Unknownoptional
FlashPtFFlashPtF

no description

Unknownoptional
FlashPtKFlashPtK

no description

Unknownoptional
AutoignitionPtAutoignitionPt

no description

Unknownoptional
AutoignitionPtCAutoignitionPtC

no description

Unknownoptional
AutoignitionPtFAutoignitionPtF

no description

Unknownoptional
AutoignitionPtKAutoignitionPtK

no description

Unknownoptional
AutoignitionPt_notesAutoignitionPt_notes

no description

Unknownoptional
ExploLimitsExploLimits

no description

Unknownoptional
PELPEL

no description

Unknownoptional
RELREL

no description

Unknownoptional
IDLHIDLH

no description

Unknownoptional
TLVTLV

no description

Unknownoptional
TLV-TWATLV-TWA

no description

Unknownoptional
TLV-STELTLV-STEL

no description

Unknownoptional
TLV-CTLV-C

no description

Unknownoptional
LD50LD50

no description

Unknownoptional
LDLoLDLo

no description

Unknownoptional
LC50LC50

no description

Unknownoptional
LCLoLCLo

no description

Unknownoptional
Hazards_refHazards_ref

no description

Unknownoptional
NFPA-ONFPA-O

no description

Unknownoptional
NFPA_refNFPA_ref

no description

Unknownoptional
Showimageshowimage

no description

Unknownoptional
Catcat

no description

Unknownoptional
FlashPt_notesFlashPt_notes

no description

Unknownoptional
FlashPt_refFlashPt_ref

no description

Unknownoptional
AutoignitionPt_refAutoignitionPt_ref

no description

Unknownoptional
NIOSH_idNIOSH_id

no description

Unknownoptional
NIOSH_refNIOSH_ref

no description

Unknownoptional

See also

Template:Navbox Chembox

References

  1. 1.0 1.1 1.2 Template:Sigma-Aldrich
  2. Some source here
  3. "NIOSH Pocket Guide to Chemical Hazards".
  4. [1] Annex 1