Difference between revisions of "Template:Ptc"

From Conservapedia
Jump to navigation Jump to search
(Rough documentation)
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>

Revision as of 23:33, January 24, 2008

{{{1}}}
[[{{{3}}}|{{{2}}}]]
{{{4}}}

Template: Ptc
Use on Periodic table of the elements
Use for Table cell
Category template applies to page (none)
Template Parameters
(See using templates).
Name Purpose Required? Comment
1 Number inside the table yes
2 Symbol no If left blank, there will be no link, and #3 will have no effect.
3 Full name for wikilink yes* Required if #2 is not blank.
4 Atomic weight yes
5 Background color no Defaults to "pink"