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
(try this)
 
(104 intermediate revisions by 11 users not shown)
Line 1: Line 1:
<noinclude><!--</noinclude>
+
<noinclude>{{Style Guide navigation}}<!--</noinclude><includeonly>{{#ifeq: {{{type|}}} | PLAYER_BASE | {{#ifeq: {{{destroyed|0}}} | 1 | {{Destroyed Player Base}} | ''{{{disclaimer|This is a player-built and owned base on the Discovery Freelancer RP 24/7 server which may not be found on other servers.}}}''}}}}{{#if: {{{image|}}}||{{Stub|This Article needs a Picture for the '''Base'''. 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: 250px; font-size: 11px; line-height: 14px; 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 #202653; background: #14193f;" cellpadding="3"
 
|-
 
|-
| colspan="2" style="text-align: center; font-size: 14px; background: #f6f6f6;"|'''{{{name}}}'''
+
| colspan="2" style="text-align: center; font-size: 16px; line-height: 18px; background: #202653; color: #ffffff"| <b>{{{name}}}</b>
 
|-
 
|-
| colspan="2" style="padding: 0px; text-align: center;"|{{#if: {{{image|}}}
+
| colspan="2" style="text-align: center;  font-size: 12px; line-height: 18px;"| {{#if: {{{class|}}} | {{#switch: {{{type}}}
| [[image:{{{image}}}|center|244px]]
+
| ASTEROID_BASE = ''{{{class}}}'' class Asteroid Base
| ''No image''
+
| STATION = ''{{{class}}}'' class Station
}}
+
| SHIPYARD = ''{{{class}}}'' class Shipyard
|-
+
| DEPOT = ''{{{class}}}'' class Depot
|style="background: #f6f6f6;" | '''Type'''
+
| FREEPORT = ''{{{class}}}'' class Freeport
|style="padding-right: 1em;" | {{#if: {{{class|}}} | ''{{{class}}}'' class {{#switch: {{{type}}}
+
| CARRIER = ''{{{class}}}'' class Carrier
| ASTEROID_BASE = asteroid base
+
| BATTLESHIP = ''{{{class}}}'' class Battleship
| STATION = station
+
| BATTLECRUISER= ''{{{class}}}'' class Battlecruiser
| SHIPYARD = shipyard
+
| DESTROYER = ''{{{class}}}'' class Destroyer
| FREEPORT = freeport
+
| LINER = ''{{{class}}}'' class Liner
| BATTLESHIP = battleship
+
| PRISON = ''{{{class}}}'' class Prison Station
}} | {{#switch: {{{type}}}
+
| WRECK = ''{{{class}}}'' class Wreck
 +
| PLAYER_BASE = Core {{#iferror: {{#expr: {{{class}}}*2}} | | Level}} ''{{{class}}}'' Base
 +
}}|{{#switch: {{{type}}}
 
| ASTEROID_BASE = Asteroid base
 
| ASTEROID_BASE = Asteroid base
 
| STATION = Station
 
| STATION = Station
 
| SHIPYARD = Shipyard
 
| SHIPYARD = Shipyard
 +
| DEPOT = Depot
 
| FREEPORT = Freeport
 
| FREEPORT = Freeport
 +
| CARRIER = Carrier
 
| BATTLESHIP = Battleship
 
| BATTLESHIP = Battleship
}} }}{{#if: {{{class|}}}{{{type|}}} |  | <span style="color: #990000;">''unknown''</span> }}  
+
| BATTLECRUISER = Battlescruiser
 +
| DESTROYER = Destroyer
 +
| LINER = Liner
 +
| PRISON = Prison station
 +
| WRECK = Wreck
 +
| PLAYER_BASE = Player Base
 +
| #default = <span style="color: #990000;">''Unknown''</span>
 +
}}}}{{#if: {{{class|}}}{{{type|}}} |  | <span style="color: #990000;">''Unknown''</span> }}  
 +
|-
 +
| colspan="2" style="text-align: center; border: 1px solid #202653;"|{{ #if: {{{image|}}}|[[image:{{{image}}}{{!}}center{{!}}250px]]|''Image missing''}}
 +
|-
 +
| colspan="2" style="text-align: center; font-size: 14px; line-height: 18px; background: #202653; color: #ffffff"| Owner
 
|-
 
|-
|style="background: #f6f6f6;" | '''Owner'''
+
| colspan="2" style="text-align: center;  font-size: 12px; line-height: 18px;"| {{#if: {{{owner|}}}
|style="padding-right: 1em;" | {{#if: {{{owner|}}}
+
| {{ #if: {{{owner|}}} | {{{owner}}} | ''Unknown'' }} }}
| {{{owner}}}
+
|-
| ''unknown''
+
| colspan="2" style="text-align: center; font-size: 14px; line-height: 18px; background: #202653; color: #ffffff"| Location
}}
 
 
|-
 
|-
|style="width: 80px; background: #f6f6f6;" | '''Location'''
+
| colspan="2" style="text-align: center;  font-size: 12px; line-height: 18px;"| {{#if: {{{system|}}}{{{sector|}}}{{{house|}}}
|style="padding-right: 1em; line-height: 15px;" | {{#if: {{{system|}}}{{{sector|}}}{{{house|}}}
+
| {{#if: {{{sector|}}} | '''{{{sector}}}''', }} {{#if: {{{system|}}} | {{{system}}} | ''Unidentified System'' }} }}
| {{#if: {{{sector|}}} | '''{{{sector}}}''', }} {{#if: {{{system|}}} | {{{system}}} | ''unknown'' }}{{#if: {{{house|}}} | <br>''{{{house}}}'' }}
 
| ''unknown''
 
}}
 
 
|-
 
|-
| colspan="2" style="vertical-align: top; font-weight: bold; text-align: center;" | Technical information
+
| colspan="2" style="text-align: center; font-size: 14px; line-height: 18px; background: #202653; color: #ffffff"| Technical Data
 
|-
 
|-
|style="background: #f6f6f6;" | '''Gravity'''
+
|class="infobox-data-title" | '''Gravity'''
|style="padding-right: 1em; letter-spacing: 1px;" | {{#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}}} }}
 
| ''unknown''
 
| ''unknown''
 
}}
 
}}
 
|-
 
|-
|style="background: #f6f6f6;" | '''Docking'''
+
|class="infobox-data-title" | '''Docking bays'''
|style="padding-right: 1em; letter-spacing: 1px;" | {{#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}}} }}
 
| ''unknown''
 
| ''unknown''
 
}}
 
}}
 
|-
 
|-
|style="background: #f6f6f6;" | '''Amenities'''
+
|class="infobox-data-title" | '''Amenities'''
|style="padding-right: 1em; letter-spacing: 1px;" | {{#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}}} }}
 
| ''unknown''
 
| ''unknown''
 
}}
 
}}
 
|-
 
|-
|style="background: #f6f6f6;" | '''Population'''
+
|class="infobox-data-title" | '''Crew'''
|style="padding-right: 1em; letter-spacing: 1px;" | {{#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> | {{formatnum:{{{population}}}}} }}
 
| ''unknown''
 
| ''unknown''
 
}}
 
}}
|}[[Category: Bases]]{{#switch: {{{type}}}
+
{{#if: {{{extension|}}} | {{!}}- title="Player base RPed as an extension"
 +
{{!}}class="infobox-data-title" {{!}} '''Extension'''
 +
{{!}}style="padding-right: 1em;" {{!}} {{#ifexist: {{{extension|{{PAGENAME}}}}} | [[{{{extension|{{PAGENAME}}}}}]] | {{{extension|{{PAGENAME}}}}}}}
 +
}}
 +
|}
 +
[[Category: Bases]]{{#switch: {{{type}}}
 
| ASTEROID_BASE = [[Category: Asteroid bases]]
 
| ASTEROID_BASE = [[Category: Asteroid bases]]
 
| STATION = [[Category: Stations]]
 
| STATION = [[Category: Stations]]
 
| SHIPYARD = [[Category: Shipyards]]
 
| SHIPYARD = [[Category: Shipyards]]
 +
| DEPOT = [[Category: Depots]]
 
| FREEPORT = [[Category: Freeports]]
 
| FREEPORT = [[Category: Freeports]]
| BATTLESHIP = [[Category: Stationary battleships]]
+
| CARRIER = [[Category: Stationary Carriers]]
| #default = [[Category:Uncategorised bases]]
+
| BATTLESHIP = [[Category: Stationary Battleships]]
}}{{#if: {{{image|}}} | | [[Category: Pages without profile images]]}}<noinclude>
+
| BATTLECRUISER = [[Category: Stationary Battlecruisers]]
 +
| DESTROYER = [[Category: Stationary Destroyers]]
 +
| LINER = [[Category: Stationary Liners]]
 +
| PRISON = [[Category: Prison Stations]]
 +
| WRECK = [[Category: Wrecks]]
 +
| PLAYER_BASE = [[Category: Player Bases]]  
 +
| #default = [[Category:Uncategorised Bases]]
 +
}}{{#ifexpr: {{{destroyed|0}}} > 0 | [[Category: Destroyed bases]]}}{{#if: {{{image|}}} | | [[Category: Bases without profile images]]}}<nowiki /></includeonly><noinclude>
 
-->
 
-->
 
==Usage==
 
==Usage==
 
<pre><nowiki>{{Base Infobox
 
<pre><nowiki>{{Base Infobox
 
| name = Gas Miner Naha
 
| name = Gas Miner Naha
| image = naha.jpg
+
| image = Gas Miner Naha.jpg
 
| class = Nostromo
 
| class = Nostromo
 
| type = STATION
 
| type = STATION
 
| system = [[Sigma-13]]
 
| system = [[Sigma-13]]
 
| sector = D4
 
| sector = D4
| location = [[Border Worlds]]
 
 
| owner = [[Gas Miners Guild]]
 
| owner = [[Gas Miners Guild]]
 
| gravity = Limited
 
| gravity = Limited
Line 89: Line 112:
 
* STATION
 
* STATION
 
* SHIPYARD
 
* SHIPYARD
 +
* DEPOT
 
* FREEPORT
 
* FREEPORT
 +
* CARRIER
 
* BATTLESHIP
 
* BATTLESHIP
 
+
* BATTLECRUISER
 +
* DESTROYER
 +
* LINER
 +
* PRISON
 +
* WRECK
 +
* PLAYER_BASE
 
==Result==
 
==Result==
 
{{Base Infobox
 
{{Base Infobox
 
| name = Gas Miner Naha
 
| name = Gas Miner Naha
| image = naha.jpg
+
| image = Gas Miner Naha.jpg
 
| class = Nostromo
 
| class = Nostromo
 
| type = STATION
 
| type = STATION
 
| system = [[Sigma-13]]
 
| system = [[Sigma-13]]
 
| sector = D4
 
| sector = D4
| house = [[Border Worlds]]
 
 
| owner = [[Gas Miners Guild]]
 
| owner = [[Gas Miners Guild]]
 
| gravity = Limited
 
| gravity = Limited
Line 108: Line 137:
 
}}
 
}}
  
[[Category:Templates]]
+
[[Category:Templates]]</noinclude>
</noinclude>
 

Latest revision as of 21:13, 18 February 2020

Other Templates available to read:

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


Usage

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

Base type can be one of these choices:

  • ASTEROID_BASE
  • STATION
  • SHIPYARD
  • DEPOT
  • FREEPORT
  • CARRIER
  • BATTLESHIP
  • BATTLECRUISER
  • DESTROYER
  • LINER
  • PRISON
  • WRECK
  • PLAYER_BASE

Result

Gas Miner Naha
Nostromo class Station
Gas Miner Naha.jpg
Owner
Gas Miners Guild
Location
D4, Sigma-13
Technical Data
Gravity Limited
Docking bays Yes
Amenities Limited
Crew 400