Difference between revisions of "Template:Planet Infobox"

From Discovery Wiki
Jump to navigationJump to search
(Undo revision 6121 by Nathrael (Talk))
Line 1: Line 1:
 
<noinclude><!--</noinclude>
 
<noinclude><!--</noinclude>
{| 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" style="text-align: center; font-size: 14px; background: #f6f6f6;"|'''{{{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''
 +
}}
 
|-
 
|-
|style="vertical-align: top; width: 30%; background: #f6f6f6;" | '''Location'''
+
|style="background: #f6f6f6;" | '''Owner'''
|style="padding-right: 1em;" |  
+
|style="padding-right: 1em;" | {{#if: {{{owner|}}}
* '''{{{system|''unknown''}}}'''
+
| {{{owner}}}
* sector {{{sector|''unknown''}}}
+
| ''unknown''
* {{{location|---}}}
+
}}
 
|-
 
|-
|style="vertical-align: top; background: #f6f6f6;" | '''Owner'''
+
|style="width: 70px; background: #f6f6f6;" | '''Location'''
|style="padding-right: 1em;" | {{{owner|''unknown''}}}
+
|style="padding-right: 1em; line-height: 17px;" | {{#if: {{{system|}}}{{{sector|}}}{{{house|}}}
 +
| {{#if: {{{sector|}}} | '''{{{sector}}}''', }} {{#if: {{{system|}}} | {{{system}}} | ''unknown'' }}{{#if: {{{house|}}} | <br>''{{{house}}}'' }}
 +
| ''unknown''
 +
}}
 
|-
 
|-
|style="vertical-align: top; background: #f6f6f6;" | '''Population'''
+
| colspan="2" style="vertical-align: top; font-weight: bold; text-align: center;" | Technical information
|style="padding-right: 1em;" | {{{population|''unknown''}}}
 
 
|-
 
|-
|style="vertical-align: top; background: #f6f6f6;" | '''Docking'''
+
|style="background: #f6f6f6;" | '''Population'''
|style="padding-right: 1em;" | {{{docking|''unknown''}}}
+
|style="padding-right: 1em;" | {{#if: {{{population|}}}
 +
| {{ #ifeq: {{{population}}} | CLASSIFIED | <span style="color: #dd0000;">''CLASSIFIED''</span> | {{{population}}} }}
 +
| ''unknown''
 +
}}
 
|-
 
|-
|style="vertical-align: top; background: #f6f6f6;" | '''Terrain'''
+
|style="background: #f6f6f6;" | '''Docking'''
|style="padding-right: 1em;" | {{{terrain|''unknown''}}}
+
|style="padding-right: 1em;" | {{#if: {{{docking|}}}
 +
| {{ #ifeq: {{{docking}}} | CLASSIFIED | <span style="color: #dd0000;">''CLASSIFIED''</span> | {{{docking}}} }}
 +
| ''unknown''
 +
}}
 
|-
 
|-
|style="vertical-align: top; background: #f6f6f6;" | '''Diameter'''
+
|style="background: #f6f6f6;" | '''Terrain'''
|style="padding-right: 1em;" | {{{diameter|''unknown''}}}
+
|style="padding-right: 1em;" | {{#if: {{{terrain|}}}
 +
| {{ #ifeq: {{{terrain}}} | CLASSIFIED | <span style="color: #dd0000;">''CLASSIFIED''</span> | {{{terrain}}} }}
 +
| ''unknown''
 +
}}
 
|-
 
|-
|style="vertical-align: top; background: #f6f6f6;" | '''Mass'''
+
|style="background: #f6f6f6;" | '''Diameter'''
|style="padding-right: 1em;" | {{{mass|''unknown''}}}
+
|style="padding-right: 1em;" | {{#if: {{{diameter|}}}
 +
| {{ #ifeq: {{{diameter}}} | CLASSIFIED | <span style="color: #dd0000;">''CLASSIFIED''</span> | {{{diameter}}} }}
 +
| ''unknown''
 +
}}
 
|-
 
|-
|style="vertical-align: top; background: #f6f6f6;" | '''Temperature'''
+
|style="background: #f6f6f6;" | '''Mass'''
|style="padding-right: 1em;" | {{{temperature|''unknown''}}}
+
|style="padding-right: 1em;" | {{#if: {{{mass|}}}
 +
| {{ #ifeq: {{{mass}}} | CLASSIFIED | <span style="color: #dd0000;">''CLASSIFIED''</span> | {{{mass}}} }}
 +
| ''unknown''
 +
}}
 
|-
 
|-
|style="vertical-align: top; background: #f6f6f6;" | '''Escape Velocity'''
+
|style="background: #f6f6f6;" | '''Temperature'''
|style="padding-right: 1em;" | {{{ev|''unknown''}}}
+
|style="padding-right: 1em;" | {{#if: {{{temperature|}}}
 +
| {{ #ifeq: {{{temperature}}} | CLASSIFIED | <span style="color: #dd0000;">''CLASSIFIED''</span> | {{{temperature}}} }}
 +
| ''unknown''
 +
}}
 +
|-
 +
|style="background: #f6f6f6;" | '''Escape velocity'''
 +
|style="padding-right: 1em;" | {{#if: {{{escape_velocity|}}}
 +
| {{ #ifeq: {{{temperature}}} | CLASSIFIED | <span style="color: #dd0000;">''CLASSIFIED''</span> | {{{temperature}}} }}
 +
| ''unknown''
 +
}}
 
|}
 
|}
 +
[[Category: Bases]]
 +
[[Category: Planets]]
 +
{{#if: {{{image|}}} | | [[Category: Pages without profile images]]}}
 
<noinclude>
 
<noinclude>
 
     *  Diameter: 12,753 Km
 
     *  Diameter: 12,753 Km
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 | Liberty}}
|sector = ??
+
| system = [[New York]]
|location = [[Liberty]]
+
| sector = C/D4
|owner = [[Libertonian Government]]
+
| house =  
|population =
+
| population = ~300 million
|docking = Yes
+
| docking = Yes
|terrain = Terrestrial
+
| terrain = Terrestrial
|diameter = 12,753
+
| diameter = 12,753
|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 = 11.27 km/sec
 
}}</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 | Liberty}}
|sector = ??
+
| system = [[New York]]
|location = [[Liberty]]
+
| sector = C/D4
|owner = [[Libertonian Government]]
+
| house =  
|population =
+
| population = ~300 million
|docking = Yes
+
| docking = Yes
|terrain = Terrestrial
+
| terrain = Terrestrial
|diameter = 12,753
+
| diameter = 12,753
|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 = 11.27 km/sec
 
}}
 
}}
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 09:42, 4 December 2008

Usage

{{Planet Infobox
| name = Manhattan
| image = manhattan.jpg
| owner = {{House Link | Liberty}}
| system = [[New York]]
| sector = C/D4
| house = 
| population = ~300 million
| docking = Yes
| terrain = Terrestrial
| diameter = 12,753
| mass = 5,98 x 10e24 kg
| temperature = -46°C to 43°C
| escape_velocity = 11.27 km/sec
}}

Result

Manhattan
Planet Manhattan.jpg
Owner Flag-liberty.png Liberty
Location C/D4, New York
Technical information
Population ~300 million
Docking Yes
Terrain Terrestrial
Diameter 12,753
Mass 5,98 x 10e24 kg
Temperature -46°C to 43°C
Escape velocity -46°C to 43°C