Template:Planetinfo

From AndroWiki
(Difference between revisions)
Jump to: navigation, search
m
m
 
(41 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| cellpadding="2" style="float: right; width: 307px; background: #e3e3e3; margin-left: 1em; border-spacing: 1px;"
+
<includeonly>{| cellpadding="2" style="float: right; width: 280px; background: #e3e3e3; margin-left: 1em; border-spacing: 1px;"
{{#if: {{{image_name|}}} |  
+
{{ #if: {{{image_name|}}} |
<includeonly>|----- bgcolor="#FFFFFF"
+
{{!-}} bgcolor="#FFFFFF"  
! colspan="2"   | [[Image:{{{image_name}}}|center|200px]]</includeonly>}}
+
! colspan="2" {{!}} <center>[[Image:{{{image_name}}}|center|280px]]</center>
|-----
+
}}
! colspan="2"  | <center>Daten</center>
+
|-
{{#if: {{{planet_name|}}} |  
+
! colspan="2"  | <center>{{ #ifeq: {{{1}}} | destroyed | ''no current data available'' | Facts }}</center>
<includeonly>|</includeonly>----- bgcolor="#FFFFFF"
+
|- bgcolor="#FFFFFF"  
<includeonly>|</includeonly> Name <includeonly>||</includeonly> {{{planet_name}}}
+
| Name || {{ #if: {{{planet_name|}}} | {{{planet_name}}} | unknown }} {{ #ifeq: {{{1}}} | destroyed | '''(destroyed)''' | }}
}}<!--
+
|- bgcolor="#FFFFFF"
-->{{#if: {{{inhabitants|}}} |
+
| {{ #if: {{{system|}}} |
<includeonly>|----- bgcolor="#FFFFFF"
+
System {{!!}} {{ #ifexist: {{{system}}} | [[{{{system}}}]] | {{{system}}} }} |
| Inhabitants || {{{inhabitants}}}</includeonly>}}<!--
+
{{ #if: {{{location|}}}|  
-->{{#if: {{{location|}}}|<includeonly>|----- bgcolor="#FFFFFF"
+
Location {{!!}} {{ #ifexist: {{{location}}} | [[{{{location}}}]] | {{{location}}} }} |
| Location || {{{location}}}</includeonly>}}<!--
+
Location/System {{!!}} unknown
-->{{#if: {{{diameter|}}}|<includeonly>|----- bgcolor="#FFFFFF"
+
}} }}
| Diameter || {{{diameter}}}</includeonly>}}<!--
+
|- bgcolor="#FFFFFF"
-->{{#if: {{{water_area|}}}|<includeonly>|----- bgcolor="#FFFFFF"
+
| Inhabitants || {{ #if: {{{inhabitants|}}} | {{{inhabitants}}} | unknown }}
| Water surface area || {{{water_area}}}</includeonly>}}<!--
+
|- bgcolor="#FFFFFF"
-->{{#if: {{{climate|}}}|<includeonly>|----- bgcolor="#FFFFFF"
+
| Diameter || {{#if: {{{diameter_number|}}} |
| Climate || {{{climate}}}</includeonly>}}
+
{{#if: {{ #expr: {{{diameter_number}}} }} > 1000
 +
  | {{#expr: {{#expr: ({{{diameter_number}}} - {{{diameter_number}}} mod 1000) / 1000 }} round 0}},{{#expr: {{{diameter_number}}} -({{{diameter_number}}} - {{{diameter_number}}} mod 1000)}}
 +
  | {{#expr: {{{diameter_number}}} }} }} km <code>/</code> {{#if: {{ #expr: {{{diameter_number}}} / 1.610 }} > 1000
 +
  | {{#expr: {{#expr: ({{{diameter_number}}}  / 1.610 - ({{{diameter_number}}}  / 1.610) mod 1000) / 1000 }} round 0}},{{#expr: {{{diameter_number}}} / 1.610 -({{{diameter_number}}}  / 1.610 - ({{{diameter_number}}} / 1.610) mod 1000)}}
 +
  | {{#expr: {{{diameter_number}}} }} }} mi
 +
| {{ #if: {{{diameter|}}} | {{{diameter}}} | unknown }}  
 +
}}
 +
|- bgcolor="#FFFFFF"
 +
| Water surface area || {{ #if: {{{water_area|}}} | {{{water_area}}} | unknown }}
 +
|- bgcolor="#FFFFFF"
 +
| Climate || {{ #if: {{{climate|}}} | {{{climate}}} | unknown }}
 
|}
 
|}
 +
[[Category:Cosmic Objects]]
 +
[[Category:Planets]]
 +
[[de:{{{planet_name}}}]]</includeonly><noinclude>
 +
 +
==Usage==
 +
'''Universal (default)'''
 +
<pre>
 +
{{Planetinfo
 +
|image_name    ="Name of the image" (optional)
 +
|planet_name    ="Name of the planet"
 +
|system        ="Name of the planets planetary system"
 +
|location      =(will be invisible, if system is specified) "Name of Galaxy / Nebula"
 +
|inhabitants    ="Number of inhabitants"
 +
|diameter_number="Diameter in m as a number" OR  diameter ="Diameter in meters / miles" '
 +
|water_area    ="Percentage of water coverage"
 +
|climate        ="Climate"
 +
}}
 +
</pre>
 +
 +
'''Universal (destroyed)'''
 +
<pre>
 +
{{Planetinfo|destroyed
 +
|image_name    ="Name of the image" (optional)
 +
|planet_name    ="Name of the planet"
 +
|system        ="Name of the planets planetary system"
 +
|location      =(will be invisible, if system is specified) "Name of Galaxy / Nebula"
 +
|inhabitants    ="Number of inhabitants"
 +
|diameter_number="Diameter in m as a number" OR  diameter ="Diameter in meters / miles" '
 +
|water_area    ="Percentage of water coverage"
 +
|climate        ="Climate"
 +
}}
 +
</pre>
 +
 +
'''Example ([[Acheron]])'''
 +
<pre>
 +
{{Planetinfo
 +
|image_name    =Acheron.jpg
 +
|planet_name    =Acheron
 +
|system        =
 +
|location      =Andromeda Galaxy
 +
|inhabitants    =15,000
 +
|diameter_number=12400
 +
|water_area    =61%
 +
|climate        =semi-arctic to temperate
 +
}}
 +
</pre>
 +
 +
'''Example ([[Hephaistos IV]])'''
 +
<pre>
 +
{{Planetinfo|destroyed
 +
|image_name    =Hephaistos.jpg
 +
|planet_name    =Hephaistos IV
 +
|system        =Hephaistos System
 +
|inhabitants    =475 million (71% [[Nietzscheans]], 17% [[Human]], 10% [[Perseid]], 2% misc)
 +
|diameter_number=11890
 +
|water_area    =54%
 +
|climate        =Semi-arid to desert
 +
}}
 +
</pre>
 +
 +
[[Category:Templates]]
 +
[[de:Vorlage:Planeteninfo]]
 +
</noinclude>

Latest revision as of 12:29, 15 July 2007


Usage

Universal (default)

{{Planetinfo
|image_name     ="Name of the image" (optional)
|planet_name    ="Name of the planet"
|system         ="Name of the planets planetary system"
|location       =(will be invisible, if system is specified) "Name of Galaxy / Nebula"
|inhabitants    ="Number of inhabitants"
|diameter_number="Diameter in m as a number" OR  diameter ="Diameter in meters / miles" '
|water_area     ="Percentage of water coverage"
|climate        ="Climate"
}}

Universal (destroyed)

{{Planetinfo|destroyed
|image_name     ="Name of the image" (optional)
|planet_name    ="Name of the planet"
|system         ="Name of the planets planetary system"
|location       =(will be invisible, if system is specified) "Name of Galaxy / Nebula"
|inhabitants    ="Number of inhabitants"
|diameter_number="Diameter in m as a number" OR  diameter ="Diameter in meters / miles" '
|water_area     ="Percentage of water coverage"
|climate        ="Climate"
}}

Example (Acheron)

{{Planetinfo
|image_name     =Acheron.jpg
|planet_name    =Acheron
|system         =
|location       =Andromeda Galaxy
|inhabitants    =15,000
|diameter_number=12400
|water_area     =61%
|climate        =semi-arctic to temperate
}}

Example (Hephaistos IV)

{{Planetinfo|destroyed
|image_name     =Hephaistos.jpg
|planet_name    =Hephaistos IV
|system         =Hephaistos System
|inhabitants    =475 million (71% [[Nietzscheans]], 17% [[Human]], 10% [[Perseid]], 2% misc)
|diameter_number=11890
|water_area     =54%
|climate        =Semi-arid to desert
}}
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox
In other languages