Difference between revisions of "Template:Planet Infobox"

From Discovery Wiki
Jump to navigationJump to search
(Undo revision 6121 by Nathrael (Talk))
 
(22 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<noinclude><!--</noinclude>
+
<noinclude>{{Style Guide navigation}}<!--</noinclude>{{#if: {{{image|}}}||{{Stub|This Article needs a Picture for the '''Planet'''. This is an automatically generated message that will disappear when an image is used.}}}}
{| class="infobox bordered" style="float: right; margin-left: 1em; margin-bottom: 10px; width: 300px; border: 1px solid #dddddd;" cellpadding="3"
+
{| class="infobox bordered" style="float: right; margin-left: 1em; margin-bottom: 10px; width: 250px; font-size: 11px; line-height: 14px; border: 1px solid #dddddd;" cellpadding="3"
 
|-
 
|-
| colspan="2" style="text-align: center; font-size: larger; background: #f6f6f6;"|'''{{{name}}}'''
+
| colspan="2" class="infobox-name"|'''{{{name}}}'''
 
|-
 
|-
| colspan="2" style="padding: 4px; text-align: center;"|[[Image:{{{image|noimage.png}}}|center|250px]]
+
| colspan="2" style="padding: 0px; text-align: center;"|{{#if: {{{image|}}}
 +
| [[image:{{{image}}}|center|244px]]
 +
| ''No image''
 +
}}{{#ifeq: {{{docking}}} | No |{{#if:{{{owner|}}}|<br />
 +
{{!}}-
 +
{{!}}class="infobox-data-title" {{!}} '''Owner'''
 +
{{!}}style="padding-right: 1em;" {{!}} {{{owner}}} | }}|<br />
 +
{{!}}-
 +
{{!}}class="infobox-data-title" {{!}} '''Owner'''
 +
{{!}}style="padding-right: 1em;" {{!}} {{#if: {{{owner|}}} | {{{owner}}} | ''unknown'' }} }}
 
|-
 
|-
|style="vertical-align: top; width: 30%; background: #f6f6f6;" | '''Location'''
+
|class="infobox-data-title" | '''Location'''
|style="padding-right: 1em;" |  
+
|style="padding-right: 1em; line-height: 17px;" | {{#if: {{{system|}}}{{{sector|}}}{{{house|}}}
* '''{{{system|''unknown''}}}'''
+
| {{#if: {{{sector|}}} | '''{{{sector}}}''', }} {{#if: {{{system|}}} | {{{system}}} | ''unknown'' }}{{#if: {{{house|}}} | <br>''{{{house}}}'' }}
* sector {{{sector|''unknown''}}}
+
| ''unknown''
* {{{location|---}}}
+
}}
 
|-
 
|-
|style="vertical-align: top; background: #f6f6f6;" | '''Owner'''
+
| colspan="2" class="infobox-section" | Technical information
|style="padding-right: 1em;" | {{{owner|''unknown''}}}
+
{{#ifeq: {{{docking}}} | No | |{{!}}-
 +
{{!}}class="infobox-data-title" {{!}} '''Population'''
 +
{{!}}style="padding-right: 1em;" {{!}} {{#if: {{{population|}}}
 +
| {{ #ifeq: {{{population}}} | CLASSIFIED | <span style="color: #dd0000;">''CLASSIFIED''</span> | {{{population}}} }}
 +
| ''unknown''
 +
}}}}
 
|-
 
|-
|style="vertical-align: top; background: #f6f6f6;" | '''Population'''
+
|class="infobox-data-title" | '''Docking'''
|style="padding-right: 1em;" | {{{population|''unknown''}}}
+
|style="padding-right: 1em;" | {{#if: {{{docking|}}}
 +
| {{ #ifeq: {{{docking}}} | CLASSIFIED | <span style="color: #dd0000;">''CLASSIFIED''</span> | {{{docking}}} }}
 +
| ''unknown''
 +
}}
 
|-
 
|-
|style="vertical-align: top; background: #f6f6f6;" | '''Docking'''
+
|class="infobox-data-title" | '''Terrain'''
|style="padding-right: 1em;" | {{{docking|''unknown''}}}
+
|style="padding-right: 1em;" | {{#if: {{{terrain|}}}
 +
| {{ #ifeq: {{{terrain}}} | CLASSIFIED | <span style="color: #dd0000;">''CLASSIFIED''</span> | {{{terrain}}} }}
 +
| ''unknown''
 +
}}
 
|-
 
|-
|style="vertical-align: top; background: #f6f6f6;" | '''Terrain'''
+
|class="infobox-data-title" | '''Diameter'''
|style="padding-right: 1em;" | {{{terrain|''unknown''}}}
+
|style="padding-right: 1em;" | {{#if: {{{diameter|}}}
 +
| {{ #ifeq: {{{diameter}}} | CLASSIFIED | <span style="color: #dd0000;">''CLASSIFIED''</span> | {{{diameter}}} }}
 +
| ''unknown''
 +
}}
 
|-
 
|-
|style="vertical-align: top; background: #f6f6f6;" | '''Diameter'''
+
|class="infobox-data-title" | '''Mass'''
|style="padding-right: 1em;" | {{{diameter|''unknown''}}}
+
|style="padding-right: 1em;" | {{#if: {{{mass|}}}
 +
| {{ #ifeq: {{{mass}}} | CLASSIFIED | <span style="color: #dd0000;">''CLASSIFIED''</span> | {{{mass}}} }}
 +
| ''unknown''
 +
}}
 
|-
 
|-
|style="vertical-align: top; background: #f6f6f6;" | '''Mass'''
+
|class="infobox-data-title" | '''Temperature'''
|style="padding-right: 1em;" | {{{mass|''unknown''}}}
+
|style="padding-right: 1em;" | {{#if: {{{temperature|}}}
 +
| {{ #ifeq: {{{temperature}}} | CLASSIFIED | <span style="color: #dd0000;">''CLASSIFIED''</span> | {{{temperature}}} }}
 +
| ''unknown''
 +
}}
 
|-
 
|-
|style="vertical-align: top; background: #f6f6f6;" | '''Temperature'''
+
|class="infobox-data-title" | '''Escape velocity'''
|style="padding-right: 1em;" | {{{temperature|''unknown''}}}
+
|style="padding-right: 1em;" | {{#if: {{{escape_velocity|}}}
|-
+
| {{ #ifeq: {{{escape_velocity}}} | CLASSIFIED | <span style="color: #dd0000;">''CLASSIFIED''</span> | {{{escape_velocity}}} }}
|style="vertical-align: top; background: #f6f6f6;" | '''Escape Velocity'''
+
| ''unknown''
|style="padding-right: 1em;" | {{{ev|''unknown''}}}
+
}}
 
|}
 
|}
<noinclude>
+
{{#ifeq: {{{docking}}} | No |
 +
[[Category: Uninhabited Planets]] |
 +
[[Category: Bases]]
 +
[[Category: Planets]]}}{{#if: {{{image|}}} | |<br />[[Category: Planets without profile images]]}}<noinclude>
 
     *  Diameter: 12,753 Km
 
     *  Diameter: 12,753 Km
 
     * Mass: 5.98 x 10e24 Kg
 
     * Mass: 5.98 x 10e24 Kg
Line 44: Line 76:
 
-->
 
-->
 
==Usage==
 
==Usage==
<pre><nowiki>{{Planet_Infobox
+
<pre><nowiki>{{Planet Infobox
|name = Manhattan
+
| name = Manhattan
|image = manhattan.jpg
+
| image = manhattan.jpg
|system = [[New York]]
+
| owner = {{House Link | Rheinland}}
|sector = ??
+
| system = [[New Berlin]]
|location = [[Liberty]]
+
| sector = C/D4
|owner = [[Libertonian Government]]
+
| house =  
|population =
+
| population = At least 100
|docking = Yes
+
| docking = No
|terrain = Terrestrial
+
| terrain = None
|diameter = 12,753
+
| diameter = 1.2 Zelots
|mass = 5,98 x 10e24 kg
+
| mass = 5,98 x 10e24 kg
|temperature = -46°C to 43°C
+
| temperature = -46°C to 43°C
|ev = 11.27 km/sec
+
| escape_velocity = 60 mph
 
}}</nowiki></pre>
 
}}</nowiki></pre>
 +
 
==Result==
 
==Result==
{{Planet_Infobox
+
{{Planet Infobox
|name = Manhattan
+
| name = Manhattan
|image = manhattan.jpg
+
| image = manhattan.jpg
|system = [[New York]]
+
| owner = {{House Link | Rheinland}}
|sector = ??
+
| system = [[New Berlin]]
|location = [[Liberty]]
+
| sector = C/D4
|owner = [[Libertonian Government]]
+
| house =  
|population =
+
| population = At least 100
|docking = Yes
+
| docking = No
|terrain = Terrestrial
+
| terrain = None
|diameter = 12,753
+
| diameter = 1.2 Zelots
|mass = 5,98 x 10e24 kg
+
| mass = 5,98 x 10e24 kg
|temperature = -46°C to 43°C
+
| temperature = -46°C to 43°C
|ev = 11.27 km/sec
+
| escape_velocity = 60 mph
 
}}
 
}}
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 14:26, 8 March 2013

Other Templates available to read:

The Basics  • Ships  • Factions  • Bases  • Planets  • Systems  • Commodities


Usage

{{Planet Infobox
| name = Manhattan
| image = manhattan.jpg
| owner = {{House Link | Rheinland}}
| system = [[New Berlin]]
| sector = C/D4
| house = 
| population = At least 100
| docking = No
| terrain = None
| diameter = 1.2 Zelots
| mass = 5,98 x 10e24 kg
| temperature = -46°C to 43°C
| escape_velocity = 60 mph
}}

Result

Manhattan
Planet Manhattan.jpg

Owner Flag-rheinland.png Rheinland
Location C/D4, New Berlin
Technical information
Docking No
Terrain None
Diameter 1.2 Zelots
Mass 5,98 x 10e24 kg
Temperature -46°C to 43°C
Escape velocity 60 mph