Template:Planetinfo
From AndroWiki
(Difference between revisions)
(Category:Planets) |
m |
||
(29 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {| cellpadding="2" style="float: right; width: | + | <includeonly>{| cellpadding="2" style="float: right; width: 280px; background: #e3e3e3; margin-left: 1em; border-spacing: 1px;" |
− | |- | + | {{ #if: {{{image_name|}}} | |
− | ! colspan="2" | + | {{!-}} bgcolor="#FFFFFF" |
− | | | + | ! colspan="2" {{!}} <center>[[Image:{{{image_name}}}|center|280px]]</center> |
− | ! colspan="2" | <center>Facts</center> | + | }} |
− | | | + | |- |
− | | Name || {{{planet_name}}} | + | ! 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" |
− | | | + | | {{ #if: {{{system|}}} | |
− | | | + | System {{!!}} {{ #ifexist: {{{system}}} | [[{{{system}}}]] | {{{system}}} }} | |
− | | Diameter || {{{ | + | {{ #if: {{{location|}}}| |
− | |----- bgcolor="#FFFFFF" | + | Location {{!!}} {{ #ifexist: {{{location}}} | [[{{{location}}}]] | {{{location}}} }} | |
− | | Water surface area || {{{water_area}}} | + | Location/System {{!!}} unknown |
− | | | + | }} }} |
− | | Climate || {{{climate}}} | + | |- bgcolor="#FFFFFF" |
+ | | Inhabitants || {{ #if: {{{inhabitants|}}} | {{{inhabitants}}} | unknown }} | ||
+ | |- bgcolor="#FFFFFF" | ||
+ | | 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" | ||
+ | | Water surface area || {{ #if: {{{water_area|}}} | {{{water_area}}} | unknown }} | ||
+ | |- bgcolor="#FFFFFF" | ||
+ | | Climate || {{ #if: {{{climate|}}} | {{{climate}}} | unknown }} | ||
|} | |} | ||
+ | [[Category:Cosmic Objects]] | ||
+ | [[Category:Planets]] | ||
+ | [[de:{{{planet_name}}}]]</includeonly><noinclude> | ||
− | < | + | ==Usage== |
+ | '''Universal (default)''' | ||
+ | <pre> | ||
+ | {{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" | ||
+ | }} | ||
+ | </pre> | ||
+ | |||
+ | '''Universal (destroyed)''' | ||
+ | <pre> | ||
+ | {{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" | ||
+ | }} | ||
+ | </pre> | ||
+ | |||
+ | '''Example ([[Acheron]])''' | ||
+ | <pre> | ||
+ | {{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 | ||
+ | }} | ||
+ | </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]] | ||
+ | [[de:Vorlage:Planeteninfo]] | ||
+ | </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 }}