Template:Infobox planet: Difference between revisions
Appearance
Created page with "<div class="infobox" style="width: 22em; border: 1px solid #a2a9b1; background: #f8f9fa; padding: 0.5em; float: right; margin: 0 0 1em 1em;"> <div style="font-weight: bold; text-align: center; font-size: 1.1em; padding: 0.3em; background: #ccc;">{{{name|Planet}}}</div> {{#if:{{{system|}}}|'''System:''' {{{system}}}<br/>}} {{#if:{{{type|}}}|'''Type:''' {{{type}}}<br/>}} {{#if:{{{population|}}}|'''Population:''' {{{population}}}<br/>}} {{#if:{{{faction|}}}|'''Fac..." |
No edit summary |
||
| Line 1: | Line 1: | ||
<div class="infobox" style="width: | <div class="infobox" style="width: 24em; border: 1px solid #a2a9b1; background: #f8f9fa; padding: 0; float: right; clear: right; margin: 0 0 1em 1em; font-size: 88%; line-height: 1.35em;"> | ||
<div style="font-weight: bold; text-align: center; font-size: 1.15em; padding: 0.4em; background: #ccc; border-bottom: 1px solid #a2a9b1;">{{{name|Planet}}}</div> | |||
{{#if:{{{image|}}}|[[File:{{{image}}}|frameless|upright|alt={{{image_alt|}}}|class=infobox-image]]}} | |||
<div style="padding: 0.5em;"> | |||
{{#if:{{{system|}}}|'''System:''' {{{system}}}<br/>}} | |||
{{#if:{{{type|}}}|'''Type:''' {{{type}}}<br/>}} | |||
{{#if:{{{population|}}}|'''Population:''' {{{population}}}<br/>}} | |||
{{#if:{{{faction|}}}|'''Faction:''' {{{faction}}}<br/>}} | |||
{{#if:{{{colony_founded|}}}|'''Colony founded:''' {{{colony_founded}}}<br/>}} | |||
{{#if:{{{diameter|}}}{{{gravity|}}}{{{atmosphere|}}}{{{moons|}}}|<table class="wikitable" style="width:100%; margin:0.4em 0; font-size:95%;"> | |||
{{#if:{{{diameter|}}}|<tr><th style="width:40%;">Diameter</th><td>{{{diameter}}}</td></tr>}} | |||
{{#if:{{{gravity|}}}|<tr><th>Gravity</th><td>{{{gravity}}}</td></tr>}} | |||
{{#if:{{{atmosphere|}}}|<tr><th>Atmosphere</th><td>{{{atmosphere}}}</td></tr>}} | |||
{{#if:{{{moons|}}}|<tr><th>Moons</th><td>{{{moons}}}</td></tr>}} | |||
</table>}} | |||
{{#if:{{{notable_features|}}}|'''Notable features:''' {{{notable_features}}}<br/>}} | |||
</div> | </div> | ||
</div> | |||
<noinclude> | |||
Install as '''Template:Infobox planet'''. Requires ParserFunctions. | |||
</noinclude> | |||
Revision as of 00:54, 21 June 2026
Planet
Install as Template:Infobox planet. Requires ParserFunctions.