Bản mẫu:NFPA 704 diamond

NFPA 704 four-colored diamondFlammability (red): no hazard codeHealth (blue): no hazard codeReactivity (yellow): no hazard codeSpecial hazards (white): no code
Tài liệu bản mẫu[xem] [sửa] [lịch sử] [làm mới]

This template produces a NFPA 704 fire diamond with optionally four hazard codes. It is designed to be used in a table.

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

When used stand-alone (outside of a table), consider the {{NFPA 704}} box.

Parameters sửa

{{NFPA 704 diamond
 | H          =
 | F          =
 | I          =
 | S          =
 | ref        =
 | showimage  =
 | background =
}}
 
Health code, 0-4 or - (hyphen for blank)
Flammability code
Instability (reactivity) code ("R=" is also allowed)
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 sửa

Main rule: if the quarter must be blank, input is the hyphen, -. Do not depend on default behavior in this situation.

Basic 0–4 and - (hyphen) sửa

for |H=, |F=, |I=
=0 =1 =2 =3 =4 =- (hyphen)
NFPA 704 four-colored diamondFlammability code 0: Sẽ không cháy, ví dụ như nướcHealth code 0: Exposure under fire conditions would offer no hazard beyond that of ordinary combustible material. E.g., sodium chlorideReactivity (yellow): no hazard codeSpecial hazards (white): no code
0
0
NFPA 704 four-colored diamondFlammability code 1: Phải nung trước mới có thể cháy. Điểm cháy trên 93 °C (200 °F). Ví dụ dầu canolaHealth code 1: Exposure would cause irritation but only minor residual injury. E.g., turpentineReactivity (yellow): no hazard codeSpecial hazards (white): no code
1
1
NFPA 704 four-colored diamondFlammability code 2: Phải nung mức độ trung bình hoặc để trong môi trường nhiệt độ tương đối cao trước thì mới có thể cháyr. Điểm cháy từ 38 đến 93 °C (100 and 200 °F). Ví dụ dầu dieselHealth code 2: Intense or continued but not chronic exposure could cause temporary incapacitation or possible residual injury. E.g., chloroformReactivity (yellow): no hazard codeSpecial hazards (white): no code
2
2
NFPA 704 four-colored diamondFlammability code 3: Chất lỏng và rắn có thể bắt lửa trong hầu hết môi trường nhiệt độ xung quanh. Điểm cháy từ 23 đến 38 °C (73 và 100 °F). Ví dụ, xăng)Health code 3: Short exposure could cause serious temporary or residual injury. E.g., chlorine gasReactivity (yellow): no hazard codeSpecial hazards (white): no code
3
3
NFPA 704 four-colored diamondFlammability code 4: Sẽ cháy nhanh hoặc hóa hơi hoàn toàn trong điều kiện áp suất và nhiệt độ khí quyển bình thường, hoặc sẵn sàng phân tán trong không khí và dễ cháy. Điểm cháy dưới 23 °C (73 °F). ví dụ propaneHealth code 4: Very short exposure could cause death or major residual injury. E.g., VX gasReactivity (yellow): no hazard codeSpecial hazards (white): no code
4
4
NFPA 704 four-colored diamondFlammability (red): no hazard codeHealth (blue): no hazard codeReactivity (yellow): no hazard codeSpecial hazards (white): no code
Parameters |H=, |F=|I= accept codes 0, 1, 2, 3, 4, -. Code - (hyphen) produces a blank ("no hazard code").

A blank can be set (enforced) by entering =-, a hyphen. This is the preferred way to reflect what the source states (don't depend on the default blank in this situation).

Default code (blank) sửa

= <blank>
NFPA 704 four-colored diamondFlammability (red): no hazard codeHealth (blue): no hazard codeReactivity (yellow): no hazard codeSpecial hazards (white): no code

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).

Special hazard options sửa

