Difference between revisions of "Template:Base Infobox"
From Discovery Wiki
Jump to navigationJump to searchLine 1: | Line 1: | ||
<noinclude><!--</noinclude> | <noinclude><!--</noinclude> | ||
− | {| class="infobox bordered" style="float: right; margin-left: 1em; margin-bottom: 10px; width: 250px; font-size: 11px; line-height: 14px; border: | + | {| class="infobox bordered" style="float: right; margin-left: 1em; margin-bottom: 10px; width: 250px; font-size: 11px; line-height: 14px; border: 1px solid white; " cellpadding="3" |
|- | |- | ||
− | | colspan="2" | + | | colspan="2" class="infobox-name"|'''{{{name}}}''' |
{{#ifexpr: {{{destroyed|0}}} > 0 | {{!}}- | {{#ifexpr: {{{destroyed|0}}} > 0 | {{!}}- | ||
{{!}} colspan="2" style="text-align: center; font: bold italic 12px Tahoma; letter-spacing: 1px; text-transform: uppercase; color: #AA0000;" {{!}} Destroyed | {{!}} colspan="2" style="text-align: center; font: bold italic 12px Tahoma; letter-spacing: 1px; text-transform: uppercase; color: #AA0000;" {{!}} Destroyed | ||
Line 12: | Line 12: | ||
}} | }} | ||
|- | |- | ||
− | | | + | |class="infobox-data-title" | '''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 31: | Line 31: | ||
}} }}{{#if: {{{class|}}}{{{type|}}} | | <span style="color: #990000;">''unknown''</span> }} | }} }}{{#if: {{{class|}}}{{{type|}}} | | <span style="color: #990000;">''unknown''</span> }} | ||
|- | |- | ||
− | | | + | |class="infobox-data-title" | '''Owner''' |
|style="padding-right: 1em;" | {{#if: {{{owner|}}} | |style="padding-right: 1em;" | {{#if: {{{owner|}}} | ||
| {{{owner}}} | | {{{owner}}} | ||
Line 37: | Line 37: | ||
}} | }} | ||
|- | |- | ||
− | | | + | |class="infobox-data-title" | '''Location''' |
|style="padding-right: 1em; line-height: 17px;" | {{#if: {{{system|}}}{{{sector|}}}{{{house|}}} | |style="padding-right: 1em; line-height: 17px;" | {{#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 43: | Line 43: | ||
}} | }} | ||
|- | |- | ||
− | | colspan="2" | + | | colspan="2" class="infobox-section" | Technical information |
|- | |- | ||
− | | | + | |class="infobox-data-title" | '''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 51: | Line 51: | ||
}} | }} | ||
|- | |- | ||
− | | | + | |class="infobox-data-title" | '''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 57: | Line 57: | ||
}} | }} | ||
|- | |- | ||
− | | | + | |class="infobox-data-title" | '''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 63: | Line 63: | ||
}} | }} | ||
|- | |- | ||
− | | | + | |class="infobox-data-title" | '''Population''' |
|style="padding-right: 1em;" | {{#if: {{{population|}}} | |style="padding-right: 1em;" | {{#if: {{{population|}}} | ||
| {{ #ifeq: {{{population}}} | CLASSIFIED | <span style="color: #dd0000;">''CLASSIFIED''</span> | {{formatnum:{{{population}}}}} }} | | {{ #ifeq: {{{population}}} | CLASSIFIED | <span style="color: #dd0000;">''CLASSIFIED''</span> | {{formatnum:{{{population}}}}} }} |
Revision as of 15:06, 19 August 2009
Usage
{{Base Infobox | name = Gas Miner Naha | image = naha.jpg | class = Nostromo | type = STATION | system = [[Sigma-13]] | sector = D4 | house = [[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
- LINER
- PRISON
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 |