Template:NFPA 704

From Wikipedia, the free encyclopedia
Jump to: navigation, search
NFPA 704
fire diamond
Flammability (red): no hazard code Health (blue): no hazard code Reactivity (yellow): no hazard code Special hazards (white): no codeNFPA 704 four-colored diamond
Documentation icon Template documentation[view] [edit] [history] [purge]
NFPA 704
fire diamond
Flammability (red): no hazard code Health (blue): no hazard code Reactivity (yellow): no hazard code Special hazards (white): no codeNFPA 704 four-colored diamond
Caption goes here

See basic NFPA 470 diamond documentation below.

This box has one additional parameter: |caption=Caption goes here

This template produces a NFPA 704 fire diamond with optionally four hazard codes.

Primary use is through {{Chembox}}, the {{NFPA 704}} box and {{OrganicBox complete}} (chemical data pages).

Parameters[edit]

{{NFPA 704 diamond
| F =
| H =
| R =
| S =
| ref =
| showimage =
| background =
}}
 
Flammability code, 0-4 or - (hyphen for blank)
Health code
Reactivity code
Special code W, OX, W+OX, ..., or - (hyphen for blank)
References. Add the <ref> ... </ref> tags.
Set =no to show text instead ('RA' only. Default: =yes, show image)
background color (e.g., =yellow or =#ff7623)
}}

Input options[edit]

Default code (blank)[edit]

= <blank>
Flammability (red): no hazard code Health (blue): no hazard code Reactivity (yellow): no hazard code Special hazards (white): no codeNFPA 704 four-colored diamond

All four codes default to blank, that is: no NFPA code is present or shown. There is no specific text (just a link to the NFPA color section). Note that a blank is not the same as code "0". Code "0" is an explicit statement, while a blank is the absence of any statement.

A blank can also be enforced by entering =- (hyphen). This is the preferred way to reflect what the source states (do not depend on default).

From the input, spaces and even newlines (all whitespace) are treated as blank. Note that =&nbsp; code produces an error, but entering the nbsp character (>= <) is accepted as a space (blank).

Basic 0–4 and - (hyphen)[edit]

=0 =1 =2 =3 =4 =- (hyphen)
Flammability code 0: Will not burn. E.g., water Health code 0: Exposure under fire conditions would offer no hazard beyond that of ordinary combustible material. E.g., sodium chloride Reactivity code 0: Normally stable, even under fire exposure conditions, and is not reactive with water. E.g., liquid nitrogen Special hazards (white): no codeNFPA 704 four-colored diamond
Flammability code 1: Must be pre-heated before ignition can occur. Flash point over 93 °C (200 °F). E.g., canola oil Health code 1: Exposure would cause irritation but only minor residual injury. E.g., turpentine Reactivity code 1: Normally stable, but can become unstable at elevated temperatures and pressures. E.g., calcium Special hazards (white): no codeNFPA 704 four-colored diamond
Flammability code 2: Must be moderately heated or exposed to relatively high ambient temperature before ignition can occur. Flash point between 38 and 93 °C (100 and 200 °F). E.g., diesel fuel Health code 2: Intense or continued but not chronic exposure could cause temporary incapacitation or possible residual injury. E.g., chloroform Reactivity code 2: Undergoes violent chemical change at elevated temperatures and pressures, reacts violently with water, or may form explosive mixtures with water. E.g., phosphorus Special hazards (white): no codeNFPA 704 four-colored diamond
Flammability code 3: Liquids and solids that can be ignited under almost all ambient temperature conditions. Flash point between 23 and 38 °C (73 and 100 °F). E.g., gasoline) Health code 3: Short exposure could cause serious temporary or residual injury. E.g., chlorine gas Reactivity code 3: Capable of detonation or explosive decomposition but requires a strong initiating source, must be heated under confinement before initiation, reacts explosively with water, or will detonate if severely shocked. E.g., fluorine Special hazards (white): no codeNFPA 704 four-colored diamond
Flammability code 4: Will rapidly or completely vaporize at normal atmospheric pressure and temperature, or is readily dispersed in air and will burn readily. Flash point below 23 °C (73 °F). E.g., propane Health code 4: Very short exposure could cause death or major residual injury. E.g., VX gas Reactivity code 4: Readily capable of detonation or explosive decomposition at normal temperatures and pressures. E.g., nitroglycerin Special hazards (white): no codeNFPA 704 four-colored diamond
Flammability (red): no hazard code Health (blue): no hazard code Reactivity (yellow): no hazard code Special hazards (white): no codeNFPA 704 four-colored diamond
Parameters |F=, |H=|R= accept codes 0, 1, 2, 3, 4. Code - (hyphen) is accepted too and produces a blank (no hazard code).

A blank can be set by entering =- (hyphen). This is the preferred way to reflect what the source states.

Special hazard options[edit]

