Template:NFPA: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Robert W King
No edit summary
imported>Robert W King
No edit summary
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;"
{|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;"
|-
|-
|&nbsp;
|&nbsp;
|<div style="border-style:solid;
|<div style="position: relative;
position: relative;  
top: 0px;
top:0px;
width: 0px;
width:0px;  
height: 1%;
font-size:0;
font-size: 0px;
height:1%;
line-height: 0px;
line-height:0px;
border-width: 0px {{{size}}}px {{{size}}}px;
border-width: 0px {{{size}}}px {{{size}}}px;  
border-style: solid;
border-color:red #{{{background}}};
border-color: red #{{{background}}};
z-index:1;"></div>
z-index: 1;">
</div>


<div style="position: relative;
<div style="position:relative;
font-size:{{{fontsize}}}px;  
top:8%;
top:8%;
font-size:{{{fontsize}}}px;
line-height:0px;
line-height:0px;
text-align:center;
text-align: center;
background:transparent;
background: transparent;
color:black;  
z-index: 2;">{{{R}}}
z-index:2;">{{{R}}}</div>
</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>


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


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


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


<noinclude>
<noinclude>

Revision as of 09:32, 3 July 2007


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


Placement

Used in conjunction with the chemical infobox Template:Chem_Infobox.

Usage

See example on Scandium.

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

Parameters

  • background = use hexidecimal color code such as "cacaca"
  • size = Defines the size of the diamond in pixels
  • fontsize = Defines the size of the text in pixels
  • 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 - Warning