Difference between revisions of "Template:Ptc"

From Conservapedia
Jump to navigation Jump to search
m
(Rough documentation)
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>
+
<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>
 +
{{TemplateDoc|pages=[[Periodic table of the elements]]|purpose=Table cell}}
 +
{{parms|
 +
{{parm|1|Number inside the table|yes}}
 +
{{parm|2|Symbol|no|If left blank, there will be no link, and #3 will have no effect.}}
 +
{{parm|3|Full name for wikilink|yes*|Required if #2 is ''not'' blank.}}
 +
{{parm|4|Atomic weight|yes}}
 +
{{parm|5|Background color|no}}
 +
}}
 +
</noinclude>

Revision as of 01:12, January 18, 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