Difference between revisions of "Template:Base Infobox"

From Discovery Wiki
Jump to navigationJump to search
Line 9: Line 9:
 
}}
 
}}
 
|-
 
|-
|style="vertical-align: top; background: #f6f6f6;" | '''Type'''
+
|style="background: #f6f6f6;" | '''Type'''
 
|style="padding-right: 1em;" | {{#if: {{{class|}}} | ''{{{class}}}'' class {{#switch: {{{type}}}
 
|style="padding-right: 1em;" | {{#if: {{{class|}}} | ''{{{class}}}'' class {{#switch: {{{type}}}
 
| ASTEROID_BASE = asteroid base
 
| ASTEROID_BASE = asteroid base
Line 24: Line 24:
 
}} }}{{#if: {{{class|}}}{{{type|}}} |  | <span style="color: #990000;">''unknown''</span> }}  
 
}} }}{{#if: {{{class|}}}{{{type|}}} |  | <span style="color: #990000;">''unknown''</span> }}  
 
|-
 
|-
|style="vertical-align: top; background: #f6f6f6;" | '''Owner'''
+
|style="background: #f6f6f6;" | '''Owner'''
 
|style="padding-right: 1em;" | {{#if: {{{owner|}}}
 
|style="padding-right: 1em;" | {{#if: {{{owner|}}}
 
| {{{owner}}}
 
| {{{owner}}}
Line 30: Line 30:
 
}}
 
}}
 
|-
 
|-
|style="vertical-align: top; width: 30%; background: #f6f6f6;" | '''Location'''
+
|style="width: 80px; background: #f6f6f6;" | '''Location'''
 
|style="padding-right: 1em;" | {{#if: {{{system|}}}{{{sector|}}}{{{house|}}}
 
|style="padding-right: 1em;" | {{#if: {{{system|}}}{{{sector|}}}{{{house|}}}
 
| {{#if: {{{sector|}}} | '''{{{sector}}}''', }} {{#if: {{{system|}}} | {{{system}}} | ''unknown'' }}{{#if: {{{house|}}} | <br>''{{{house}}}'' }}
 
| {{#if: {{{sector|}}} | '''{{{sector}}}''', }} {{#if: {{{system|}}} | {{{system}}} | ''unknown'' }}{{#if: {{{house|}}} | <br>''{{{house}}}'' }}
Line 38: Line 38:
 
| colspan="2" style="vertical-align: top; font-weight: bold; text-align: center;" | Technical information
 
| colspan="2" style="vertical-align: top; font-weight: bold; text-align: center;" | Technical information
 
|-
 
|-
|style="vertical-align: top; background: #f6f6f6;" | '''Gravity'''
+
|style="background: #f6f6f6;" | '''Gravity'''
 
|style="padding-right: 1em;" | {{#if: {{{gravity|}}}
 
|style="padding-right: 1em;" | {{#if: {{{gravity|}}}
 
| {{ #ifeq: {{{gravity}}} | CLASSIFIED | <span style="color: #dd0000;">''CLASSIFIED''</span> | {{{gravity}}} }}
 
| {{ #ifeq: {{{gravity}}} | CLASSIFIED | <span style="color: #dd0000;">''CLASSIFIED''</span> | {{{gravity}}} }}
Line 44: Line 44:
 
}}
 
}}
 
|-
 
|-
|style="vertical-align: top; background: #f6f6f6;" | '''Docking'''
+
|style="background: #f6f6f6;" | '''Docking'''
 
|style="padding-right: 1em;" | {{#if: {{{docking|}}}
 
|style="padding-right: 1em;" | {{#if: {{{docking|}}}
 
| {{ #ifeq: {{{docking}}} | CLASSIFIED | <span style="color: #dd0000;">''CLASSIFIED''</span> | {{{docking}}} }}
 
| {{ #ifeq: {{{docking}}} | CLASSIFIED | <span style="color: #dd0000;">''CLASSIFIED''</span> | {{{docking}}} }}
Line 50: Line 50:
 
}}
 
}}
 
|-
 
|-
|style="vertical-align: top; background: #f6f6f6;" | '''Amenities'''
+
|style="background: #f6f6f6;" | '''Amenities'''
 
|style="padding-right: 1em;" | {{#if: {{{amenities|}}}
 
|style="padding-right: 1em;" | {{#if: {{{amenities|}}}
 
| {{ #ifeq: {{{amenities}}} | CLASSIFIED | <span style="color: #dd0000;">''CLASSIFIED''</span> | {{{amenities}}} }}
 
| {{ #ifeq: {{{amenities}}} | CLASSIFIED | <span style="color: #dd0000;">''CLASSIFIED''</span> | {{{amenities}}} }}
Line 56: Line 56:
 
}}
 
}}
 
|-
 
|-
|style="vertical-align: top; background: #f6f6f6;" | '''Population'''
+
|style="background: #f6f6f6;" | '''Population'''
 
|style="padding-right: 1em;" | {{#if: {{{population|}}}
 
|style="padding-right: 1em;" | {{#if: {{{population|}}}
 
| {{ #ifeq: {{{population}}} | CLASSIFIED | <span style="color: #dd0000;">''CLASSIFIED''</span> | {{{population}}} }}
 
| {{ #ifeq: {{{population}}} | CLASSIFIED | <span style="color: #dd0000;">''CLASSIFIED''</span> | {{{population}}} }}

Revision as of 18:43, 3 December 2008

Usage

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

Base type can be one of these choices:

  • ASTEROID_BASE
  • STATION
  • SHIPYARD
  • FREEPORT
  • BATTLESHIP

Result

Gas Miner Naha
Type Nostromo class station
Owner Gas Miners Guild
Location D4, Sigma-13
Border Worlds
Technical information
Gravity Limited
Docking Yes
Amenities Limited
Population 400