YellowWarningTriangle.png This wiki is closed in favour of the new wiki. Information shown is likely to be very out of date.

Difference between revisions of "Template:Base Infobox"

From Discovery Wiki
Jump to navigationJump to search
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: 270px; 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|264px]]
 +
| ''No image''
 +
}}
 
|-
 
|-
|style="vertical-align: top; width: 30%; background: #f6f6f6;" | '''Location'''
+
|style="vertical-align: top; background: #f6f6f6;" | '''Type'''
|style="padding-right: 1em;" |  
+
|style="padding-right: 1em;" | {{#if: {{{class|}}} | ''{{{class}}}'' class }} {{#switch: {{{type}}}
* '''{{{system|''unknown''}}}'''
+
| ASTEROID_BASE = Asteroid base
* Sector {{{sector|''unknown''}}}
+
| STATION = Station
* {{{location|---}}}
+
| SHIPYARD = Shipyard
 +
| FREEPORT = Freeport
 +
| BATTLESHIP = Battleship
 +
}}{{#if: {{{class|}}}{{{type|}}} |  | <span style="color: #990000;">''unknown''</span> }}  
 
|-
 
|-
 
|style="vertical-align: top; background: #f6f6f6;" | '''Owner'''
 
|style="vertical-align: top; background: #f6f6f6;" | '''Owner'''
|style="padding-right: 1em;" | {{{owner|''unknown''}}}
+
|style="padding-right: 1em;" | {{#if: {{{owner|}}}
 +
| {{{owner}}}
 +
| ''unknown''
 +
}}
 +
|-
 +
|style="vertical-align: top; width: 30%; background: #f6f6f6;" | '''Location'''
 +
|style="padding-right: 1em;" | {{#if: {{{system|}}}{{{sector|}}}{{{location|}}}
 +
| {{#if: {{{sector|}}} | {{{sector}}}, }} {{#if: {{{system|}}} | {{{system}}} | ''unknown'' }}
 +
{{#if: {{{location|}}} | <br>{{{location}}} }}
 +
| ''unknown''
 +
}}
 
|-
 
|-
|style="vertical-align: top; background: #f6f6f6;" | '''Type'''
+
| colspan="2" style="vertical-align: top; font-weight: bold; text-align: center;" | Technical information
|style="padding-right: 1em;" | {{{type|''unknown''}}}
 
 
|-
 
|-
 
|style="vertical-align: top; background: #f6f6f6;" | '''Gravity'''
 
|style="vertical-align: top; background: #f6f6f6;" | '''Gravity'''
|style="padding-right: 1em;" | {{{gravity|''unknown''}}}
+
|style="padding-right: 1em;" | {{#if: {{{gravity|}}}
 +
| {{ #ifeq: {{{gravity}}} | CLASSIFIED | <span style="color: #dd0000;">''CLASSIFIED''</span> | {{{gravity}}} }}
 +
| ''unknown''
 +
}}
 
|-
 
|-
 
|style="vertical-align: top; background: #f6f6f6;" | '''Docking'''
 
|style="vertical-align: top; background: #f6f6f6;" | '''Docking'''
|style="padding-right: 1em;" | {{{docking|''unknown''}}}
+
|style="padding-right: 1em;" | {{#if: {{{docking|}}}
 +
| {{ #ifeq: {{{docking}}} | CLASSIFIED | <span style="color: #dd0000;">''CLASSIFIED''</span> | {{{docking}}} }}
 +
| ''unknown''
 +
}}
 
|-
 
|-
 
|style="vertical-align: top; background: #f6f6f6;" | '''Amenities'''
 
|style="vertical-align: top; background: #f6f6f6;" | '''Amenities'''
|style="padding-right: 1em;" | {{{amenities|''unknown''}}}
+
|style="padding-right: 1em;" | {{#if: {{{amenities|}}}
 +
| {{ #ifeq: {{{amenities}}} | CLASSIFIED | <span style="color: #dd0000;">''CLASSIFIED''</span> | {{{amenities}}} }}
 +
| ''unknown''
 +
}}
 
|-
 
|-
 
|style="vertical-align: top; background: #f6f6f6;" | '''Population'''
 
|style="vertical-align: top; background: #f6f6f6;" | '''Population'''
|style="padding-right: 1em;" | {{{population|''unknown''}}}
+
|style="padding-right: 1em;" | {{#if: {{{population|}}}
 +
| {{ #ifeq: {{{population}}} | CLASSIFIED | <span style="color: #dd0000;">''CLASSIFIED''</span> | {{{population}}} }}
 +
| ''unknown''
 +
}}
 
|}
 
|}
 +
 +
[[Category: Bases]]
 +
{{#switch: {{{type}}}
 +
| ASTEROID_BASE = [[Category: Asteroid bases]]
 +
| STATION = [[Category: Stations]]
 +
| SHIPYARD = [[Category: Shipyards]]
 +
| FREEPORT = [[Category: Freeports]]
 +
| BATTLESHIP = [[Category: Stationary battleships]]
 +
| #default = [[Category:Uncategorised bases]]
 +
}}
 +
{{#if: {{{image|}}} | | [[Category: Pages without profile images]]}}
 +
 
<noinclude>
 
<noinclude>
 
-->
 
-->
 
==Usage==
 
==Usage==
<pre><nowiki>{{Base_Infobox
+
<pre><nowiki>{{Base Infobox
|name = Gas Miner Naha
+
| name = Gas Miner Naha
|image = naha.jpg
+
| image = naha.jpg
|system = [[Sigma-13]]
+
| class = Nostromo
|sector = 4D
+
| type = STATION
|location = [[Border Worlds]]
+
| system = [[Sigma-13]]
|owner = [[Gas Miners Guild]]
+
| sector = 4D
|type = ''Nostromo'' class station
+
| location = [[Border Worlds]]
|gravity = Limited
+
| owner = [[Gas Miners Guild]]
|docking = Yes
+
| gravity = Limited
|amenities = Limited
+
| docking = Yes
|population = 400
+
| amenities = Limited
 +
| population = 400
 
}}</nowiki></pre>
 
}}</nowiki></pre>
 
==Result==
 
==Result==
Line 60: Line 100:
 
|population = 400
 
|population = 400
 
}}
 
}}
 
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 18:25, 3 December 2008

Usage

{{Base Infobox
| name = Gas Miner Naha
| image = naha.jpg
| class = Nostromo
| type = STATION
| system = [[Sigma-13]]
| sector = 4D
| location = [[Border Worlds]]
| owner = [[Gas Miners Guild]]
| gravity = Limited
| docking = Yes
| amenities = Limited
| population = 400
}}

Result

Gas Miner Naha
Type
Owner Gas Miners Guild
Location 4D, Sigma-13


Border Worlds

Technical information
Gravity Limited
Docking Yes
Amenities Limited
Population 400