مندرجات کا رخ کریں

سانچہ:NFPA 704 diamond

آزاد دائرۃ المعارف، ویکیپیڈیا سے

لوا خطا: unknown error۔ This template produces a NFPA 704 safety square 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

[ترمیم]
{{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

[ترمیم]

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)

[ترمیم]
for |H=, |F=, |I=
=0=1=2=3=4=- (hyphen)
0
0
0
1
1
1
2
2
2
3
3
3
4
4
4
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)

[ترمیم]
= <blank>

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=W |S=OX |S=W+OX |S=SA |S=- (hyphen)
|S=ACID |S=ALK |S=COR |S=CRYO |S=POI

S=POI NFPA code error
.
|S=RA
|showimage=<default>
|S=RA
|showimage=yes
|S=RA
|showimage=no
Special hazard RA: Radioactive. E.g. plutonium
Special hazard RA: Radioactive. E.g. plutonium
|S=BIO
|showimage=<default>
|S=BIO
|showimage=yes
|S=BIO
|showimage=no

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)

[ترمیم]

The diamond template checks for unknown codes.

=abc=&nbsp;=abc
|cat=no

H=abc NFPA code error
.
F=klm 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
.

Articles with unknown codes are listed for maintenance (correction) in زمرہ: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

[ترمیم]

References can be added using |ref=.

|ref=<ref>{{حوالہ ویب|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).

1
1
1
"some title"
2
2
2

List of codes

[ترمیم]

سانچہ:NFPA 704 diamond/codes-overview

Color style

[ترمیم]
Option |background=green. Default is transparent.

Colors used

BlueRedYellowWhite
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

[ترمیم]
ذیل میں اس سانچہ کی معلومات سانچہ دستاویز درج ہے جنہیں بصری خانہ ترمیم اور دیگر آلات استعمال کرتے ہیں۔

معلومات سانچہ NFPA 704 diamond

کوئی وضاحت نہیں۔

محددات سانچہ[انتظام TemplateData]

پیرامیٹروضاحتطرزحالت
Health (blue)H

کوئی وضاحت نہیں

Suggested values
0, 1, 2, 3, 4, -
اِسٹرنگاختیاری
Flammability (red)F

کوئی وضاحت نہیں

Suggested values
0, 1, 2, 3, 4, -
اِسٹرنگاختیاری
Instability, Reactivity (yellow)I R

کوئی وضاحت نہیں

Suggested values
0, 1, 2, 3, 4, -
اِسٹرنگاختیاری
Special code (white)S

کوئی وضاحت نہیں

Suggested values
OX, W, WOX, W+OX, ACID, ALK, BIO, COR, CRYO, RA
اِسٹرنگاختیاری
backgroundbackground

کوئی وضاحت نہیں

Unknownاختیاری
refref

کوئی وضاحت نہیں

Unknownاختیاری
showimageshowimage

shows S image when available

بولیناختیاری
catcat

کوئی وضاحت نہیں

Unknownاختیاری

Known issues

[ترمیم]
  • 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

[ترمیم]
  1. ↑ "some title"
  2. ↑
  3. ↑
  4. ↑
  5. ↑ "some title"
  6. ↑
  7. ↑
  8. ↑ "some title"
  9. ↑
  10. ↑ "some title"
  11. ↑
  12. ↑
  13. ↑ "some title"