Difference between revisions of "Template:Planet infobox/doc"

From Ultronomicon
Jump to navigation Jump to search
m (→‎CSS: No need for this anymore.)
Line 27: Line 27:
 
|satellites  = List of satellites (optional)
 
|satellites  = List of satellites (optional)
 
}}</pre>
 
}}</pre>
 
=== CSS ===
 
 
Before this will look pretty, the following CSS needs to be added to [[MediaWiki:Common.css]]:
 
 
<pre>.infobox {
 
float: right;
 
width: 250px;
 
margin: 0 0 10px 15px;
 
text-align: center;
 
}
 
.infobox table {
 
background: #eee;
 
}
 
.infobox th {
 
text-align: right;
 
}
 
.infobox td {
 
text-align: left;
 
}
 
.infoboxCentre,
 
.infoboxHeader,
 
.infoboxTitle {
 
text-align: center !important;
 
}
 
.infoboxTitle {
 
background: #ccc;
 
font-size: 150%;
 
padding: 4px;
 
}
 
.infoboxHeader {
 
background: #ccc;
 
font-size: 120%;
 
}
 
.infoboxCaption {
 
font-size: 85%;
 
}
 
.infobox .odd th,
 
.infobox .odd td {
 
background: #ddd;
 
}</pre>
 

Revision as of 08:10, 28 August 2012

Use

Infobox for planets, replacing {{PlanetBox}}.

Usage

{{planet infobox
|name        = Name of planet
|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)
}}