Difference between revisions of "Template:Infobox Facility"

From Space Haven Wiki
Jump to navigation Jump to search
 
(22 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
+
<noinclude><p style="font-size:12px; text-indent: 12px;">[[Template:{{PAGENAME}}/doc|> Template:{{PAGENAME}}/doc]]</p>
<nowiki>
+
<p style="font-size:12px; text-indent: 12px;">[[Template:{{PAGENAME}}/version|> Template:{{PAGENAME}}/version]]</p>
{{Infobox_Facility
+
{{{{PAGENAME}}/doc}}
<!-- Build cost -->
+
</noinclude><includeonly>
|  buildingtools =
+
[[Category:Structure]]
|    energyblock =
 
|      hullblock =
 
|    infrablock =
 
|      softblock =
 
|      techblock =
 
|     superblock =
 
<!-- Ship points -->
 
|      corepoint =
 
|    systempoint =
 
<!-- Comfort -->
 
|          sleep =
 
|        leisure =
 
|          work =
 
|          range =
 
|      roomdrop =
 
<!-- Power -->
 
|      powerlow =
 
|      powerhigh =  
 
<!-- Byproducts -->
 
|          heat =
 
|   hazardousgas =
 
<!-- Condition -->
 
|      condition =
 
<!-- Research -->
 
| neededresearch =
 
}}</nowiki>
 
</noinclude>
 
 
<div class="infobox" style= "background: #eee; border: 1px solid #aaa; float: left; margin: 0 1em 1em 0; padding: 1em; width: 400px;">
 
<div class="infobox" style= "background: #eee; border: 1px solid #aaa; float: left; margin: 0 1em 1em 0; padding: 1em; width: 400px;">
 
<div class="infobox-title" style= "font-size: 2em; text-align: center;">{{PAGENAME}}</div>
 
<div class="infobox-title" style= "font-size: 2em; text-align: center;">{{PAGENAME}}</div>
 
<div class="infobox-image" style= "text-align: center;">{{#ifexist: Media:Structure_{{PAGENAME}}.png | [[File:Structure_{{PAGENAME}}.png|300px]] |}}</div>
 
<div class="infobox-image" style= "text-align: center;">{{#ifexist: Media:Structure_{{PAGENAME}}.png | [[File:Structure_{{PAGENAME}}.png|300px]] |}}</div>
 +
<div class="infobox-image" style= "text-align: center;">{{#ifexist: Media:Structure_{{PAGENAME}}_Roof.png | <br>[[File:Structure_{{PAGENAME}}_Roof.png|300px]] |}}</div>
  
 
{| style="margin:auto; width: 100%"
 
{| style="margin:auto; width: 100%"
Line 84: Line 58:
 
   {{!}}-
 
   {{!}}-
 
  |}}
 
  |}}
|}
+
|}{{#if: {{{corepoint|}}}{{{systempoint|}}} | {{{!}} style="margin:auto; width: 100%"
 
+
  {{!}} style="width: 1%; font-size:150%; font-weight: bold; white-space: nowrap;" {{!}} Point modifier
{| style="margin:auto; width: 100%"
+
  {{!}} <hr>
| style="width: 1%; font-size:150%; font-weight: bold; white-space: nowrap;" | Point modifier
+
  {{!}} style="width: 1%; font-size:150%; font-weight: bold; white-space: nowrap;" {{!}} [[File:Icon_Question_Mark.png|30px|link=Building|Tutorial for Building]]
| <hr>
+
{{!}}}
| style="width: 1%; font-size:150%; font-weight: bold; white-space: nowrap;" | [[File:Icon_Question_Mark.png|30px|link=Building|Tutorial for Building]]
+
{{{!}} style="margin:auto; width:100%;"
|}
+
  {{#if: {{{corepoint|}}} |
{| style="margin:auto; width:100%;"
+
  {{!}} style="width: 5%;" {{!}} [[File:Icon_Core_Point.png|30px|link=Core_Point|Core Point]]
{{#if: {{{corepoint|}}} |
+
  {{!}} style="width: 6%; text-align: right; font-weight: bold;" {{!}} {{{corepoint|}}}
  {{!}} style="width: 5%;" {{!}} [[File:Icon_Core_Point.png|30px|link=Core_Point|Core Point]]
+
  {{!}} style="width: 89%; text-align: left; font-weight: bold;" {{!}} [[Core Point]]
  {{!}} style="width: 6%; text-align: right; font-weight: bold;" {{!}} {{{corepoint|}}}
+
  {{!}}-
  {{!}} style="width: 89%; text-align: left; font-weight: bold;" {{!}} [[Core Point]]
+
  |}}
  {{!}}-
+
  {{#if: {{{systempoint|}}} |
|}}
+
  {{!}} style="width: 5%;" {{!}} [[File:Icon_System_Point.png|30px|link=System_Point|System Point]]
{{#if: {{{systempoint|}}} |
+
  {{!}} style="width: 6%; text-align: right; font-weight: bold;" {{!}} {{{systempoint|}}}
  {{!}} style="width: 5%;" {{!}} [[File:Icon_System_Point.png|30px|link=System_Point|System Point]]
+
  {{!}} style="width: 89%; text-align: left; font-weight: bold;" {{!}} [[System Point]]
  {{!}} style="width: 6%; text-align: right; font-weight: bold;" {{!}} {{{systempoint|}}}
+
  {{!}}-
  {{!}} style="width: 89%; text-align: left; font-weight: bold;" {{!}} [[System Point]]
+
  |}}
  {{!}}-
+
  {{!}}}
  |}}
+
|}}
|}
 
  
 
{| style="margin:auto; width: 100%"
 
{| style="margin:auto; width: 100%"
Line 122: Line 95:
 
  | style="width: 6%; text-align: right; font-weight: bold;" | {{{work|}}}
 
  | style="width: 6%; text-align: right; font-weight: bold;" | {{{work|}}}
 
  |-
 
  |-
  | style="width: 5%" | [[File:Icon_Comfort_Range.png|30px|link=Comfort|Range]]
+
  | style="width: 5%" | [[File:Icon_Comfort_Radius.png|30px|link=Comfort|Radius]]
  | style="width: 6%; text-align: right; font-weight: bold;" | {{{range|}}}
+
  | style="width: 6%; text-align: right; font-weight: bold;" | {{{radius|}}}
 
  | style="width: 22%;" |
 
  | style="width: 22%;" |
 
  | style="width: 5%" | [[File:Icon_Comfort_Room_Drop.png|30px|link=Comfort|Room Drop]]
 
  | style="width: 5%" | [[File:Icon_Comfort_Room_Drop.png|30px|link=Comfort|Room Drop]]
Line 134: Line 107:
  
 
{| style="margin:auto; width: 100%"
 
{| style="margin:auto; width: 100%"
  | style="width: 1%; font-size:150%; font-weight: bold" | Power
+
  | style="width: 1%; font-size:150%; font-weight: bold; white-space: nowrap;" | Power consumption
 
  | <hr>
 
  | <hr>
 
  | style="width: 1%; font-size:150%; font-weight: bold; white-space: nowrap;" | [[File:Icon_Question_Mark.png|30px|link=Power|Tutorial for Power]]
 
  | style="width: 1%; font-size:150%; font-weight: bold; white-space: nowrap;" | [[File:Icon_Question_Mark.png|30px|link=Power|Tutorial for Power]]
Line 140: Line 113:
  
 
{| style="margin:auto; width: 100%"
 
{| style="margin:auto; width: 100%"
  | style="width: 1%" | [[File:Icon_Power.png|30px|link=Power|Power Consumption]]
+
  {{#if: {{{powerlow|}}} | {{!}} style="width: 1%" {{!}} [[File:Icon_Power_Low.png|30px|link=Power|Power Consumption]]
  | style="width: 99%; text-align:left;" | <b>Consumption: {{{powerlow|}}}/s</b>
+
  {{!}} style="width: 99%; text-align:left;" {{!}} <b>Low capacity power: {{{powerlow|}}}/s</b>
 +
|}}
 
  {{#if: {{{powerhigh|}}} |
 
  {{#if: {{{powerhigh|}}} |
 
   {{!}}-
 
   {{!}}-
 
   {{!}} style="width: 1%" {{!}} [[File:Icon_Power_High.png|30px|link=Power|High Power needed?]]
 
   {{!}} style="width: 1%" {{!}} [[File:Icon_Power_High.png|30px|link=Power|High Power needed?]]
   {{!}} style="width: 99%; text-align:left;" {{!}} <b>Needs high capacity power</b>
+
   {{!}} style="width: 99%; text-align:left;" {{!}} <b>High capacity power: {{{powerhigh|}}}/s</b>
 
  |}}
 
  |}}
 
|}
 
|}
Line 167: Line 141:
  
 
{| style="margin:auto; width: 100%"
 
{| style="margin:auto; width: 100%"
  | style="width: 1%" | [[File:Icon_Condition.png|30px|link=Condition|Condition]]
+
  | style="width: 5%" | [[File:Icon_Condition.png|30px|link=Condition|Condition]]
  | style="width: 99%; text-align:left; font-weight: bold;" | {{#ifeq: {{{condition|}}} | 1 | {{{condition|}}} Point | {{{condition|}}} Points}}
+
  | style="width: 6%; text-align:right; font-weight: bold;" | {{{condition|}}}
 +
| style="width: 89%; text-align:left; font-weight: bold;" | {{#ifeq: {{{condition|}}} | 1 | Point | Points}}
 
|}
 
|}
  
Line 179: Line 154:
 
{| style="margin:auto; width: 100%"
 
{| style="margin:auto; width: 100%"
 
  | style="width: 1%; vertical-align: top;" | [[File:Icon_Research.png|30px|link=Research|Research]]
 
  | style="width: 1%; vertical-align: top;" | [[File:Icon_Research.png|30px|link=Research|Research]]
  | style="text-align: left; font-weight: bold;" | [[Research|{{{neededresearch|}}}]]
+
  | style="text-align: left; font-weight: bold;" | {{#if: {{{neededresearch|}}} | [[Research|{{{neededresearch|}}}]] | none }}
 
|}
 
|}
  
</div>
+
</div></includeonly>

Latest revision as of 12:38, 3 May 2025

> Template:Infobox Facility/doc

> Template:Infobox Facility/version

Usage

Parameter

Template

Use this template to copy and paste it onto the page of your liking.

{{Infobox_Facility
 |        version = 2025.04.25.0
<!-- Build cost -->
 |  buildingtools = 
 |    energyblock = 
 |      hullblock = 
 |     infrablock = 
 |      softblock = 
 |      techblock = 
 |     superblock = 
<!-- Ship points -->
 |      corepoint = 
 |    systempoint = 
<!-- Comfort -->
 |          sleep = 
 |        leisure = 
 |           work = 
 |         radius = 
 |       roomdrop = 
<!-- Power -->
 |       powerlow = 
 |      powerhigh = 
<!-- Byproducts -->
 |           heat = 
 |   hazardousgas = 
<!-- Condition -->
 |      condition = 
<!-- Research -->
 | neededresearch = 
}}