Template:Planetinfo

(Difference between revisions)
Jump to: navigation, search
m
m
Line 14: Line 14:
 
{{#if: {{ #expr: {{{diameter_number}}} }} > 1000  
 
{{#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: {{#expr: ({{{diameter_number}}} - {{{diameter_number}}} mod 1000) / 1000 }} round 0}},{{#expr: {{{diameter_number}}} -({{{diameter_number}}} - {{{diameter_number}}} mod 1000)}}
| {{#expr: {{{diameter_number}}} }} }} <code>/</code> {{#if: {{ #expr: {{{diameter_number}}} / 1.610 }} > 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: {{#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}}} }} }}
+
| {{#expr: {{{diameter_number}}} }} }} mi
 
}}
 
}}
 
|----- bgcolor="#FFFFFF"
 
|----- bgcolor="#FFFFFF"
Line 37: Line 37:
 
|inhabitants ="Number of inhabitants"
 
|inhabitants ="Number of inhabitants"
 
|location    ="Name of Galaxy / Nebula"
 
|location    ="Name of Galaxy / Nebula"
|diameter    ="Diameter in meters / miles"
+
|diameter    ="Diameter in meters / miles" '''''OR''''' diameter_number = "Diameter in m as a number"
 
|water_area  ="Percentage of water coverage"
 
|water_area  ="Percentage of water coverage"
 
|climate    ="Climate"
 
|climate    ="Climate"

Revision as of 18:08, 14 January 2007

[[Image:{{{image_name}}}|center|280px]]
Facts
Name {{{planet_name}}}
Inhabitants {{{inhabitants}}}
Location {{{location}}}
Diameter Expression error: Unexpected < operator.,Expression error: Unrecognised punctuation character "{". km / Expression error: Unexpected < operator.,Expression error: Unrecognised punctuation character "{". mi
Water surface area {{{water_area}}}
Climate {{{climate}}}


Usage

Universal

{{Planetinfo
|image_name  ="Name of the image"
|planet_name ="Name of the planet"
|inhabitants ="Number of inhabitants"
|location    ="Name of Galaxy / Nebula"
|diameter    ="Diameter in meters / miles" '''''OR''''' diameter_number = "Diameter in m as a number"
|water_area  ="Percentage of water coverage"
|climate     ="Climate"
}}

Example (Acheron)

{{Planetinfo
|image_name  =Acheron.jpg
|planet_name =Acheron
|inhabitants =15,000
|location    =Andromeda Galaxy
|diameter    =12,400 km / 7,700 mi
|water_area  =61%
|climate     =semi-arctic to temperate
}}
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox
In other languages