|S=W |S=OX |S=W+OX |S=SA |S=- (hyphen)
Flammability (red): no hazard code Health (blue): no hazard code Reactivity (yellow): no hazard code Special hazard W: Reacts with water in an unusual or dangerous manner. E.g., cesium, sodiumNFPA 704 four-colored diamond
Flammability (red): no hazard code Health (blue): no hazard code Reactivity (yellow): no hazard code Special hazard OX: Oxidizer. E.g., potassium perchlorateNFPA 704 four-colored diamond
Flammability (red): no hazard code Health (blue): no hazard code Reactivity (yellow): no hazard code Special hazard SA: Simple asphyxiant gas. E.g., nitrogen, heliumNFPA 704 four-colored diamond
Flammability (red): no hazard code Health (blue): no hazard code Reactivity (yellow): no hazard code Special hazards (white): no codeNFPA 704 four-colored diamond
|S=ACID |S=ALK |S=BIO |S=COR |S=CRYO
Flammability (red): no hazard code Health (blue): no hazard code Reactivity (yellow): no hazard code Special hazard ALK: Alkaline.NFPA 704 four-colored diamond
Flammability (red): no hazard code Health (blue): no hazard code Reactivity (yellow): no hazard code Special hazard BIO: Biohazardous. E.g., smallpox virusNFPA 704 four-colored diamond
Flammability (red): no hazard code Health (blue): no hazard code Reactivity (yellow): no hazard code Special hazard COR: Corrosive; strong acid or base. E.g., sulfuric acid, potassium hydroxideNFPA 704 four-colored diamond
|S=RA
|showimage=yes
|S=RA
|showimage=no
Flammability (red): no hazard code Health (blue): no hazard code Reactivity (yellow): no hazard code Special hazard RA: Radioactive. E.g., plutoniumNFPA 704 four-colored diamond
Special hazard RA: Radioactive. E.g., plutonium
Flammability (red): no hazard code Health (blue): no hazard code Reactivity (yellow): no hazard code Special hazard RA: Radioactive. E.g., plutoniumNFPA 704 four-colored diamond

For W enter |S=W.

For W OX enter |S=W+OX, |S=W OX or |S=WOX.

Unknown codes (error)[edit]

The diamond template checks for unknown codes.

=abc =&nbsp; =abc
|cat=no
NFPA 704 four-colored diamond

F=abc NFPA code error
.
H=klm NFPA code error
.
R=pqr NFPA code error
.
S=XYZ NFPA code error
.
NFPA 704 four-colored diamond

F=  NFPA code error
.
H=  NFPA code error
.
R=  NFPA code error
.
S=&NBSP; NFPA code error
.
NFPA 704 four-colored diamond

Articles with unknown codes are listed for maintenance (correction) in Category:Articles with unknown NFPA 704 code. Other pages (like this documentation) are not categorized, but have a message instead. This categorizing can be switched off by setting |cat=no

Note that =&nbsp; code produces an error, but entering the nbsp character (>= <) is accepted as a space (blank).

Adding references[edit]

References can be added using |ref=.

