Difference between revisions of "Template:Planet"

From Emperor's Hammer Encyclopaedia Imperia
 
(13 intermediate revisions by 6 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'''
 
|-
 
|-
{{{region|}}}|
+
{{#if: {{{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;"}}} {{!}} Region:
+
{{!}} class="sidebar-label" {{!}} Region:
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} class="sidebar-value" {{!}}  
{{{region}}}
+
{{{region}}}}}
 
|-
 
|-
{{{sector|}}}|
+
{{#if: {{{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;"}}} {{!}} Sector:
+
{{!}} class="sidebar-label" {{!}} Sector:
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} class="sidebar-value" {{!}}  
{{{sector}}}
+
{{{sector}}}}}
 
|-
 
|-
{{{system|}}}|
+
{{#if: {{{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;"}}} {{!}} System:
+
{{!}} class="sidebar-label" {{!}} System:
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} class="sidebar-value" {{!}}  
 
{{{system}}}}}
 
{{{system}}}}}
 
|-
 
|-
{{{suns|}}}|
+
{{#if: {{{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;"}}} {{!}} Suns:
+
{{!}} class="sidebar-label" {{!}} Suns:
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} class="sidebar-value" {{!}}  
 
{{{suns}}}}}
 
{{{suns}}}}}
 
|-
 
|-
{{{moons|}}}|
+
{{#if: {{{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;"}}} {{!}} Moons:
+
{{!}} class="sidebar-label" {{!}} Moons:
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} class="sidebar-value" {{!}}  
{{{moons}}}
+
{{{moons}}}}}
 
|-
 
|-
{{{coord|}}}|
+
{{#if: {{{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;"}}} {{!}} Coordinates:
+
{{!}} class="sidebar-label" {{!}} Coordinates:
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} class="sidebar-value" {{!}}  
{{{coord}}}
+
{{{coord}}}}}
 
|-
 
|-
{{{distance|}}}|
+
{{#if: {{{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;"}}} {{!}} Distance from Core:
+
{{!}} class="sidebar-label" {{!}} Distance from Core:
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} class="sidebar-value" {{!}}  
{{{distance}}}
+
{{{distance}}}}}
 
|-
 
|-
{{{lengthday|}}}|
+
{{#if: {{{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;"}}} {{!}} Rotation period:
+
{{!}} class="sidebar-label" {{!}} Distance from Star (AUs):
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} class="sidebar-value" {{!}}  
{{{lengthday}}}
+
{{{distancestar}}}}}
 
|-
 
|-
{{{lengthyear|}}}|
+
{{#if: {{{lengthday|}}}|
{{!}} 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:
+
{{!}} class="sidebar-label" {{!}} Rotation period:
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} class="sidebar-value" {{!}}  
{{{lengthyear}}}
+
{{{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}}}}}
 
|-
 
|-
{{{class|}}}|
+
{{#if: {{{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;"}}} {{!}} Class:
+
{{!}} class="sidebar-label" {{!}} Orbit Type:
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} class="sidebar-value" {{!}}  
{{{class}}}
+
{{{orbittype}}}}}
 
|-
 
|-
{{{diameter|}}}|
+
| colspan="2" class="sidebar-heading-subheading" | '''Physical'''
{{!}} 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:
 
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}
 
{{{diameter}}}
 
 
|-
 
|-
{{{atmosphere|}}}|
+
{{#if: {{{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;"}}} {{!}} Atmosphere:
+
{{!}} class="sidebar-label" {{!}} Class:
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} class="sidebar-value" {{!}}  
{{{atmosphere}}}
+
{{{class}}}}}
 
|-
 
|-
{{{climate|}}}|
+
{{#if: {{{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;"}}} {{!}} Climates:
+
{{!}} class="sidebar-label" {{!}} Diameter:
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} class="sidebar-value" {{!}}  
{{{climate}}}
+
{{{diameter}}}}}
 
|-
 
|-
{{{gravity|}}}|
+
{{#if: {{{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;"}}} {{!}} Gravity:
+
{{!}} class="sidebar-label" {{!}} Axial Tilt:
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} class="sidebar-value" {{!}}  
{{{gravity}}}
+
{{{tilt}}}}}
 
|-
 
|-
{{{terrain|}}}|
+
{{#if: {{{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;"}}} {{!}} Primary Terrain:
+
{{!}} class="sidebar-label" {{!}} Atmosphere:
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} class="sidebar-value" {{!}}  
{{{terrain}}}
+
{{{atmosphere}}}}}
 
|-
 
|-
{{{interest|}}}|
+
{{#if: {{{hydrosphere|}}}|
{{!}} 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:
+
{{!}} class="sidebar-label" {{!}} Hydrosphere:
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} class="sidebar-value" {{!}}  
{{{interest}}}
+
{{{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}}}}}
 
|-
 
|-
{{{species|}}}|
+
{{#if: {{{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;"}}} {{!}} Native species:
+
{{!}} class="sidebar-label" {{!}} Temperature:
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} class="sidebar-value" {{!}}  
{{{species}}}
+
{{{temperature}}}}}
 
|-
 
|-
{{{otherspecies|}}}|
+
{{#if: {{{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;"}}} {{!}} Immigrated species:
+
{{!}} class="sidebar-label" {{!}} Seasonal Change:
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} class="sidebar-value" {{!}}  
{{{otherspecies}}}
+
{{{seasons}}}}}
 
|-
 
|-
{{{language|}}}|
+
{{#if: {{{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;"}}} {{!}} Official language:
+
{{!}} class="sidebar-label" {{!}} Gravity:
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} class="sidebar-value" {{!}}  
{{{language}}}
+
{{{gravity}}}}}
 
|-
 
|-
{{{population|}}}|
+
{{#if: {{{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;"}}} {{!}} Population:
+
{{!}} class="sidebar-label" {{!}} Primary Terrain:
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} class="sidebar-value" {{!}}  
{{{population}}}
+
{{{terrain}}}}}
 
|-
 
|-
{{{cities|}}}|
+
{{#if: {{{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 cities:
+
{{!}} class="sidebar-label" {{!}} Points of interest:
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} class="sidebar-value" {{!}}  
{{{cities}}}
+
{{{interest}}}}}
 
|-
 
|-
{{{imports|}}}|
+
| colspan="2" class="sidebar-heading-subheading" | '''Societal'''
{{!}} 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:
 
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}
 
{{{imports}}}
 
 
|-
 
|-
{{{exports|}}}|
+
{{#if: {{{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;"}}} {{!}} Major exports:
+
{{!}} class="sidebar-label" {{!}} Function:
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} class="sidebar-value" {{!}}  
{{{exports}}}
+
{{{function}}}}}
 
|-
 
|-
{{{affiliation|}}}|
+
{{#if: {{{species|}}}|
{{!}} 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:
+
{{!}} class="sidebar-label" {{!}} Native species:
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #2B2B2B; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}}  
+
{{!}} class="sidebar-value" {{!}}  
{{{affiliation}}}
+
{{{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 148: 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 165: 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=
}}