Template:NFPA: Difference between revisions
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;" | ||
|- | |- | ||
| | | | ||
|<div style=" | |<div style="position: relative; | ||
position: relative; | top: 0px; | ||
top:0px; | width: 0px; | ||
width:0px; | height: 1%; | ||
font-size: | font-size: 0px; | ||
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; | ||
top:8%; | top:8%; | ||
font-size:{{{fontsize}}}px; | |||
line-height:0px; | line-height:0px; | ||
text-align:center; | text-align: center; | ||
background:transparent | background: transparent; | ||
z-index: 2;">{{{R}}} | |||
z-index:2;">{{{R}}}</div> | </div> | ||
| | |||
|- | |||
|<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; | |||
top: -50%; | |||
|<div | left: 15%; | ||
position: relative; | font-size: {{{fontsize}}}px; | ||
top:0px; | line-height: 0px; | ||
width:0px; | text-align: right; | ||
height:1%; | background: transparent; | ||
z-index: 2;">{{{B}}} | |||
</div> | |||
border-width: {{{size}}}px {{{size}}}px {{{size}}}px | |||
border-color: #{{{background}}} | |<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; | ||
top: -50%; | |||
font-size:{{{fontsize}}}px; | left: -12%; | ||
background:transparent; | font-size: {{{fontsize}}}px; | ||
line-height: 0px; | |||
top: | text-align: left; | ||
background: transparent; | |||
line-height:0px; | z-index: 2;">{{{Y}}} | ||
</div> | |||
|- | |||
| | |||
|<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="position: relative; | |||
position: | top: -100%; | ||
left: 0px; | |||
font-size: {{{fontsize}}}px; | |||
line-height: 0px; | |||
text-align: center; | |||
background: transparent; | |||
z-index: 2;">{{{W}}} | |||
</div> | |||
| | |||
|} | |||
font-size:{{{fontsize}}}px | |||
line-height:0px | |||
text-align:center; | |||
background:transparent | |||
z-index:2;">{{{W}}}</div> | |||
| | |||
|} | |||
<noinclude> | <noinclude> |
Revision as of 08: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