Template:Planet Data: Difference between revisions

Template page
No edit summary
No edit summary
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#if:{{{name|}}}|== {{{name}}} ==|}}
{|
{|
|style="text-align:right;"|''Class:''
|style="text-align:right; vertical-align: top; padding-right: 5px;"|'''[[Planet Classification|Class:]]'''
|{{{class|Unknown}}}
|style="vertical-align: top;"|{{#if:{{{class|}}}|{{{class|Unknown}}}|{{{type|Unknown}}}}}
|-
|-
|style="text-align:right;"|''Distance:''
|style="text-align:right; vertical-align: top; padding-right: 5px;"|'''Distance:'''
|{{{distance|Unknown}}}
|style="vertical-align: top;"|{{{distance|Unknown}}}
|-
|-
|style="text-align:right;"|''Period:''
|style="text-align:right; vertical-align: top; padding-right: 5px;"|'''Period:'''
|{{{period|Unknown}}}
|style="vertical-align: top;"|{{{period|Unknown}}}
|-
|-
|style="text-align:right;"|''Radius:''
|style="text-align:right; vertical-align: top; padding-right: 5px;"|'''Radius:'''
|{{{radius|Unknown}}}
|style="vertical-align: top;"|{{{radius|Unknown}}}
|-
|-
|style="text-align:right;"|''Gravity:''
|style="text-align:right; vertical-align: top; padding-right: 5px;"|'''Gravity:'''
|{{{gravity|Unknown}}}
|style="vertical-align: top;"|{{{gravity|Unknown}}}
|}
|}<noinclude>
<noinclude>
== Documentation ==
== Documentation ==
Any value not given will default to unknown.  For planetary classes see the [[Planet Classification]] page.
Any value not given will default to unknown, except the name which if specified will be a header but if not present the header will be omitted.  For planetary classes see the [[Planet Classification]] page.


Template is used as follows:
Template is used as follows:
<pre>
<pre>
{{Planet Data
{{Planet Data
|name=    Planet Name
|class=    Planet Class
|class=    Planet Class
|distance= Distance from Star (i.e. 1 AU for Earth)  
|distance= Distance from Star (i.e. 1 AU for Earth)  
Line 29: Line 30:
}}
}}
</pre>
</pre>
The parameter <u>class</u> can also be replaced with <u>type</u>, as they likely refer to the same thing, though if the <u>class</u> parameter is used, it will override the <u>type</u> parameter.


== Example ==
== Example ==
Line 34: Line 37:
<pre>
<pre>
{{Planet Data
{{Planet Data
|name=Earth
|class=M
|class=M
|distance=1 AU
|distance=1 AU
Line 44: Line 48:
This code creates:
This code creates:
{{Planet Data
{{Planet Data
|name=Earth
|class=M
|class=M
|distance=1 AU
|distance=1 AU

Latest revision as of 21:07, 4 June 2022

Class: Unknown
Distance: Unknown
Period: Unknown
Radius: Unknown
Gravity: Unknown

Documentation

Any value not given will default to unknown, except the name which if specified will be a header but if not present the header will be omitted. For planetary classes see the Planet Classification page.

Template is used as follows:

{{Planet Data
|name=     Planet Name
|class=    Planet Class
|distance= Distance from Star (i.e. 1 AU for Earth) 
|period=   Orbital Period (i.e. time for 1 revolution)
|radius=   Radius of Planetary Body (i.e. how big the planet is)
|gravity=  Gravitational Pull (Gravitational pull of the planet in G's at the surface)
}}

The parameter class can also be replaced with type, as they likely refer to the same thing, though if the class parameter is used, it will override the type parameter.

Example

The following code is for Earth:

{{Planet Data
|name=Earth
|class=M
|distance=1 AU
|period=365.25 Days
|radius=6563 km
|gravity=1 G
}}

This code creates:

Earth

Class: M
Distance: 1 AU
Period: 365.25 Days
Radius: 6563 km
Gravity: 1 G