Template:Planet: Difference between revisions

Template page
acp>Taeronys
(Created page with "<onlyinclude> {| class="infobox galaxy-details" cellspacing="2" cellpadding="0" |- ! class="col-header" colspan="2" |<div style="font-size:1.2em;">{{{name}}}</div><div style="...")
 
m (1 revision imported)
 
(No difference)

Latest revision as of 03:57, 26 February 2024

{{{name}}}
{{{region}}}

{{#if: | |-

[[Image:{{#if:{{#explode:{{#explode:{{{image}}} 0}}|:|1}}|{{#explode:{{#explode:{{{image}}} 0}}|:|1}}|{{{image}}}}}|258px]]

}}

{{{caption}}}

{{#ifeq:N/A|N/A||

Type N/A

}}

Orbital Distance {{#if: {{{orbitaldistance}}} {{#if: {{#ifexpr:{{{orbitaldistance}}} }} classified = Classified | N/A }} {{{orbitaldistance}}} AU
   }}
N/A

}}

Orbital Period {{#if: {{{orbitalperiod}}} {{#if: {{#ifexpr:{{{orbitalperiod}}} }} classified = Classified | N/A }} {{{orbitalperiod}}} Earth Years
   }}
N/A

}}

Keplerian Ratio {{#if: {{{kepler}}} {{#if: {{#ifexpr:{{{kepler}}} }} classified = Classified | N/A }} {{{kepler}}}
   }}
{{#if: {{#ifexpr:{{{orbitaldistance}}} }} N/A {{#if: {{#ifexpr:{{{orbitalperiod}}} }} N/A AU Earth Years {{#expr:(({{{orbitaldistance}}}*{{{orbitaldistance}}}*{{{orbitaldistance}}})/({{{orbitalperiod}}}*{{{orbitalperiod}}})) round 3}} N/A
            }}            
N/A
         }}

}} |N/A }}

   }} |N/A }}

}}

Radius {{#if: {{{radius}}} {{#if: {{#ifexpr:{{{radius}}} }} classified = Classified | N/A }} {{{radius}}} km
   }}
N/A

}}

Day Length {{#if: {{{daylength}}} {{#if: {{#ifexpr:{{{daylength}}} }} classified = Classified | N/A }} {{{daylength}}} Earth Hours
   }}
N/A

}}

Atm. Pressure {{#if: {{{atmpressure}}} {{#if: {{#ifexpr:{{{atmpressure}}} }} classified = Classified | trace = Trace | N/A }} {{{atmpressure}}} atm
   }}
N/A

}}

Surface Temp {{#if: {{{surfacetemp}}} {{#if: {{#ifexpr:{{{surfacetemp}}} }} classified = Classified | N/A }} {{{surfacetemp}}} °C
   }}
N/A

}}

Surface Gravity {{#if: {{{surfacegrav}}} {{#if: {{#ifexpr:{{{surfacegrav}}} }} classified = Classified | N/A }} {{{surfacegrav}}} g
   }}
N/A

}}

Mass {{#if: {{{mass}}} {{#if: {{#ifexpr:{{{mass}}} }} classified = Classified | N/A }} {{{mass}}} Earth Masses
   }}
{{#if: {{#ifexpr:{{{surfacegrav}}} }} N/A {{#if: {{#ifexpr:{{{radius}}} }} N/A {{#expr:(0.0000000244*{{{surfacegrav}}}*{{{radius}}}*{{{radius}}}) round 3}} Earth Masses
      }} |N/A }}
   }} |N/A }}

}}

Satellites N/A

{{#ifeq:|Template|}}


Template:-

Usage

All variables below are passed from corresponding Template:T entries. Template:T controls how the information is presented. Numeric entries usually formatted to number for calculations. Null/invalid entries output N/A.

{{Planet
| name                 = 
| region               = Region of space that the body is located in.
                         Outputs the following information from PlanetDetails:
                         [[{{{cluster}}}]] and [[{{{system}}}]].
| image                = Strips any [[File:]] or [[Image:]] headers passed from
                         PlanetDetails.
| caption              = 
| worldtype            = 
| orbitaldistance      = 
| orbitaldistanceunits = 
| orbitalperiod        = Default measurement is Earth Year/s.
| orbitalperiodunits   = 
| kepler               = 
| radius               = 
| daylength            = Default measurement is Earth Hour/s.
| daylengthunits       = 
| atmpressure          = 
| surfacetemp          = 
| stnotes              = 
| surfacegrav          = 
| mass                 = Can accept and display manual entry.
| massunits            = 
| satellites           = 
}}