Template:Planetinfo
(Difference between revisions)
m |
(added some features) |
||
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" | |- bgcolor="#FFFFFF" | ||
− | | | + | | Inhabitants || {{ #if: {{{inhabitants|}}} | {{{inhabitants}}} | unknown }} |
|- bgcolor="#FFFFFF" | |- bgcolor="#FFFFFF" | ||
− | | | + | | Location || {{ #if: {{{location|}}} | {{{location}}} | unknown }} |
|- bgcolor="#FFFFFF" | |- bgcolor="#FFFFFF" | ||
− | + | | Diameter || {{ #if: {{{diameter|}}} | {{{diameter}}} | unknown }} | |
− | + | ||
− | | Diameter || {{#if: {{{diameter|}}} | {{{diameter}}} | | + | |
{{#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)}} | ||
Line 21: | Line 22: | ||
}} | }} | ||
|----- bgcolor="#FFFFFF" | |----- bgcolor="#FFFFFF" | ||
− | | Water surface area || {{{water_area}}} | + | | Water surface area || {{ #if: {{{water_area|}}} | {{{water_area}}} | unknown }} |
|----- bgcolor="#FFFFFF" | |----- bgcolor="#FFFFFF" | ||
− | | Climate || {{{climate}}} | + | | Climate || {{ #if: {{{climate|}}} | {{{climate}}} | unknown }} |
|} | |} | ||
Line 43: | Line 44: | ||
==Usage== | ==Usage== | ||
− | '''Universal''' | + | '''Universal (default)''' |
<pre> | <pre> | ||
{{Planetinfo | {{Planetinfo | ||
− | |image_name | + | |image_name ="Name of the image" (optional) |
− | |planet_name ="Name of the planet" | + | |planet_name ="Name of the planet" |
− | |inhabitants ="Number of inhabitants" | + | |inhabitants ="Number of inhabitants" |
− | |location | + | |location ="Name of Galaxy / Nebula" |
− | |diameter | + | |diameter_number="Diameter in m as a number" OR diameter ="Diameter in meters / miles" ' |
− | |water_area | + | |water_area ="Percentage of water coverage" |
− | |climate | + | |climate ="Climate" |
+ | }} | ||
+ | </pre> | ||
+ | |||
+ | '''Universal (destroyed)''' | ||
+ | <pre> | ||
+ | {{Planetinfo|destroyed | ||
+ | |image_name ="Name of the image" (optional) | ||
+ | |planet_name ="Name of the planet" | ||
+ | |inhabitants ="Number of inhabitants" | ||
+ | |location ="Name of Galaxy / Nebula" | ||
+ | |diameter_number="Diameter in m as a number" OR diameter ="Diameter in meters / miles" ' | ||
+ | |water_area ="Percentage of water coverage" | ||
+ | |climate ="Climate" | ||
}} | }} | ||
</pre> | </pre> | ||
Line 59: | Line 73: | ||
<pre> | <pre> | ||
{{Planetinfo | {{Planetinfo | ||
− | |image_name | + | |image_name =Acheron.jpg |
− | |planet_name =Acheron | + | |planet_name =Acheron |
− | |inhabitants =15,000 | + | |inhabitants =15,000 |
− | |location | + | |location =Andromeda Galaxy |
− | + | ||
|diameter_number=12400 | |diameter_number=12400 | ||
− | |water_area | + | |water_area =61% |
− | |climate | + | |climate =semi-arctic to temperate |
}} | }} | ||
</pre> | </pre> | ||
+ | |||
+ | '''Example ([[Samsarra]])''' | ||
+ | <pre> | ||
+ | {{Planetinfo|destroyed | ||
+ | |image_name =Samsarra.jpg | ||
+ | |planet_name =Samsarra | ||
+ | |inhabitants = | ||
+ | |location = | ||
+ | |diameter_number= | ||
+ | |water_area = | ||
+ | |climate = | ||
+ | }} | ||
+ | </pre> | ||
+ | |||
[[Category:Templates]] | [[Category:Templates]] | ||
[[de:Vorlage:Planeteninfo]] | [[de:Vorlage:Planeteninfo]] | ||
</noinclude> | </noinclude> |
Revision as of 15:28, 20 April 2007
| |
---|---|
| |
Name | Acheron |
Location | Andromeda Galaxy |
Inhabitants | 15,000 |
Diameter | 12,400 km / 7,701 mi
|
Water surface area | 61% |
Climate | semi-arctic to temperate |
Usage
Universal (default)
{{Planetinfo |image_name ="Name of the image" (optional) |planet_name ="Name of the planet" |inhabitants ="Number of inhabitants" |location ="Name of Galaxy / Nebula" |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" |inhabitants ="Number of inhabitants" |location ="Name of Galaxy / Nebula" |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 |inhabitants =15,000 |location =Andromeda Galaxy |diameter_number=12400 |water_area =61% |climate =semi-arctic to temperate }}
Example (Samsarra)
{{Planetinfo|destroyed |image_name =Samsarra.jpg |planet_name =Samsarra |inhabitants = |location = |diameter_number= |water_area = |climate = }}