Difference between revisions of "Template:Planet infobox"

From Ultronomicon
Jump to navigation Jump to search
m
m
 
Line 1: Line 1:
 
<includeonly>{{infobox
 
<includeonly>{{infobox
|above=[[:Category:Planets|Planet]]
+
|above=[[:Category:Planets|{{#if:{{{planet|}}}|Moon|Planet}}]]
 
|top=[[{{#switch:{{{type}}}|Shattered=Shattered World|Rainbow World=Rainbow World|#default=List of planet types#{{{type}}}}}|{{#switch:{{{type}}}|Gas Giant=Gas Giant|#default={{{type}}} World}}]]
 
|top=[[{{#switch:{{{type}}}|Shattered=Shattered World|Rainbow World=Rainbow World|#default=List of planet types#{{{type}}}}}|{{#switch:{{{type}}}|Gas Giant=Gas Giant|#default={{{type}}} World}}]]
 
|title={{#if:{{{local name|}}}|{{{local name}}}<br />(<small>{{{name}}}</small>)|{{{name}}}}}
 
|title={{#if:{{{local name|}}}|{{{local name}}}<br />(<small>{{{name}}}</small>)|{{{name}}}}}
Line 8: Line 8:
 
|label2={{#ifeq:{{{washomeworld|no}}}|yes|Former homeworld for|{{#ifeq:{{{ishomeworld|no}}}|yes|Homeworld for|Inhabited by}}}}
 
|label2={{#ifeq:{{{washomeworld|no}}}|yes|Former homeworld for|{{#ifeq:{{{ishomeworld|no}}}|yes|Homeworld for|Inhabited by}}}}
 
|data2={{{species|}}}
 
|data2={{{species|}}}
|header9=Astronomical data
+
|header8=Astronomical data
 +
|label9=Parent planet
 +
|data9={{{planet|}}}
 
|label10=Star
 
|label10=Star
 
|data10={{{star|}}}
 
|data10={{{star|}}}

Latest revision as of 16:09, 28 August 2012

Documentation for {{planet infobox}}

Use[edit]

Infobox for planets, replacing {{PlanetBox}}.

Usage[edit]

{{planet infobox
|name        = Name of planet
|local name  = Another name of planet, if different from its star map name (optional)
|image       = Image of planet, just the filename
|customimage = In case there is a need for full image syntax, use this (optional)
|caption     = Image caption (optional)
|species     = The species that lives here
|ishomeworld = Whether it is the homeworld for the above species (default: no)
|star        = Name of star it orbits (optional)
|orbit       = Orbit in AU
|mass        = Mass in e.s.
|atmo        = Atmosphere
|radius      = Radius
|temp        = Temperature
|gravity     = Gravity
|weather     = Weather (default: None)
|day         = Day length
|tectonics   = Tectonics (default: None)
|tilt        = Tilt
|map         = Map filename, just filename. (optional)
|type        = Type of world
|satellites  = List of satellites (optional)
}}