Template:Planetinfo

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