Template:NFPA: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Robert W King
No edit summary
imported>Chris Day
(maybe one is good)
 
(49 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<!-- {|table border="0" align="center" width="{{{size*4}}}" cellpadding="0" cellspacing="0" style="background:#{{{background}}}; border-collapse:collapse; z-index:2; margin-bottom:0px; table-layout:auto;" -->
<!-- {|table border="0" align="center" width="{{{size*4}}}" cellpadding="0" cellspacing="0" style="background:#{{{background}}}; border-collapse:collapse; z-index:2; margin-bottom:0px; table-layout:auto;" -->
{|table border="0" width="{{{size*4}}}" cellpadding="0" cellspacing="0" style="type:text/css; background:#{{{background}}}; z-index:2; margin-bottom:0px; table-layout:auto; valign:middle;"
|-
|&nbsp;
|<div style="position: relative;
top: 0px;
width: 0px;
height: 1%;
text-align: center;
font-size: 0px;
line-height: 0px;
border-width: 0px {{{size}}}px {{{size}}}px;
border-style: solid;
border-color: red #{{{background}}};
z-index: 1;">
</div>


 
<div style="position:relative;
{|table border="0" align="center" width="{{{size*4}}}" cellpadding="0" cellspacing="0" style="background:#{{{background}}}; z-index:2; margin-bottom:0px; table-layout:auto;"
top:8%;
|-
bottom:92%;
|&nbsp;
font-size:{{{fontsize}}}px;
|<div style="border-style:solid;
position: relative;  
top:0px;
width:0px;  
font-size:0;
height:1%;
line-height:0px;
line-height:0px;
border-width: 0px {{{size}}}px {{{size}}}px;  
text-align: center;
border-color:red #{{{background}}};
background: transparent;
z-index:1;"></div>
z-index: 2;">{{{R}}}
</div>
|&nbsp;
|-
|<div style="position: relative;
top: 0px;
width: 0px;
height: 1%;
font-size: 0px;
line-height: 0px;
border-width: {{{size}}}px {{{size}}}px {{{size}}}px 0px;
border-style: solid;
border-color: #{{{background}}} blue;
z-index: 1;">
</div>


<div style="position: relative;
<div style=" position: relative;
font-size:{{{fontsize}}}px;
bottom: {{{size}}}px;
top:8%;
left: 15%;
line-height:0px;
font-size: {{{fontsize}}}px;
text-align:center;
line-height: 0px;
background:transparent;
text-align: right;
color:black;  
background: transparent;
z-index:2;">{{{R}}}</div>
z-index: 2;">{{{B}}}
</div>


|&nbsp;
|<div style=" position: relative;
|-
top: 0px;
|<div id="two" style="border-style:solid;
width: 0px;
position: relative;  
height: 1%;
top:0px;
font-size: 0px;
width:0px;  
line-height: 0px;
height:1%;
border-width: {{{size}}}px {{{size}}}px {{{size}}}px {{{size}}}px;
line-height:0px;
border-style: solid;
font-size:0;
border-color: red yellow white blue;
border-width: {{{size}}}px {{{size}}}px {{{size}}}px 0px;  
z-index: 1;">
border-color: #{{{background}}} blue;
</div>
z-index:1;">
</div>


<div style="position: relative;  
|<div style=" position: relative;
text-align:right;
top: 0px;
font-size:{{{fontsize}}}px;  
width: 0px;
background:transparent;
height: 1%;
color:black;
font-size: 0px;
top:-50%;
line-height: 0px;
left:15%;
border-width: {{{size}}}px 0px {{{size}}}px {{{size}}}px;
line-height:0px;
border-style: solid;
z-index:2;">{{{B}}}</div>
border-color: #{{{background}}} yellow;
z-index: 1;">
</div>


|<div style="border-width:{{{size}}}px {{{size}}}px {{{size}}}px {{{size}}}px;
<div style=" position: relative;
position:fixed;
bottom: {{{size}}}px;
border-style:solid;
left: -12%;
margin:0px;
font-size: {{{fontsize}}}px;
padding:0px;
line-height: 0px;
height:1%;
text-align: left;
line-height:0px;
background: transparent;
font-size:0;
z-index: 2;">{{{Y}}}
border-color:red yellow white blue;
</div>
z-index:1;">
</div>
|<div id="four" style="border-style:solid;
position:fixed;
width:0px;
height:1%;
line-height:0px;
font-size:0;
border-width: {{{size}}}px 0px {{{size}}}px {{{size}}}px;  
border-color:#{{{background}}} yellow;
z-index:1;">
</div>
<div style="position: relative;
text-align:left;
font-size:{{{fontsize}}}px;  
background:transparent;
color:black;
top:-50%;
left:-12%;
line-height:0px;
z-index:2;">{{{Y}}}</div>
|-
|-
|&nbsp;
|&nbsp;
|<div id="five" style="border-style:solid;  
|<div style=" position: relative;
position: relative;  
top: 0px;
width:0px;  
width: 0px;
height:1%;
height: 1%;
line-height:0px;
font-size: 0px;
font-size:0;
line-height: 0px;
border-width: {{{size}}}px {{{size}}}px 0px;  
border-width: {{{size}}}px {{{size}}}px 0px;
border-color: white #{{{background}}};
border-style: solid;
z-index:1;">
border-color: white #{{{background}}};
</div>
z-index: 1;">
<div style="position: relative;  
</div>
font-size:{{{fontsize}}}px;  
 
text-align:center;
<div style="position: relative;
background:transparent;
bottom:  {{{size}}}px;
color:black;
left: 0px;
top:-100%;
font-size: {{{fontsize}}}px;
line-height:0px;
line-height: 0px;
z-index:2;">{{{W}}}</div>
text-align: center;
|&nbsp;
background: transparent;
|}
z-index: 2;">{{{W}}}
</div>
|&nbsp;
|}


<noinclude>
<noinclude>
== Placement ==
== Placement ==
Used in conjunction with the chemical infobox [[Template:Chem_Infobox]].
Used in conjunction with the chemical infobox [[Template:Elem_Infobox]].


== Usage ==
== Usage ==
See example on [[Scandium]].
See example on [[Scandium]].


{| class="wikitable"
{|border="0" colspan="4" cellpadding="1" cellspacing="3" style="margin: 0 0 0 0; background:#ffffff;"  
!Wikitext!!Appearance
!Wikitext!!Appearance
|-
|-
|<pre>{{NFPA_2_0
|<pre>{{NFPA
|background=cacaca
|background=cacaca
|size=30
|size=30
Line 121: Line 127:
|W=<s>W</s>
|W=<s>W</s>
}}</pre>
}}</pre>
|{{NFPA_2_0
|{{NFPA
|background=cacaca
|size=30
|fontsize=20
|R=3
|B=4
|Y=3
|W=<s>W</s>
}}
|}
{| class="wikitable"
!Anatomical
|-
|{{NFPA
|background=cacaca
|background=cacaca
|size=30
|size=30
Line 131: Line 150:
}}
}}
|}
|}


==Parameters==
==Parameters==
<pre>{{NFPA
|background=
|size=
|fontsize=
|R=
|B=
|Y=
|W=
}}</pre>


*'''background''' = use hexidecimal color code such as "cacaca"
*'''background''' = background color in hexidecimal color code (e.g. ffffff for white)
*'''size''' = Defines the size of the text in .........
*'''size''' = Defines the size of the diamond in pixels (don't use less than 19 pixels)
*'''fontsize''' = Defines the size of the text in .......
*'''fontsize''' = Defines the size of the text in pixels (For best results, use minimum 66% of diamond size; round up to nearest INT.)
*'''R''' =  RED (0-4) - '''Fire Hazard'''
*'''R''' =  RED (0-4) - '''Fire Hazard'''
**0: Will not burn
**0: Will not burn
Line 155: Line 184:
**3: Extremely Hazardous
**3: Extremely Hazardous
**4: Deadly
**4: Deadly
*'''W''' =  WHITE - '''Warning'''
*'''W''' =  WHITE - '''Appropriate Warning'''
**The only Official NFPA authorized symbols to place in this quadrant are <s>'''W'''</s> to indicate unusual reactions with water(H<sub>2</sub>O) and '''OX''' to indicate the material is an oxidizer.  This quadrant is usually reserved for these symbols to indicate the appropriate warnings in case of fire fighting or spill control response, however other symbols may be used to designate additional warnings.
**Examples:
*** '''ACID''' (Acidic material with a pH of lower than 7.0)
*** '''ALK'''  (indicates an Alkaline material or base with a pH greater than 7.0)
*** '''COR'''  (alternatively CORR, denotes a corrosive material)
*** Other graphical symbols include a "skull & crossbones" (poison), a radiation symbol to indicate radioactive materials, an explosion (although usually indicated by the Yellow Reactivity rating), or other nonstandard graphical markings.
 
==Official Links==


[http://www.nfpa.org/faq.asp?categoryID=928&cookie%5Ftest=1 Official NFPA Organization Website - NFPA 704 Standard FAQ]
</noinclude>
</noinclude>

Latest revision as of 17:27, 10 April 2008

 
{{{R}}}
 
{{{B}}}
{{{Y}}}
 
{{{W}}}
 


Placement

Used in conjunction with the chemical infobox Template:Elem_Infobox.

Usage

See example on Scandium.

Wikitext Appearance
{{NFPA
|background=cacaca
|size=30
|fontsize=20
|R=3
|B=4
|Y=3
|W=<s>W</s>
}}
 
3
 
4
3
 
W
 


Anatomical
 
3
 
4
3
 
W
 



Parameters

{{NFPA
|background=
|size=
|fontsize=
|R=
|B=
|Y=
|W=
}}
  • background = background color in hexidecimal color code (e.g. ffffff for white)
  • size = Defines the size of the diamond in pixels (don't use less than 19 pixels)
  • fontsize = Defines the size of the text in pixels (For best results, use minimum 66% of diamond size; round up to nearest INT.)
  • R = RED (0-4) - Fire Hazard
    • 0: Will not burn
    • 1: Above 200 degrees F(93 C)
    • 2: Below 200 F
    • 3: Below 100 F (38 C)
    • 4: Below 73 F (23 C)
  • Y = YELLOW (0-4) - Reactivity
    • 0: Stable
    • 1: Unstable if Heated
    • 2: Violent Chemical
    • 3: Shock or Heat May detonate
    • 4: May detonate
  • B = BLUE (0-4) - Health Hazard
    • 0: None
    • 1: Slightly Hazardous
    • 2: Hazardous
    • 3: Extremely Hazardous
    • 4: Deadly
  • W = WHITE - Appropriate Warning
    • The only Official NFPA authorized symbols to place in this quadrant are W to indicate unusual reactions with water(H2O) and OX to indicate the material is an oxidizer. This quadrant is usually reserved for these symbols to indicate the appropriate warnings in case of fire fighting or spill control response, however other symbols may be used to designate additional warnings.
    • Examples:
      • ACID (Acidic material with a pH of lower than 7.0)
      • ALK (indicates an Alkaline material or base with a pH greater than 7.0)
      • COR (alternatively CORR, denotes a corrosive material)
      • Other graphical symbols include a "skull & crossbones" (poison), a radiation symbol to indicate radioactive materials, an explosion (although usually indicated by the Yellow Reactivity rating), or other nonstandard graphical markings.

Official Links

Official NFPA Organization Website - NFPA 704 Standard FAQ