Template:NFPA 704 diamond/doc: Difference between revisions
Appearance
Content deleted Content added
Line 51: | Line 51: | ||
| {{NFPA 704 diamond|F=-|H=1|R=-|S=ra|showimage=yes}} |
| {{NFPA 704 diamond|F=-|H=1|R=-|S=ra|showimage=yes}} |
||
| {{NFPA 704 diamond|F=-|H=1|R=-|S=ra|showimage=no}} |
| {{NFPA 704 diamond|F=-|H=1|R=-|S=ra|showimage=no}} |
||
|} |
|||
{{clear}} |
|||
:ref |
|||
| 0 || 1 || 2 || 3 || 4 || - (hyphen) |
|||
|- |
|||
|{{NFPA 704 diamond|F=0|H=0|R=0|S=-|ref=<ref>{{cite web|url=www.example.com|title=;woerguh}}</ref>}} |
|||
|{{NFPA 704 diamond|F=1|H=1|R=1|S=-|ref=<ref>{{cite web|url=www.example.com|title=;woerguh}}</ref>}}}} |
|||
|{{NFPA 704 diamond|F=2|H=2|R=2|S=-}} |
|||
|{{NFPA 704 diamond|F=3|H=3|R=3|S=-|ref=<ref>[www.example.com]</ref>}} |
|||
|{{NFPA 704 diamond|F=4|H=4|R=4|S=-|ref=<ref>{{cite web|url=www.example.com|title=;woerguh}}</ref>}} |
|||
|{{NFPA 704 diamond|F=-|H=-|R=-|S=-|ref={{cite web|url=www.example.com|title=;woerguh}}}} |
|||
|} |
|} |
||
Revision as of 20:12, 24 March 2014
This is a documentation subpage for Template:NFPA 704 diamond. It may contain usage information, categories and other content that is not part of the original template page. |
As of March 2014, this documentation page is under reconstruction. It may not describe the actual template behaviour. |
This template produces a bare NFPA 704 fire diamond with optionally four hazard codes. Primary use is in {{Chembox}} and as a {{NFPA 704}} box.
in infobox
0 | 1 | 2 | 3 | 4 | - (hyphen) |
- ibox
|S=W
|
|S=OX
|
|S=W+OX
|
|S=SA
| |
|S=ACID
|
|S=ALK
|
|S=BIO
|
|S=COR
|
|S=CRYO
|
|S=RA |showimage=yes
|
|S=RA |showimage=no
| |||
- ref
| 0 || 1 || 2 || 3 || 4 || - (hyphen) |-
|
|
}} |
|
|
|
|}
Blanks and unknown code
- Blanks include all whitespace
=<blank> | <nbsp> | no param | newlines (whitespace) | code=xyz |
|
H=klm NFPA code error. F=abc NFPA code error. I=pqr NFPA code error. S=XYZ NFPA code error.
|
H= NFPA code error. F= NFPA code error. I= NFPA code error. S=&NBSP; NFPA code error.
|
Input options
Parameters
{{NFPA 704 diamond | F = | H = | R = | S = | ref = | showimage = | style = }} |
Flammability code 0-4 or - Health code 0-4 or - Reactivity code 0-4 or - Special code W, OX, W+OX, ..., or - References. Add the <ref> ... </ref> tags. Set =no to show text instead ('RA' only. Default: =yes, show image) css style (e.g., style=background:yellow;) }} |
Basic 0–4 and hyphen (-)
- A hyphen (
-
) can be used to set a color diamond to "blank" (no hazard code).
0 | 1 | 2 | 3 | 4 | - (hyphen) |
Special hazard options
- ibox
|S=W
|
|S=OX
|
|S=W+OX
|
|S=SA
| |
|S=ACID
|
|S=ALK
|
|S=BIO
|
|S=COR
|
|S=CRYO
|
|S=RA |showimage=yes
|
|S=RA |showimage=no
| |||
Blanks and unknown code
- Blanks include all whitespace
=<blank> | <nbsp> | no param | newlines (whitespace) | code=xyz |
|
H=klm NFPA code error. F=abc NFPA code error. I=pqr NFPA code error. S=XYZ NFPA code error.
|
H= NFPA code error. F= NFPA code error. I= NFPA code error. S=&NBSP; NFPA code error.
|
Adding references
|ref=<ref>{{cite web|url=http://chemlabs.uoregon.edu/Safety/NFPA_White.html|title=some title}}</ref>
- |
Used inline
- Used inline (no enveloping box or table):
- {{NFPA 704 diamond|H=3|S=W}}
(Using {{clear}} here).
Categorization
Articles with an unknown or wrong NFPA code are categorized. When not in article space, errors show an error message. These pages are listed in Category:Articles with unknown NFPA 704 code.
|cat=no
wll prevent any such action (no check performed).
|cat=no
F=0–4
: Flammability (red): 0 (non-combustible) through 4 (ignites spontaneously)H=0–4
: Health (blue): Health dangers, 0 (harmless) through 4 (kills in very low doses)R=0–4
: Reactivity (yellow): 0 (inert) through 4 (highly sensitive explosive)S=
Other hazards (white). Various special considerations. Supported values for the template are as follows.
S=OX
: Oxidizer (e.g. potassium perchlorate)S=W
: (W) Reacts with water in an unusual or dangerous manner (e.g. cesium, sodium)
- Note: do not enter the stroked "<s>W</s>", "W" will do.
S=SA
: Simple asphyxiant gas (e.g. nitrogen, helium, argon)S=W+OX
: BothWand OX
- Symbols not standard in NFPA_704:
S=ACID
: Strong acid (e.g. sulfuric acid)S=ALK
: Strong base/alkali (e.g. potassium hydroxide)S=BIO
: Biohazardous (e.g. smallpox virus)S=COR
: Corrosive; strong acid or base (e.g. sulfuric acid, potassium hydroxide)S=CRYO
: Cryogenic (e.g. liquid nitrogen, dry ice)S=RA
: Is radioactive (e.g. technetium-99m)
Texts
Texts | |||
---|---|---|---|
input type | quarter | code | text |
code | F | 0 | Flammability 0: Will not burn. E.g. water |
code | F | 1 | Flammability 1: Must be pre-heated before ignition can occur. Flash point over 93 °C (200 °F). E.g. canola oil |
code | F | 2 | Flammability 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 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 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 0: Exposure under fire conditions would offer no hazard beyond that of ordinary combustible material. E.g. sodium chloride |
code | H | 1 | Health 1: Exposure would cause irritation but only minor residual injury. E.g. turpentine |
code | H | 2 | Health 2: Intense or continued but not chronic exposure could cause temporary incapacitation or possible residual injury. E.g. chloroform |
code | H | 3 | Health 3: Short exposure could cause serious temporary or residual injury. E.g. chlorine gas |
code | H | 4 | Health 4: Very short exposure could cause death or major residual injury. E.g. VX gas |
code | R | 0 | Instability 0: Normally stable, even under fire exposure conditions, and is not reactive with water. E.g. liquid nitrogen |
code | R | 1 | Instability 1: Normally stable, but can become unstable at elevated temperatures and pressures. E.g. calcium |
code | R | 2 | Instability 2: Undergoes violent chemical change at elevated temperatures and pressures, reacts violently with water, or may form explosive mixtures with water. E.g. white phosphorus |
code | R | 3 | Instability 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. hydrogen peroxide |
code | R | 4 | Instability 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. sodium, sulfuric acid |
code | S | ||
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 | NFPA-F=<blank> | Flammability (red): no hazard code |
blank | H | NFPA-H=<blank> | Health (blue): no hazard code |
blank | R | NFPA-R=<blank> | Instability (yellow): no hazard code |
blank | S | NFPA-S=<blank> | Special hazards (white): no code |
no param | F | (no param) | Flammability (red): no hazard code |
no param | H | (no param) | Health (blue): no hazard code |
no param | R | (no param) | Instability (yellow): no hazard code |
no param | S | (no param) | Special hazards (white): no code |
no code | F | - | Flammability (red): no hazard code |
no code | H | - | Health (blue): no hazard code |
no code | R | - | Instability (yellow): no hazard code |
no code | S | - | Special hazards (white): no code |
unknown | F | xyz | |
unknown | H | xyz | |
unknown | R | xyz | |
unknown | S | xyz |
Style
|style=background:green
All position settings can influence the layout:
|style=padding:10px; background:pink;
S=SW NFPA code error.
|
Colors used
Red | Blue | Yellow | White |
---|---|---|---|
4 | 2 | 3 | SA |
#ff6666
|
#6691ff
|
#fcff66
|
#ffffff
|
It is better not to use RGB colors "red, blue, yellow
", because these produce a bad contrast with the text.
See also
- Category:Articles with unknown NFPA 704 code
- {{NFPA 704 diamond}}
- {{NFPA 704 diamond/text}}
- {{Chembox}}
- Category:Chembox templates
Template:NFPA-chembox |
References
- ^ [www.example.com ";woerguh"].
{{cite web}}
: Check|url=
value (help) - ^ [www.example.com ";woerguh"].
{{cite web}}
: Check|url=
value (help) - ^ [www.example.com]
- ^ [www.example.com ";woerguh"].
{{cite web}}
: Check|url=
value (help) - ^ "some title".
- ^ [1]
- ^ [2]
- ^ [3]
- ^ "some title".
- ^ [4]
- ^ [5]
- ^ {{cite web|url=http://chemlabs.uoregon.edu/Safety/NFPA_White.html%7Ctitle=some title
- ^ [6]
- ^ [7]
- ^ "some title".
- ^ [8]
- ^ [9]
- ^ 999
- ^ "some title".
- ^ "some title".