வார்ப்புரு:Chembox Hazards/sandbox
{{#if:{{{ExternalSDS|}}}{{{GHSPictograms|}}}{{{GHSSignalWord|}}}{{{HPhrases|}}}{{{PPhrases|}}}{{{EUPhrases|}}}{{{MainHazards|}}}{{{IngestionHazard|}}}{{{InhalationHazard|}}}{{{EyeHazard|}}}{{{SkinHazard|}}}{{{NFPA-F|}}}{{{NFPA-H|}}}{{{NFPA-I|}}}{{{NFPA-R|}}}{{{NFPA-S|}}}
 {{{FlashPt|}}}{{{FlashPtC|}}}{{{FlashPtF|}}}{{{FlashPtK|}}}
 {{{AutoignitionPt|}}}{{{AutoignitionPtC|}}}{{{AutoignitionPtF|}}}{{{AutoignitionPtK|}}}{{{AutoignitionPt_notes|}}}
 {{{ExploLimits|}}}{{{PEL|}}}{{{REL|}}}{{{IDLH|}}}{{{TLV|}}}{{{TLV-TWA|}}}{{{TLV-STEL|}}}{{{TLV-C|}}}{{{LD50|}}}{{{LDLo|}}}{{{LC50|}}}{{{LCLo|}}}
 |&lt;!-- then:
  ----- HEADER -----
 --&gt;{{Chembox headerbar
 |header=Hazards
 |ref={{{Hazards_ref|}}}&lt;!--
  ----- maintenance cats -----
 --&gt;|addTestCategories=&lt;!--
 --&gt;|addMainCategories={{#if:{{{GHSPictograms|}}}{{{GHSSignalWord|}}}{{{HPhrases|}}}{{{PPhrases|}}}{{{EUPhrases|}}}|[[Category:Chembox having GHS data]]}}&lt;!--
  ----- templatepar -----
 --&gt;|templatepar={{#invoke:TemplatePar
 |check
 |template=Template:Chembox Hazards
 |all= |opt= Hazards_ref= ExternalSDS= GHSPictograms= GHSSignalWord= GHS_ref= HPhrases= PPhrases= EUPhrases= MainHazards= IngestionHazard= InhalationHazard= EyeHazard= SkinHazard= NFPA-F= NFPA-H= NFPA-I= 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= LD50= LDLo= LC50= LCLo= PEL= REL= IDLH= NIOSH_id= NIOSH_ref=
 |cat=Pages using Chembox with unknown parameters
 |format=0|preview={{Chembox templatePar/formatPreviewMessage|msg=@@@}}|errNS=0}}&lt;!--
  ----- END HEADERBAR --&gt;}}&lt;!--
  ----- START DATA ROWS ----- --&gt;&lt;!--
  OHS --&gt;
 {{#if:{{{MainHazards|}}}{{{IngestionHazard|}}}{{{InhalationHazard|}}}{{{EyeHazard|}}}{{{SkinHazard|}}}
 |{{Chembox OHS (set)
  | MainHazards      = {{{MainHazards|}}}
  | IngestionHazard  = {{{IngestionHazard|}}}
  | InhalationHazard = {{{InhalationHazard|}}}
  | EyeHazard        = {{{EyeHazard|}}}
  | SkinHazard       = {{{SkinHazard|}}}
  | OHS_ref          = {{{OHS_ref|}}}
 }}}}&lt;!--
  GHS --&gt;
 {{#if:{{{GHSPictograms|}}}{{{GHSSignalWord|}}}{{{HPhrases|}}}{{{PPhrases|}}}{{{EUPhrases|}}}
 |{{Chembox GHS (set)
  |GHS_ref     = {{{GHS_ref|}}}
  |GHSpics     = {{{GHSPictograms|}}}
  |GHSword     = {{{GHSSignalWord|}}}
  |GHSbareword = {{KillMarkers|{{{GHSSignalWord|}}}}}
  |Hphrases    = {{{HPhrases|}}}
  |Pphrases    = {{{PPhrases|}}}
  |EUphrases   = {{{EUPhrases|}}} }} }}
 &lt;!--
  NFPA box --&gt;
 {{#if:{{{NFPA-H|}}}{{{NFPA-F|}}}{{{NFPA-I|}}}{{{NFPA-R|}}}{{{NFPA-S|}}}{{{NFPA-O|}}}|{{Chembox NFPA
 |NFPA-F={{{NFPA-F|}}}|NFPA-H={{{NFPA-H|}}}|NFPA-I={{{NFPA-I|{{{NFPA-R|}}}}}}|NFPA-S={{{NFPA-S|{{{NFPA-O|}}}}}}|NFPA_Ref={{{NFPA_ref|}}}{{{NFPA_Ref|}}}&lt;!-- accept uc and lc (not a bot param) --&gt;|showimage={{{showimage|yes}}}|cat={{{cat|yes}}} }}}}&lt;!--
  FLASH PT etc --&gt;
 {{#if:{{{FlashPt|}}}{{{FlashPtC|}}}{{{FlashPtF|}}}{{{FlashPtK|}}}{{{FlashPt_notes|}}} |{{Chembox FlashPt
 |data={{Chembox CalcTemperatures
 |temp_text={{{FlashPt|}}}
 |temp_C={{{FlashPtC|}}} |temp_F={{{FlashPtF|}}} |temp_K={{{FlashPtK|}}}
 |temp_unit={{#if:{{{FlashPtC|}}} |C |{{#if:{{{FlashPtF|}}} |F |{{#if:{{{FlashPtK|}}} |K}} }}}}
 |temp_ref={{{FlashPt_ref|}}}
 |temp_notes={{{FlashPt_notes|}}} }} }} }}
 {{#if:{{{AutoignitionPt|}}}{{{AutoignitionPtC|}}}{{{AutoignitionPtF|}}}{{{AutoignitionPtK|}}}{{{AutoignitionPt_notes|}}}
 |{{Chembox AutoignitionPt
 |data={{Chembox CalcTemperatures
 |temp_text={{{AutoignitionPt|}}}
 |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|}}} }}}}
 {{#if:{{{LD50|}}}{{{LDLo|}}}{{{LC50|}}}{{{LCLo|}}} |{{Chembox Lethal amounts (set)
 |LD50={{{LD50|}}} |LDLo={{{LDLo|}}} |LC50={{{LC50|}}}|LCLo={{{LCLo|}}} }}}}
 {{#if:{{{PEL|}}}{{{REL|}}}{{{IDLH|}}}
 |{{Chembox NIOSH (set)
 |PEL={{{PEL|}}} |REL={{{REL|}}} |IDLH={{{IDLH|}}}
 |NIOSH_id={{{NIOSH_id|}}}
 |NIOSHidOK={{#ifexpr:{{#invoke:string|find|source={{{NIOSH_id|_}}} |target=^%d%d%d%d$|plain=false}}&gt;0|yes|no}}
 |NIOSH_ref={{{NIOSH_ref|}}} }}}}&lt;!--
  exernal SDS --&gt;
 {{#if:{{{ExternalSDS|}}} |{{Chembox SDS |ExternalSDS={{{ExternalSDS|}}} }}}}&lt;!--
 
  end of section template Chembox Hazards
 --&gt;}}&lt;!--