Template:NFPA 704 diamond/testcases
NFPA 704 {{Chembox}}, the {{NFPA 704}} box and {{OrganicBox complete}}.
All testcases below use the /sandbox version of the template.
Input options
[edit]Default code (blank)
[edit]= <blank>
|
![]() |
Basic 0–4 and - (hyphen)
[edit]=0 |
=1 |
=2 |
=3 |
=4 |
=- (hyphen)
|
![]() |
Special hazard options
[edit]|S=W
|
|S=OX
|
|S=W+OX
|
|S=SA
|
|S=- (hyphen)
|
![]() | ||||
|S=ACID
|
|S=ALK
|
|S=COR
|
|S=CRYO
| |
|S=RA |showimage=yes
|
|S=RA |showimage=no
|
|S=RAD |showimage=yes
|
|S=RAD |showimage=no
| |
|S=BIO |showimage=yes
|
|S=BIO |showimage=no
| |||
Unknown codes (error)
[edit]=abc |
= |
=abc |cat=no
|
![]() 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
[edit]Plain text ![]() |
Texts
[edit]{| class="wikitable sortable" style="background:lavender" |- ! colspan=4 style="background:thistle" | Texts |- ! input type !! quarter !! code !! text |- ! !! !! !! |- | data-sort-value="code" | code | data-sort-value="F1_a0" | F | data-sort-value="0" | 0 || {{NFPA 704 diamond/text|quarter=red|code=0}} |- | data-sort-value="code" | code | data-sort-value="F1_0" | F | data-sort-value="1" | 1 || {{NFPA 704 diamond/text|quarter=red|code=1}} |- | data-sort-value="code" | code | data-sort-value="F1_2" | F | data-sort-value="2" | 2 || {{NFPA 704 diamond/text|quarter=red|code=2}} |- | data-sort-value="code" | code | data-sort-value="F1_3" | F | data-sort-value="3" | 3 || {{NFPA 704 diamond/text|quarter=red|code=3}} |- | data-sort-value="code" | code | data-sort-value="F1_4" | F | data-sort-value="4" | 4 || {{NFPA 704 diamond/text|quarter=red|code=4}} |- | data-sort-value="code" | code | data-sort-value="H1_0" | H | data-sort-value="0" | 0 || {{NFPA 704 diamond/text|quarter=blue|code=0}} |- | data-sort-value="code" | code | data-sort-value="H1_1" | H | data-sort-value="1" | 1 || {{NFPA 704 diamond/text|quarter=blue|code=1}} |- | data-sort-value="code" | code | data-sort-value="H1_2" | H | data-sort-value="2" | 2 || {{NFPA 704 diamond/text|quarter=blue|code=2}} |- | data-sort-value="code" | code | data-sort-value="H1_3" | H | data-sort-value="3" | 3 || {{NFPA 704 diamond/text|quarter=blue|code=3}} |- | data-sort-value="code" | code | data-sort-value="H1_4" | H | data-sort-value="4" | 4 || {{NFPA 704 diamond/text|quarter=blue|code=4}} |- | data-sort-value="code" | code | data-sort-value="R1_0" | R | data-sort-value="0" | 0 || {{NFPA 704 diamond/text|quarter=yellow|code=0}} |- | data-sort-value="code" | code | data-sort-value="R1_1" | R | data-sort-value="1" | 1 || {{NFPA 704 diamond/text|quarter=yellow|code=1}} |- | data-sort-value="code" | code | data-sort-value="R1_2" | R | data-sort-value="2" | 2 || {{NFPA 704 diamond/text|quarter=yellow|code=2}} |- | data-sort-value="code" | code | data-sort-value="R1_3" | R | data-sort-value="3" | 3 || {{NFPA 704 diamond/text|quarter=yellow|code=3}} |- | data-sort-value="code" | code | data-sort-value="R1_4" | R | data-sort-value="4" | 4 || {{NFPA 704 diamond/text|quarter=yellow|code=4}} |- | data-sort-value="code" | code | data-sort-value="S1_ox" | S || OX || {{NFPA 704 diamond/text|quarter=white|code=OX}} |- | data-sort-value="code" | code | data-sort-value="S1_w1" | S || W || {{NFPA 704 diamond/text|quarter=white|code=W}} |- | data-sort-value="code" | code | data-sort-value="S1_w2" | S || <s>W</s> || {{NFPA 704 diamond/text|quarter=white|code=<s>W</s>}} (see code <code>W</code>) |- | data-sort-value="code" | code | data-sort-value="S1_sa" | S || SA || {{NFPA 704 diamond/text|quarter=white|code=SA}} |- | data-sort-value="code" | code | data-sort-value="S1_cor" | S || COR || {{NFPA 704 diamond/text|quarter=white|code=COR}} |- | data-sort-value="code" | code | data-sort-value="S1_bio" | S || BIO || {{NFPA 704 diamond/text|quarter=white|code=BIO}} |- | data-sort-value="code" | code | data-sort-value="S1_cryo" | S || CRYO || {{NFPA 704 diamond/text|quarter=white|code=CRYO}} |- | data-sort-value="code" | code | data-sort-value="S1_acid" | S || ACID || {{NFPA 704 diamond/text|quarter=white|code=ACID}} |- | data-sort-value="code" | code | data-sort-value="S1_alk" | S || ALK || {{NFPA 704 diamond/text|quarter=white|code=ALK}} |- | data-sort-value="code" | code | data-sort-value="S1_ra" | S || RA || {{NFPA 704 diamond/text|quarter=white|code=RA}} |- | data-sort-value="code" | code | data-sort-value="S1_wox1" | S || W OX || {{NFPA 704 diamond/text|quarter=white|code=W OX}} |- | data-sort-value="code" | code | data-sort-value="S1_wox2" | S || WOX || {{NFPA 704 diamond/text|quarter=white|code=WOX }} |- | data-sort-value="blankF" | blank | data-sort-value="F5_" | F | F=<blank> || {{NFPA 704 diamond/text|quarter=red|code=}} |- | data-sort-value="blankH" | blank | data-sort-value="H5_" | H | H=<blank> || {{NFPA 704 diamond/text|quarter=blue|code=}} |- | data-sort-value="blankR" | blank | data-sort-value="R5_" | R | R=<blank> || {{NFPA 704 diamond/text|quarter=yellow|code=}} |- | data-sort-value="blankS" | blank | data-sort-value="S5_" | S | S=<blank> || {{NFPA 704 diamond/text|quarter=white|code=}} |- | data-sort-value="blank2F" | blank | data-sort-value="F5-" | F | (no param) || {{NFPA 704 diamond/text|quarter=red}} |- | data-sort-value="blank2H" | blank | data-sort-value="H5-" | H | (no param) || {{NFPA 704 diamond/text|quarter=blue}} |- | data-sort-value="blank2R" | blank | data-sort-value="R5-" | R | (no param) || {{NFPA 704 diamond/text|quarter=yellow}} |- | data-sort-value="blank2S" | blank | data-sort-value="S5-" | S | (no param) || {{NFPA 704 diamond/text|quarter=white}} |- | data-sort-value="blank3F" | blank | data-sort-value="F5-" | F | - || {{NFPA 704 diamond/text|quarter=red|code=-}} |- | data-sort-value="blank3H" | blank | data-sort-value="H5-" | H | - || {{NFPA 704 diamond/text|quarter=blue|code=-}} |- | data-sort-value="blank3R" | blank | data-sort-value="R5-" | R | - || {{NFPA 704 diamond/text|quarter=yellow|code=-}} |- | data-sort-value="blank3S" | blank | data-sort-value="S5-" | S | - || {{NFPA 704 diamond/text|quarter=white|code=-}} |- | data-sort-value="errorF" | unknown | data-sort-value="F7z" | F || xyz || {{NFPA 704 diamond/text|quarter=red|code=xyz}} |- | data-sort-value="errorH" | unknown | data-sort-value="H7z" | H || xyz || {{NFPA 704 diamond/text|quarter=blue|code=xyz}} |- | data-sort-value="errorR" | unknown | data-sort-value="R7z" | R || xyz || {{NFPA 704 diamond/text|quarter=yellow|code=xyz}} |- | data-sort-value="errorS" | unknown | data-sort-value="S7z" | S || xyz || {{NFPA 704 diamond/text|quarter=white|code=xyz}} |} ==Color style== :Option {{para|background|2=green}}. Default is {{code|1=transparent}}. {| class=wikitable cellpadding=0 style="background:lemonchiffon" |- |{{NFPA 704 diamond/sandbox|F=2|H=2|R=2|S=-|background=green|ref=<ref>{{cite web|url=http://chemlabs.uoregon.edu/Safety/NFPA_White.html|title=some title}}</ref>}} |} ;Colors used {| class="wikitable nounderlines" style="text-align:center; font-size:big; width:20em;" |- ! Red !! Blue !! Yellow !! White |- | style="background:#ff6666;" | '''4''' | style="background:#6691ff;" | '''2''' | style="background:#fcff66;" | '''3''' | style="background:#ffffff;" | '''SA''' |- | <code>#ff6666</code> | <code>#6691ff</code> | <code>#fcff66</code> | <code>#ffffff</code> |}