Template:Planet infobox: Difference between revisions

From Ultronomicon
Jump to navigation Jump to search
Svip (talk | contribs)
mNo edit summary
Svip (talk | contribs)
mNo edit summary
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{infobox
<includeonly>{{infobox
|above=[[:Category:Planets|Planet]]
|above=[[:Category:Planets|{{#if:{{{planet|}}}|Moon|Planet}}]]
|top=[[List of planet types|{{{type}}}]]
|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={{{name}}}
|title={{#if:{{{local name|}}}|{{{local name}}}<br />(<small>{{{name}}}</small>)|{{{name}}}}}
|image={{#if:{{{image|}}}|[[File:{{{image}}}|100px]]|}}
|image={{#if:{{{image|}}}|[[File:{{{image}}}|100px]]|{{{customimage|}}}}}
|caption={{{caption|}}}
|caption={{{caption|}}}
|label1=Orbit
|header1={{#if:{{{species|}}}|Political|}}
|data1={{{orbit}}} a.u.
|label2={{#ifeq:{{{washomeworld|no}}}|yes|Former homeworld for|{{#ifeq:{{{ishomeworld|no}}}|yes|Homeworld for|Inhabited by}}}}
|label2=Atmosphere
|data2={{{species|}}}
|data2={{{atmo}}}
|header8=Astronomical data
|label3=Temperature
|label9=Parent planet
|data3={{{temp}}}°C
|data9={{{planet|}}}
|label4=Weather
|label10=Star
|data4={{#if:{{{weather|}}}|{{{weather}}}|None}}
|data10={{{star|}}}
|label5=Tectonics
|label11=Orbit
|data5={{#if:{{{tectonics|}}}|{{{tectonics}}}|None}}
|data11={{{orbit}}} a.u.
|label6=Mass
|label12=Atmosphere
|data6={{{mass}}} e.s.
|data12={{{atmo}}}
|label7=Radius
|label13=Temperature
|data7={{{radius}}} e.s.
|data13={{{temp}}}°C
|label8=Gravity
|label14=Weather
|data8={{{gravity}}} g
|data14={{#if:{{{weather|}}}|{{{weather}}}|None}}
|label9=Day length
|label15=Tectonics
|data9={{{day}}} [[Earth]] days
|data15={{#if:{{{tectonics|}}}|{{{tectonics}}}|None}}
|label10=Tilt
|label16=Mass
|data10={{{tilt}}}°
|data16={{{mass}}} e.s.
|header11={{#if:{{{satellites|}}}|Satellites|}}
|label17=Radius
|data12={{{satellites|}}}
|data17={{{radius}}} e.s.
|data13={{#if:{{{map|}}}|[[File:{{{map}}}|242px]]|}}
|label18=Gravity
|data18={{{gravity}}} g
|label19=Day length
|data19={{{day}}} [[Earth]] days
|label20=Tilt
|data20={{{tilt}}}°
|header21={{#if:{{{sat a|}}}|{{#if:{{{sat d|}}}|4|{{#if:{{{sat c|}}}|3|{{#if:{{{sat b|}}}|2|1}}}}}} {{#if:{{{sat b|}}}|satellites|satellite}}|}}
|label22={{{sat a name|Satellite a}}}
|data22={{#if:{{{sat a|}}}|[[List of planet types#{{{sat a|}}}|{{{sat a|}}} World]]|}}
|label23={{{sat b name|Satellite b}}}
|data23={{#if:{{{sat b|}}}|[[List of planet types#{{{sat b|}}}|{{{sat b|}}} World]]|}}
|label24={{{sat c name|Satellite c}}}
|data24={{#if:{{{sat c|}}}|[[List of planet types#{{{sat c|}}}|{{{sat c|}}} World]]|}}
|label25={{{sat d name|Satellite d}}}
|data25={{#if:{{{sat d|}}}|[[List of planet types#{{{sat d|}}}|{{{sat d|}}} World]]|}}
|header26={{#if:{{{map|}}}|Map|}}
|data27={{#if:{{{map|}}}|[[File:{{{map}}}|242px]]|}}
}}[[Category:Planets|{{{name}}}]]</includeonly><noinclude>{{documentation}}</noinclude>
}}[[Category:Planets|{{{name}}}]]</includeonly><noinclude>{{documentation}}</noinclude>

Latest revision as of 16:09, 28 August 2012

Documentation for {{planet infobox}}

Use

Infobox for planets, replacing {{PlanetBox}}.

Usage

{{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)
}}