Template:Planetinfo

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