Changes

6 bytes added ,  23:33, January 24, 2008
m
Since most boxes in the table are pink now, let's just set that as the default to save space and a little runtime
Line 1: Line 1: −
<div style="text-align:center; border:1px solid black; margin:0; padding:3px 5px;{{#ifeq:{{{5}}}||| background-color:{{{5}}};}}">{{{1}}}<BR><span style="line-height:100%">{{#ifeq:{{{2}}}||&nbsp;|[[{{{3}}}|{{{2}}}]]}}</span><BR><small><span style="line-height:125%">{{{4}}}</span></small></div><noinclude>
+
<div style="text-align:center; border:1px solid black; margin:0; padding:3px 5px; background-color:{{{5|pink}}};}}">{{{1}}}<BR><span style="line-height:100%">{{#ifeq:{{{2}}}||&nbsp;|[[{{{3}}}|{{{2}}}]]}}</span><BR><small><span style="line-height:125%">{{{4}}}</span></small></div><noinclude>
 
{{TemplateDoc|pages=[[Periodic table of the elements]]|purpose=Table cell}}
 
{{TemplateDoc|pages=[[Periodic table of the elements]]|purpose=Table cell}}
 
{{parms|
 
{{parms|
Line 6: Line 6:  
  {{parm|3|Full name for wikilink|yes*|Required if #2 is ''not'' blank.}}
 
  {{parm|3|Full name for wikilink|yes*|Required if #2 is ''not'' blank.}}
 
  {{parm|4|Atomic weight|yes}}
 
  {{parm|4|Atomic weight|yes}}
−
  {{parm|5|Background color|no}}
+
  {{parm|5|Background color|no|Defaults to "pink"}}
 
}}
 
}}
 
</noinclude>
 
</noinclude>
541

edits