Template:Planetinfo

(Difference between revisions)
Jump to: navigation, search
m (test)
m
Line 12: Line 12:
 
|----- bgcolor="#FFFFFF"
 
|----- bgcolor="#FFFFFF"
 
| Diameter || {{#if: {{{diameter|}}} | {{{diameter}}} |  
 
| Diameter || {{#if: {{{diameter|}}} | {{{diameter}}} |  
{{#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}}}}}} /  {{#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/1.610}} }} }}  
+
{{#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}}} }}}} /  {{#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/1.610}}} }} }}  
 
}}
 
}}
 
|----- bgcolor="#FFFFFF"
 
|----- bgcolor="#FFFFFF"

Revision as of 17:50, 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 "{". / Expression error: Unexpected < operator.,Expression error: Unrecognised punctuation character "{".
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"
|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