Template:Planetinfo
(Difference between revisions)
m |
m (test) |
||
Line 11: | Line 11: | ||
| Location || {{{location}}} | | Location || {{{location}}} | ||
|----- bgcolor="#FFFFFF" | |----- bgcolor="#FFFFFF" | ||
− | | 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}} }} }} | ||
+ | }} | ||
|----- bgcolor="#FFFFFF" | |----- bgcolor="#FFFFFF" | ||
| Water surface area || {{{water_area}}} | | Water surface area || {{{water_area}}} | ||
Line 22: | Line 24: | ||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
− | |||
− | |||
− | |||
==Usage== | ==Usage== |
Revision as of 17:42, 14 January 2007
[[Image:{{{image_name}}}|center|280px]] | |
---|---|
| |
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 }}