Difference between revisions of "Template:Chembox Hazards/sandbox"
imported>Plastikspork (Fix) |
|||
| (336 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
| − | {{#if:{{{ | + | {{#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|}}} |
| − | {{ | + | {{{AutoignitionPt|}}}{{{AutoignitionPtC|}}}{{{AutoignitionPtF|}}}{{{AutoignitionPtK|}}}{{{AutoignitionPt_notes|}}} |
| − | {{ | + | {{{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|}}} |
| − | {{ | + | |<!-- then: |
| − | + | ----- HEADER ----- | |
| − | + | -->{{Chembox headerbar | |
| − | + | |header=Hazards/sandbox | |
| − | + | |ref={{{Hazards_ref|}}}<!-- | |
| − | {{#if:{{{ | + | ----- maintenance cats ----- |
| − | + | -->|addTestCategories=<!-- | |
| − | + | -->|addMainCategories={{#if:{{{EUClass|}}}{{{RPhrases|}}}{{{SPhrases|}}}{{{RSPhrases|}}}|[[Category:Chembox having DSD data]]}}<!-- | |
| − | + | -->{{#if:{{{GHSPictograms|}}}{{{GHSSignalWord|}}}{{{HPhrases|}}}{{{PPhrases|}}}|[[Category:Chembox having GHS data]]}}<!-- | |
| − | + | ----- templatepar ----- | |
| − | + | -->|templatepar={{#invoke:TemplatePar | |
| − | + | |check | |
| − | + | |template=Template:Chembox Hazards | |
| − | + | |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= | |
| − | + | |cat=Chemical articles with unknown parameter in Chembox | |
| − | {{#if:{{{ | + | |format=0|preview={{Chembox templatePar/formatPreviewMessage|msg=@@@}}|errNS=0}}<!-- |
| − | {{#if:{{{ | + | ----- END HEADERBAR -->}}<!-- |
| − | {{ | + | ----- START DATA ROWS ----- --> |
| − | | | + | {{#if:{{{MainHazards|}}} |{{Chembox MainHazards| value={{{MainHazards}}} }}}} |
| − | + | {{#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|}}} }}}} | |
| − | + | {{#if:{{{IngestionHazard|}}} |{{Chembox IngestionHazard| value={{{IngestionHazard}}} }}}} | |
| − | | | + | {{#if:{{{InhalationHazard|}}} |{{Chembox InhalationHazard| value={{{InhalationHazard}}} }}}} |
| − | {{#if:{{{ | + | {{#if:{{{EyeHazard|}}} |{{Chembox EyeHazard| value={{{EyeHazard}}} }}}} |
| − | {{ | + | {{#if:{{{SkinHazard|}}} |{{Chembox SkinHazard| value={{{SkinHazard}}} }}}} |
| − | {{#if:{{{ | + | {{#if:{{{FlashPt|}}}{{{FlashPtC|}}}{{{FlashPtF|}}}{{{FlashPtK|}}}{{{FlashPt_notes|}}} |<!-- |
| − | + | -->{{Chembox FlashPt | |
| − | {{#if:{{{ | + | |data={{Chembox CalcTemperatures | |
| − | | | + | |temp_text={{{FlashPt|}}}  |
| − | {{#if:{{{ | + | |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:{{{ | + | {{#if:{{{AutoignitionPt|}}}{{{AutoignitionPtC|}}}{{{AutoignitionPtF|}}}{{{AutoignitionPtK|}}}{{{AutoignitionPt_notes|}}} |
| − | </noinclude> | + | |{{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|}}} | ||
| + | }}}}<!-- | ||
| + | |||
| + | 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
| This is the template sandbox page for Template:Chembox Hazards (diff). See also the companion subpage for test cases. |
| File:Lua-Logo.svg | This template uses Lua: |
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.
| 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
| 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% |
Threshold limit value (TLV)
|
100 mg |
| Lethal dose or concentration (LD, LC): | |
LD50 (median dose)
|
0.015 mL/kg (human, oral) |
LC50 (median concentration)
|
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
| GHS01: Explosive | Unstable explosive[4] | {{GHS01}} | {{GHS exploding bomb}} | Image:GHS-pictogram-explos.svg |
| GHS02: Flammable | Extremely flammable | {{GHS02}} | {{GHS flame}} | Image:GHS-pictogram-flamme.svg |
| May cause or intensify fire; oxidizer | {{GHS03}} | {{GHS flame over circle}} | Image:GHS-pictogram-rondflam.svg | |
| GHS04: Compressed Gas | Contains gas under pressure; may explode if heated | {{GHS04}} | {{GHS gas cylinder}} | Image:GHS-pictogram-bottle.svg |
| GHS05: Corrosive | May be corrosive to metals | {{GHS05}} | {{GHS corrosion}} | Image:GHS-pictogram-acid.svg |
| GHS06: Toxic | Acute toxic | {{GHS06}} | {{GHS skull and crossbones}} | Image:GHS-pictogram-skull.svg |
| GHS07: Harmful | Irritating | {{GHS07}} | {{GHS exclamation mark}} | Image:GHS-pictogram-exclam.svg |
| GHS08: Health hazard | Health hazard | {{GHS08}} | {{GHS health hazard}} | Image:GHS-pictogram-silhouette.svg |
| GHS09: Environmental hazard | {{GHS09}} | {{GHS environment}} | Image:GHS-pictogram-pollu.svg | |
| See also | ||||
| {{H-phrases}}, {{P-phrases}}, Category:GHS templates | ||||
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|...}}
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
See also
References
- ↑ 1.0 1.1 1.2 Template:Sigma-Aldrich
- ↑ Some source here
- ↑ "NIOSH Pocket Guide to Chemical Hazards".
- ↑ [1] Annex 1
| The above documentation is transcluded from Template:Chembox Hazards/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |