Difference between revisions of "Template:Planet"

From Emperor's Hammer Encyclopaedia Imperia
 
(11 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{| width="250" align="right" cellpadding="3" cellspacing="0" style="border: 2px #333333 solid; background: #000000; border-bottom-right-radius: .8em; border-bottom-left-radius: .8em; -moz-border-radius-bottomright: .8em; -moz-border-radius-bottomleft: .8em; -webkit-border-bottom-right-radius: .8em; -webkit-border-bottom-left-radius: .8em; margin-top: -1.4em; margin: 0 0 1em 1em; font-size: 12px;color: #ffffff;"
+
{| width="250" align="right" cellpadding="3" cellspacing="0" class="sidebar" style="float: right; clear: right; font-size: smaller;"
 
|-
 
|-
  
{{!}} colspan="2" bgcolor={{{bgcolor_value|#222222; style="background: #222222; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller; text-align: center;"}}} {{!}} {{{image}}}
+
{{!}} colspan="2" class="sidebar-heading-image" {{!}} {{{image}}}
 
|-
 
|-
| colspan="2" style="border-top: 1px solid #111111; text-align: center; color: #e5e5ed; font-size:larger; background-color:#90905F; text-align:center; font-variant:small-caps;" | '''{{{name}}}'''
+
| colspan="2" class="sidebar-heading-heading" | '''{{{name}}}'''
 
|-
 
|-
| colspan="2" style="border-top: 1px solid #111111; text-align: center; color: #e5e5ed; background-color:#75754C; text-align:center; font-size:8pt;" | '''Astrographical'''
+
| colspan="2" class="sidebar-heading-subheading" | '''Astrographical'''
 
|-
 
|-
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller;"}}} {{!}} Region:
+
{{#if: {{{region|}}}|
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} class="sidebar-label" {{!}} Region:
{{{region}}}
+
{{!}} class="sidebar-value" {{!}}  
 +
{{{region}}}}}
 
|-
 
|-
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller;"}}} {{!}} Sector:
+
{{#if: {{{sector|}}}|
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} class="sidebar-label" {{!}} Sector:
{{{sector}}}
+
{{!}} class="sidebar-value" {{!}}  
 +
{{{sector}}}}}
 
|-
 
|-
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller;"}}} {{!}} System:
+
{{#if: {{{system|}}}|
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} class="sidebar-label" {{!}} System:
{{{system}}}
+
{{!}} class="sidebar-value" {{!}}  
 +
{{{system}}}}}
 
|-
 
|-
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller;"}}} {{!}} Suns:
+
{{#if: {{{suns|}}}|
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} class="sidebar-label" {{!}} Suns:
{{{suns}}}
+
{{!}} class="sidebar-value" {{!}}  
 +
{{{suns}}}}}
 
|-
 
|-
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller;"}}} {{!}} Moons:
+
{{#if: {{{moons|}}}|
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} class="sidebar-label" {{!}} Moons:
{{{moons}}}
+
{{!}} class="sidebar-value" {{!}}  
 +
{{{moons}}}}}
 
|-
 
|-
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller;"}}} {{!}} Coordinates:
+
{{#if: {{{coord|}}}|
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} class="sidebar-label" {{!}} Coordinates:
{{{coord}}}
+
{{!}} class="sidebar-value" {{!}}  
 +
{{{coord}}}}}
 
|-
 
|-
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller;"}}} {{!}} Distance from Core:
+
{{#if: {{{distance|}}}|
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} class="sidebar-label" {{!}} Distance from Core:
{{{distance}}}
+
{{!}} class="sidebar-value" {{!}}  
 +
{{{distance}}}}}
 
|-
 
|-
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller;"}}} {{!}} Rotation period:
+
{{#if: {{{distancestar|}}}|
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} class="sidebar-label" {{!}} Distance from Star (AUs):
{{{lengthday}}}
+
{{!}} class="sidebar-value" {{!}}  
 +
{{{distancestar}}}}}
 
|-
 
|-
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller;"}}} {{!}} Orbital period:
+
{{#if: {{{lengthday|}}}|
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} class="sidebar-label" {{!}} Rotation period:
{{{lengthyear}}}
+
{{!}} class="sidebar-value" {{!}}  
 +
{{{lengthday}}}}}
 
|-
 
|-
| colspan="2" style="border-top: 1px solid #111111; text-align: center; color: #e5e5ed; background-color:#75754C; text-align:center; font-size:8pt;" | '''Physical'''
+
{{#if: {{{lengthyear|}}}|
 +
{{!}} class="sidebar-label" {{!}} Orbital period:
 +
{{!}} class="sidebar-value" {{!}}
 +
{{{lengthyear}}}}}
 
|-
 
|-
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller;"}}} {{!}} Class:
+
{{#if: {{{orbittype|}}}|
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} class="sidebar-label" {{!}} Orbit Type:
{{{class}}}
+
{{!}} class="sidebar-value" {{!}}  
 +
{{{orbittype}}}}}
 
|-
 
|-
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller;"}}} {{!}} Diameter:
+
| colspan="2" class="sidebar-heading-subheading" | '''Physical'''
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}
 
{{{diameter}}}
 
 
|-
 
|-
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller;"}}} {{!}} Atmosphere:
+
{{#if: {{{class|}}}|
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} class="sidebar-label" {{!}} Class:
{{{atmosphere}}}
+
{{!}} class="sidebar-value" {{!}}  
 +
{{{class}}}}}
 
|-
 
|-
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller;"}}} {{!}} Climates:
+
{{#if: {{{diameter|}}}|
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} class="sidebar-label" {{!}} Diameter:
{{{climate}}}
+
{{!}} class="sidebar-value" {{!}}  
 +
{{{diameter}}}}}
 
|-
 
|-
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller;"}}} {{!}} Gravity:
+
{{#if: {{{tilt|}}}|
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} class="sidebar-label" {{!}} Axial Tilt:
{{{gravity}}}
+
{{!}} class="sidebar-value" {{!}}  
 +
{{{tilt}}}}}
 
|-
 
|-
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller;"}}} {{!}} Primary Terrain:
+
{{#if: {{{atmosphere|}}}|
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} class="sidebar-label" {{!}} Atmosphere:
{{{terrain}}}
+
{{!}} class="sidebar-value" {{!}}  
 +
{{{atmosphere}}}}}
 
|-
 
|-
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller;"}}} {{!}} Points of interest:
+
{{#if: {{{hydrosphere|}}}|
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} class="sidebar-label" {{!}} Hydrosphere:
{{{interest}}}
+
{{!}} class="sidebar-value" {{!}}  
 +
{{{hydrosphere}}}}}
 
|-
 
|-
| colspan="2" style="border-top: 1px solid #111111; text-align: center; color: #e5e5ed; background-color:#75754C; text-align:center; font-size:8pt;" | '''Societal'''
+
{{#if: {{{climate|}}}|
 +
{{!}} class="sidebar-label" {{!}} Climates:
 +
{{!}} class="sidebar-value" {{!}}
 +
{{{climate}}}}}
 
|-
 
|-
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller;"}}} {{!}} Native species:
+
{{#if: {{{temperature|}}}|
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} class="sidebar-label" {{!}} Temperature:
{{{species}}}
+
{{!}} class="sidebar-value" {{!}}  
 +
{{{temperature}}}}}
 
|-
 
|-
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller;"}}} {{!}} Immigrated species:
+
{{#if: {{{seasons|}}}|
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} class="sidebar-label" {{!}} Seasonal Change:
{{{otherspecies}}}
+
{{!}} class="sidebar-value" {{!}}  
 +
{{{seasons}}}}}
 
|-
 
|-
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller;"}}} {{!}} Official language:
+
{{#if: {{{gravity|}}}|
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} class="sidebar-label" {{!}} Gravity:
{{{language}}}
+
{{!}} class="sidebar-value" {{!}}  
 +
{{{gravity}}}}}
 
|-
 
|-
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller;"}}} {{!}} Population:
+
{{#if: {{{terrain|}}}|
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} class="sidebar-label" {{!}} Primary Terrain:
{{{population}}}
+
{{!}} class="sidebar-value" {{!}}  
 +
{{{terrain}}}}}
 
|-
 
|-
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller;"}}} {{!}} Major cities:
+
{{#if: {{{interest|}}}|
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} class="sidebar-label" {{!}} Points of interest:
{{{cities}}}
+
{{!}} class="sidebar-value" {{!}}  
 +
{{{interest}}}}}
 
|-
 
|-
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller;"}}} {{!}} Major imports:
+
| colspan="2" class="sidebar-heading-subheading" | '''Societal'''
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}
 
{{{imports}}}
 
 
|-
 
|-
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller;"}}} {{!}} Major exports:
+
{{#if: {{{function|}}}|
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} class="sidebar-label" {{!}} Function:
{{{exports}}}
+
{{!}} class="sidebar-value" {{!}}  
 +
{{{function}}}}}
 
|-
 
|-
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller;"}}} {{!}} Affiliation:
+
{{#if: {{{species|}}}|
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} class="sidebar-label" {{!}} Native species:
{{{affiliation}}}
+
{{!}} class="sidebar-value" {{!}}  
 +
{{{species}}}}}
 