|S=W |S=OX |S=W+OX |S=SA |S=- (hyphen)
NFPA 704 four-colored diamondFlammability (red): no hazard codeHealth (blue): no hazard codeReactivity (yellow): no hazard codeSpecial hazard W: Reacts with water in an unusual or dangerous manner. E.g., cesium, sodium
NFPA 704 four-colored diamondFlammability (red): no hazard codeHealth (blue): no hazard codeReactivity (yellow): no hazard codeSpecial hazards (white): no code
|S=ACID |S=ALK |S=BIO |S=COR |S=CRYO
|S=RA
|showimage=<default>
|S=RA
|showimage=yes
|S=RA
|showimage=no
NFPA 704 four-colored diamondFlammability (red): no hazard codeHealth (blue): no hazard codeReactivity (yellow): no hazard codeSpecial hazard RA: Radioactive. E.g., plutonium
Special hazard RA: Radioactive. E.g., plutonium
NFPA 704 four-colored diamondFlammability (red): no hazard codeHealth (blue): no hazard codeReactivity (yellow): no hazard codeSpecial hazard RA: Radioactive. E.g., plutonium
Special hazard RA: Radioactive. E.g., plutonium

For W enter |S=W.

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

The "Special" quarter is sometimes called "Other".

Unknown codes (error) sửa

The diamond template checks for unknown codes.

=abc =&nbsp; =abc
|cat=no
NFPA 704 four-colored diamondReactivity (yellow): no hazard code

F=klm NFPA code error
.
H=abc NFPA code error
.
S=XYZ NFPA code error
.
NFPA 704 four-colored diamondReactivity (yellow): no hazard code

F=  NFPA code error
.
H=  NFPA code error
.
S=&NBSP; NFPA code error
.
NFPA 704 four-colored diamondReactivity (yellow): no hazard code

Articles with unknown codes are listed for maintenance (correction) in Thể loại:Articles with unknown NFPA 704 code (0). 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 sửa

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>

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).

“some title”.
NFPA 704 four-colored diamondFlammability code 2: Phải nung mức độ trung bình hoặc để trong môi trường nhiệt độ tương đối cao trước thì mới có thể cháyr. Điểm cháy từ 38 đến 93 °C (100 and 200 °F). Ví dụ dầu dieselHealth code 2: Intense or continued but not chronic exposure could cause temporary incapacitation or possible residual injury. E.g., chloroformReactivity (yellow): no hazard codeSpecial hazards (white): no code
2
2

List of codes sửa

Bản mẫu:NFPA 704 diamond/codes-overview

Color style sửa

Option |background=green. Default is transparent.

Colors used

Blue Red Yellow White
1 4 3 SA
#6691ff #ff6666 #fcff66 #ffffff

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


Template data sửa

Đây là tài liệu Dữ liệu bản mẫu cho bản mẫu này được sử dụng bởi Trình soạn thảo trực quan và các công cụ khác; xem báo cáo sử dụng tham số hàng tháng cho bản mẫu này.

Dữ liệu bản mẫu cho NFPA 704 diamond

Không có miêu tả.

Tham số bản mẫu[Quản lý Dữ liệu bản mẫu]

Tham sốMiêu tảKiểuTrạng thái
Health (blue)H

không có miêu tả

Giá trị đề nghị
0, 1, 2, 3, 4, -
Chuỗi dàitùy chọn
Flammability (red)F

không có miêu tả

Giá trị đề nghị
0, 1, 2, 3, 4, -
Chuỗi dàitùy chọn
Instability, Reactivity (yellow)I R

không có miêu tả

Giá trị đề nghị
0, 1, 2, 3, 4, -
Chuỗi dàitùy chọn
Special code (white)S

không có miêu tả

Giá trị đề nghị
OX, W, WOX, W+OX, ACID, ALK, BIO, COR, CRYO, RA
Chuỗi dàitùy chọn
backgroundbackground

không có miêu tả

Không rõtùy chọn
refref

không có miêu tả

Không rõtùy chọn
showimageshowimage

shows S image when available

Luận lýtùy chọn
catcat

không có miêu tả

Không rõtùy chọn


Known issues sửa

  • Is there an ENGVAR-like switch needed, eg for the order of °C - °F temperatures? (Currently, °C is first)
  • For documentation, could use a diamond with the four letters in the quadrants.
  • The non-standard S (on white) codes should be complete, and maybe listed for attention.

Tracking category sửa

See also sửa

Tham khảo

  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”.
The references are from the demos in this documentation.