Difference between revisions of "Template:Planet"
From Conservapedia
m (Templates renamed) |
(reformat & document (test)) |
||
Line 1: | Line 1: | ||
− | {| class=" | + | {| class="infobox bordered" style="float: width:23em; right; margin: 0 0 0.5em 0.5em; text-align: left; font-size: 85%; margin-left:5px" border=1 align="right" cellpadding="2" cellspacing="0" width="300" |
− | | | + | !colspan="2" align="center" style="color: Bisque; font-size: 120%; height: 20px; background: Black no-repeat scroll top left;"| '''{{{name|{{PAGENAME}}}}}''' |
|- | |- | ||
− | | | + | <!----------Image----------> |
− | |- | + | {{!}}align="center" colspan="2"{{!}}{{#if:{{{image|}}}|[[image:{{{image}}}|280px280px]]|}} |
− | + | {{!-}} | |
− | |- | + | <!----Symbol--------------> |
− | | Diameter || {{{diameter}}} | + | {{#if:{{{symbol|}}} | <!--then:--> |
− | |- | + | {{!}}width=40% {{!}} '''Symbol''' |
− | + | {{!}} {{{symbol|}}} | <!--else--> | |
− | |- | + | }} |
− | | Distance from | + | {{!-}} |
− | |- | + | <!----Order---------------> |
− | + | {{#if:{{{order|}}} | <!--then:--> | |
− | |- | + | {{!}}width=40% {{!}} '''Order from sun''' |
− | | Length of Year (Revolution) | + | {{!}} {{{order|}}} | <!--else--> |
− | |- | + | }} |
− | + | {{!-}} | |
− | |- | + | <!----Diameter------------> |
− | + | {{#if:{{{diameter|}}} | <!--then:--> | |
− | |- | + | {{!}}width=40% {{!}} '''Diameter''' |
− | + | {{!}} {{{diameter|}}} | <!--else--> | |
− | |- | + | }} |
− | | Date of | + | {{!-}} |
− | |- | + | <!----Mass----------------> |
− | + | {{#if:{{{mass|}}} | <!--then:--> | |
− | |- | + | {{!}} '''Mass''' |
− | + | {{!}} {{{mass|}}} | <!--else--> | |
− | |- | + | }} |
− | |}< | + | {{!-}} |
− | {{TemplateDoc|pages= | + | <!----Distance------------> |
+ | {{#if:{{{distance|}}} | <!--then:--> | ||
+ | {{!}} '''Distance from sun<br>(Orbital Semi-major Axis)''' | ||
+ | {{!}} {{{distance|}}} | <!--else--> | ||
+ | }} | ||
+ | {{!-}} | ||
+ | <!----Length of day-------> | ||
+ | {{#if:{{{day|}}} | <!--then:--> | ||
+ | {{!}} '''Length of day''' | ||
+ | {{!}} {{{day|}}} | <!--else--> | ||
+ | }} | ||
+ | {{!-}} | ||
+ | <!----Length of year------> | ||
+ | {{#if:{{{year|}}} | <!--then:--> | ||
+ | {{!}} '''Length of Year (Revolution)''' | ||
+ | {{!}} {{{year|}}} | <!--else--> | ||
+ | }} | ||
+ | {{!-}} | ||
+ | <!----Number of moons-----> | ||
+ | {{#if:{{{moons|}}} | <!--then:--> | ||
+ | {{!}} '''Number of moons''' | ||
+ | {{!}} {{{moons|}}} | <!--else--> | ||
+ | }} | ||
+ | {{!-}} | ||
+ | <!----Composition---------> | ||
+ | {{#if:{{{composition|}}} | <!--then:--> | ||
+ | {{!}} '''Composition''' | ||
+ | {{!}} {{{composition|}}} | <!--else--> | ||
+ | }} | ||
+ | {{!-}} | ||
+ | <!----Color---------------> | ||
+ | {{#if:{{{color|}}} | <!--then:--> | ||
+ | {{!}} '''Color''' | ||
+ | {{!}} {{{color|}}} | <!--else--> | ||
+ | }} | ||
+ | {{!-}} | ||
+ | <!----Albedo--------------> | ||
+ | {{#if:{{{albedo|}}} | <!--then:--> | ||
+ | {{!}} '''Albedo''' | ||
+ | {{!}} {{{albedo|}}} | <!--else--> | ||
+ | }} | ||
+ | {{!-}} | ||
+ | <!----Date of discovery---> | ||
+ | {{#if:{{{date|}}} | <!--then:--> | ||
+ | {{!}} '''Date of discovery''' | ||
+ | {{!}} {{{date|}}} | <!--else--> | ||
+ | }} | ||
+ | {{!-}} | ||
+ | <!----Name of discoverer--> | ||
+ | {{#if:{{{discname|}}} | <!--then:--> | ||
+ | {{!}} '''Name of discoverer''' | ||
+ | {{!}} {{{discname|}}} | <!--else--> | ||
+ | }} | ||
+ | {{!-}} | ||
+ | <!----Name origin---------> | ||
+ | {{#if:{{{origname|}}} | <!--then:--> | ||
+ | {{!}} '''Name origin''' | ||
+ | {{!}} {{{origname|}}} | <!--else--> | ||
+ | }} | ||
+ | {{!-}} | ||
+ | |} | ||
+ | |||
+ | <includeonly>[[Category:Planet]]</includeonly> | ||
+ | <noinclude>[[Category:Template]] | ||
+ | {{TemplateDoc|pages=Mineral articles|purpose=Infobox|cat=Mineral}} | ||
{{Parms| | {{Parms| | ||
− | {{Parm| | + | {{Parm|name |Name |no | Defaults to page name}} |
+ | {{Parm|image |Picture of planet |no | just image name}} | ||
+ | {{Parm|symbol |Symbol |no | }} | ||
+ | {{Parm|order |Order from sun |no | }} | ||
+ | {{Parm|diameter |Diameter |no | }} | ||
+ | {{Parm|mass |Mass |no | }} | ||
+ | {{Parm|distance |Distance from sun |no | }} | ||
+ | {{Parm|day |Length of day |no | Time for one rotation}} | ||
+ | {{Parm|year |Length of year |no | Time for one revolution}} | ||
+ | {{Parm|moons |Number of moons |no | }} | ||
+ | {{Parm|composition |Composition |no | }} | ||
+ | {{Parm|color |Color |no | }} | ||
+ | {{Parm|albedo |Albedo |no | }} | ||
+ | {{Parm|date |Date of discovery |no | }} | ||
+ | {{Parm|discname |Name of discoverer|no | }} | ||
+ | {{Parm|origname |Name origin |no | }} | ||
}} | }} | ||
+ | |||
+ | ===Sample Data Block=== | ||
+ | The following may be copied and pasted at the top of the page being edited | ||
+ | <pre> | ||
+ | <nowiki>{{</nowiki>Planet | ||
+ | | name= | ||
+ | | image= | ||
+ | | symbol= | ||
+ | | order= | ||
+ | | diameter= | ||
+ | | mass= | ||
+ | | distance= | ||
+ | | day= | ||
+ | | year= | ||
+ | | moons= | ||
+ | | composition= | ||
+ | | color= | ||
+ | | albedo= | ||
+ | | date= | ||
+ | | discname= | ||
+ | | nameorigin= | ||
+ | |} | ||
+ | <nowiki>}}</nowiki></pre> | ||
</noinclude> | </noinclude> |
Revision as of 07:13, July 16, 2007
Planet | |
---|---|
Template: Planet | |
---|---|
Use on | Mineral articles |
Use for | Infobox |
Category template applies to page | Mineral |
Template Parameters (See using templates). | |||
---|---|---|---|
Name | Purpose | Required? | Comment |
name | Name | no | Defaults to page name |
image | Picture of planet | no | just image name |
symbol | Symbol | no | |
order | Order from sun | no | |
diameter | Diameter | no | |
mass | Mass | no | |
distance | Distance from sun | no | |
day | Length of day | no | Time for one rotation |
year | Length of year | no | Time for one revolution |
moons | Number of moons | no | |
composition | Composition | no | |
color | Color | no | |
albedo | Albedo | no | |
date | Date of discovery | no | |
discname | Name of discoverer | no | |
origname | Name origin | no |
Sample Data Block
The following may be copied and pasted at the top of the page being edited
{{Planet | name= | image= | symbol= | order= | diameter= | mass= | distance= | day= | year= | moons= | composition= | color= | albedo= | date= | discname= | nameorigin= |} }}