|-
 
|-
  |colspan="2" style="border-bottom-right-radius: .8em; border-bottom-left-radius: .8em; -moz-border-radius-bottomright: .8em; -moz-border-radius-bottomleft: .8em; -webkit-border-bottom-right-radius: .8em; -webkit-border-bottom-left-radius: .8em; text-align: center; color: #e5e5ed; font-variant:small-caps; font-size:smaller; background-color:#90905F; text-align:center; border-top: 1px solid #111111;" | [[Template:Planet|[ Source ]]]
+
{{#if: {{{otherspecies|}}}|
 +
{{!}} class="sidebar-label" {{!}} Immigrated species:
 +
{{!}} class="sidebar-value" {{!}}
 +
{{{otherspecies}}}}}
 +
|-
 +
{{#if: {{{language|}}}|
 +
{{!}} class="sidebar-label" {{!}} Official language:
 +
{{!}} class="sidebar-value" {{!}}
 +
{{{language}}}}}
 +
|-
 +
{{#if: {{{population|}}}|
 +
{{!}} class="sidebar-label" {{!}} Population:
 +
{{!}} class="sidebar-value" {{!}}
 +
{{{population}}}}}
 +
|-
 +
{{#if: {{{cities|}}}|
 +
{{!}} class="sidebar-label" {{!}} Major cities:
 +
{{!}} class="sidebar-value" {{!}}
 +
{{{cities}}}}}
 +
|-
 +
{{#if: {{{imports|}}}|
 +
{{!}} class="sidebar-label" {{!}} Major imports:
 +
{{!}} class="sidebar-value" {{!}}
 +
{{{imports}}}}}
 +
|-
 +
{{#if: {{{exports|}}}|
 +
{{!}} class="sidebar-label" {{!}} Major exports:
 +
{{!}} class="sidebar-value" {{!}}
 +
{{{exports}}}}}
 +
|-
 +
{{#if: {{{affiliation|}}}|
 +
{{!}} class="sidebar-label" {{!}} Affiliation:
 +
{{!}} class="sidebar-value" {{!}}
 +
{{{affiliation}}}}}
 +
|-
 +
{{#if: {{{starport|}}}|
 +
{{!}} class="sidebar-label" {{!}} Starport Type:
 +
{{!}} class="sidebar-value" {{!}}
 +
{{{starport|}}}}}
 +
|-
 +
{{#if: {{{government|}}}|
 +
{{!}} class="sidebar-label" {{!}} Government Type:
 +
{{!}} class="sidebar-value" {{!}}
 +
{{{government|}}}}}
 +
|-
 +
{{#if: {{{techlevel|}}}|
 +
{{!}} class="sidebar-label" {{!}} Technology Level:
 +
{{!}} class="sidebar-value" {{!}}
 +
{{{techlevel|}}}}}
 +
|-
 +
  |colspan="2" | [[Template:Planet|[ Source ]]]
 
|}
 
|}
 
<noinclude>{{Clear}}
 
<noinclude>{{Clear}}
Line 124: Line 198:
 
|coord=
 
|coord=
 
|distance=
 
|distance=
 +
|distancestar=
 
|lengthday=
 
|lengthday=
 
|lengthyear=
 
|lengthyear=
 +
|orbittype=
 
|class=
 
|class=
 
|diameter=
 
|diameter=
 +
|tilt=
 
|atmosphere=
 
|atmosphere=
 +
|hydrosphere=
 
|climate=
 
|climate=
 +
|temperature=
 +
|seasons=
 
|gravity=
 
|gravity=
 
|terrain=
 
|terrain=
 
|interest=
 
|interest=
 +
|function=
 
|species=
 
|species=
 
|otherspecies=
 
|otherspecies=
Line 141: Line 222:
 
|exports=
 
|exports=
 
|affiliation=
 
|affiliation=
 +
|starport=
 +
|goverment=
 +
|techlevel=
 
}}
 
}}
 
</pre>
 
</pre>
 +
 +
__NOTOC__
 +
[[Category:Templates]]
 +
</noinclude>

Latest revision as of 18:26, 28 May 2023

Usage

To use: Paste the following text into the desired character article, and fill in the appropriate fields.

{{Planet
|image=
|name=
|region=
|sector=
|system=
|suns=
|moons=
|coord=
|distance=
|distancestar=
|lengthday=
|lengthyear=
|orbittype=
|class=
|diameter=
|tilt=
|atmosphere=
|hydrosphere=
|climate=
|temperature=
|seasons=
|gravity=
|terrain=
|interest=
|function=
|species=
|otherspecies=
|language=
|population=
|cities=
|imports=
|exports=
|affiliation=
|starport=
|goverment=
|techlevel=
}}