|ref=<ref>{{cite web|url=http://chemlabs.uoregon.edu/Safety/NFPA_White.html|title=More on white codes}}</ref>
Flammability code 2: Must be moderately heated or exposed to relatively high ambient temperature before ignition can occur. Flash point between 38 and 93 °C (100 and 200 °F). E.g., diesel fuel Health code 2: Intense or continued but not chronic exposure could cause temporary incapacitation or possible residual injury. E.g., chloroform Reactivity code 2: Undergoes violent chemical change at elevated temperatures and pressures, reacts violently with water, or may form explosive mixtures with water. E.g., phosphorus Special hazards (white): no codeNFPA 704 four-colored diamond

The <ref> ... </ref> tags should be added. Multiple references can be entered. Depending on cell width, the links show above or next to the diamond. While technically possible to enter plain text, this is not supported (and this could be disallowed in the future).

Flammability (red): no hazard code Health (blue): no hazard code Reactivity (yellow): no hazard code Special hazards (white): no codeNFPA 704 four-colored diamond
Flammability code 2: Must be moderately heated or exposed to relatively high ambient temperature before ignition can occur. Flash point between 38 and 93 °C (100 and 200 °F). E.g., diesel fuel Health code 2: Intense or continued but not chronic exposure could cause temporary incapacitation or possible residual injury. E.g., chloroform Reactivity code 2: Undergoes violent chemical change at elevated temperatures and pressures, reacts violently with water, or may form explosive mixtures with water. E.g., phosphorus Special hazards (white): no codeNFPA 704 four-colored diamond
Flammability code 0: Will not burn. E.g., water Health code 0: Exposure under fire conditions would offer no hazard beyond that of ordinary combustible material. E.g., sodium chloride Reactivity code 0: Normally stable, even under fire exposure conditions, and is not reactive with water. E.g., liquid nitrogen Special hazards (white): no codeNFPA 704 four-colored diamond
Flammability code 1: Must be pre-heated before ignition can occur. Flash point over 93 °C (200 °F). E.g., canola oil Health code 1: Exposure would cause irritation but only minor residual injury. E.g., turpentine Reactivity code 1: Normally stable, but can become unstable at elevated temperatures and pressures. E.g., calcium Special hazards (white): no codeNFPA 704 four-colored diamond

Code description[edit]

These are the title texts (mousehover texts), shown for a code used in the diamond. They are plain text; not links or styles can be entered.

Code descriptions
input type quarter code text
 
code F 0 Flammability code 0: Will not burn. E.g., water
code F 1 Flammability code 1: Must be pre-heated before ignition can occur. Flash point over 93 °C (200 °F). E.g., canola oil
code F 2 Flammability code 2: Must be moderately heated or exposed to relatively high ambient temperature before ignition can occur. Flash point between 38 and 93 °C (100 and 200 °F). E.g., diesel fuel
code F 3 Flammability code 3: Liquids and solids that can be ignited under almost all ambient temperature conditions. Flash point between 23 and 38 °C (73 and 100 °F). E.g., gasoline)
code F 4 Flammability code 4: Will rapidly or completely vaporize at normal atmospheric pressure and temperature, or is readily dispersed in air and will burn readily. Flash point below 23 °C (73 °F). E.g., propane
code H 0 Health code 0: Exposure under fire conditions would offer no hazard beyond that of ordinary combustible material. E.g., sodium chloride
code H 1 Health code 1: Exposure would cause irritation but only minor residual injury. E.g., turpentine
code H 2 Health code 2: Intense or continued but not chronic exposure could cause temporary incapacitation or possible residual injury. E.g., chloroform
code H 3 Health code 3: Short exposure could cause serious temporary or residual injury. E.g., chlorine gas
code H 4 Health code 4: Very short exposure could cause death or major residual injury. E.g., VX gas
code R 0 Reactivity code 0: Normally stable, even under fire exposure conditions, and is not reactive with water. E.g., liquid nitrogen
code R 1 Reactivity code 1: Normally stable, but can become unstable at elevated temperatures and pressures. E.g., calcium
code R 2 Reactivity code 2: Undergoes violent chemical change at elevated temperatures and pressures, reacts violently with water, or may form explosive mixtures with water. E.g., phosphorus
code R 3 Reactivity code 3: Capable of detonation or explosive decomposition but requires a strong initiating source, must be heated under confinement before initiation, reacts explosively with water, or will detonate if severely shocked. E.g., fluorine
code R 4 Reactivity code 4: Readily capable of detonation or explosive decomposition at normal temperatures and pressures. E.g., nitroglycerin
code S OX Special hazard OX: Oxidizer. E.g., potassium perchlorate
code S W Special hazard W: Reacts with water in an unusual or dangerous manner. E.g., cesium, sodium
code S W (see code W)
code S SA Special hazard SA: Simple asphyxiant gas. E.g., nitrogen, helium
code S COR Special hazard COR: Corrosive; strong acid or base. E.g., sulfuric acid, potassium hydroxide
code S BIO Special hazard BIO: Biohazardous. E.g., smallpox virus
code S CRYO Special hazard CRYO: Cryogenic.
code S ACID Special hazard ACID: Acid.
code S ALK Special hazard ALK: Alkaline.
code S RA Special hazard RA: Radioactive. E.g., plutonium
code S W OX Special hazard W+OX: Reacts with water in an unusual or dangerous manner AND is oxidizer.
code S WOX Special hazard W+OX: Reacts with water in an unusual or dangerous manner AND is oxidizer.
blank F F=<blank> Flammability (red): no hazard code
blank H H=<blank> Health (blue): no hazard code
blank R R=<blank> Reactivity (yellow): no hazard code
blank S S=<blank> Special hazards (white): no code
blank F (no param) Flammability (red): no hazard code
blank H (no param) Health (blue): no hazard code
blank R (no param) Reactivity (yellow): no hazard code
blank S (no param) Special hazards (white): no code
blank F - Flammability (red): no hazard code
blank H - Health (blue): no hazard code
blank R - Reactivity (yellow): no hazard code
blank S - Special hazards (white): no code
unknown F xyz
unknown H xyz
unknown R xyz
unknown S xyz

Color style[edit]

Option |background=green. Default is transparent.
Flammability code 2: Must be moderately heated or exposed to relatively high ambient temperature before ignition can occur. Flash point between 38 and 93 °C (100 and 200 °F). E.g., diesel fuel Health code 2: Intense or continued but not chronic exposure could cause temporary incapacitation or possible residual injury. E.g., chloroform Reactivity code 2: Undergoes violent chemical change at elevated temperatures and pressures, reacts violently with water, or may form explosive mixtures with water. E.g., phosphorus Special hazards (white): no codeNFPA 704 four-colored diamond
Colors used
Red Blue Yellow White
4 2 3 SA
#ff6666 #6691ff #fcff66 #ffffff

Better not to use RGB colors named red, blue, yellow, because these produce a bad contrast with the text.

See also[edit]

Demo references[edit]

The references are from the demos.

References

These references will appear in the article, but this list appears only on this page.
  1. ^ "some title". 
  2. ^ [1]
  3. ^ [2]
  4. ^ [3]
  5. ^ "some title". 
  6. ^ [4]
  7. ^ [5]
  8. ^ "some title". 
  9. ^ [6]
  10. ^ "some title". 
  11. ^ [7]
  12. ^ [8]
  13. ^ "some title".