Difference between revisions of "Template:Infobox Facility"

From Space Haven Wiki
Jump to navigation Jump to search
 
(43 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="infobox" style= "background: #eee; border: 1px solid #aaa; float: left; margin: 0 1em 1em 0; padding: 1em; width: 400px;">
+
<noinclude>
 +
<nowiki>
 +
{{Infobox_Facility
 +
<!-- 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 =
 +
}}</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-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;">[[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 11: Line 43:
 
{| style="margin:auto; width:100%;"
 
{| style="margin:auto; width:100%;"
 
  {{#if: {{{buildingtools|}}} |
 
  {{#if: {{{buildingtools|}}} |
   {{!}} style="width: 1%;" {{!}} [[File:Item_Building_Tools.png|30px|link=Building_Tools|Building Tools]]
+
   {{!}} style="width: 5%;" {{!}} [[File:Item_Building_Tools.png|30px|link=Building_Tools|Building Tools]]
   {{!}} style="width: 1%; text-align: right; font-weight: bold;" {{!}} {{{buildingtools|}}}
+
   {{!}} style="width: 6%; text-align: right; font-weight: bold;" {{!}} {{{buildingtools|}}}
   {{!}} style="width: 98%; text-align: left; font-weight: bold;" {{!}} [[Building Tools]]
+
   {{!}} style="width: 89%; text-align: left; font-weight: bold;" {{!}} [[Building Tools]]
 
   {{!}}-
 
   {{!}}-
 
  |}}
 
  |}}
 
  {{#if: {{{energyblock|}}} |
 
  {{#if: {{{energyblock|}}} |
   {{!}} style="width: 1%;" {{!}} [[File:Item_Energy_Block.png|30px|link=Energy_Block|Energy Block]]
+
   {{!}} style="width: 5%;" {{!}} [[File:Item_Energy_Block.png|30px|link=Energy_Block|Energy Block]]
   {{!}} style="width: 1%; text-align: right; font-weight: bold;" {{!}} {{{energyblock|}}}
+
   {{!}} style="width: 6%; text-align: right; font-weight: bold;" {{!}} {{{energyblock|}}}
   {{!}} style="width: 98%; text-align: left; font-weight: bold;" {{!}} [[Energy Block]]
+
   {{!}} style="width: 89%; text-align: left; font-weight: bold;" {{!}} [[Energy Block]]
 
   {{!}}-
 
   {{!}}-
 
  |}}
 
  |}}
 
  {{#if: {{{hullblock|}}} |
 
  {{#if: {{{hullblock|}}} |
   {{!}} style="width: 1%;" {{!}} [[File:Item_Hull_Block.png|30px|link=Hull_Block|Hull Block]]
+
   {{!}} style="width: 5%;" {{!}} [[File:Item_Hull_Block.png|30px|link=Hull_Block|Hull Block]]
   {{!}} style="width: 1%; text-align: right; font-weight: bold;" {{!}} {{{hullblock|}}}
+
   {{!}} style="width: 6%; text-align: right; font-weight: bold;" {{!}} {{{hullblock|}}}
   {{!}} style="width: 98%; text-align: left; font-weight: bold;" {{!}} [[Hull Block]]
+
   {{!}} style="width: 89%; text-align: left; font-weight: bold;" {{!}} [[Hull Block]]
 
   {{!}}-
 
   {{!}}-
 
  |}}
 
  |}}
 
  {{#if: {{{infrablock|}}} |
 
  {{#if: {{{infrablock|}}} |
   {{!}} style="width: 1%;" {{!}} [[File:Item_Infrablock.png|30px|link=Infrablock|Infrablock]]
+
   {{!}} style="width: 5%;" {{!}} [[File:Item_Infrablock.png|30px|link=Infrablock|Infrablock]]
   {{!}} style="width: 1%; text-align: right; font-weight: bold;" {{!}} {{{infrablock|}}}
+
   {{!}} style="width: 6%; text-align: right; font-weight: bold;" {{!}} {{{infrablock|}}}
   {{!}} style="width: 98%; text-align: left; font-weight: bold;" {{!}} [[Infrablock]]
+
   {{!}} style="width: 89%; text-align: left; font-weight: bold;" {{!}} [[Infrablock]]
 
   {{!}}-
 
   {{!}}-
 
  |}}
 
  |}}
 
  {{#if: {{{softblock|}}} |
 
  {{#if: {{{softblock|}}} |
   {{!}} style="width: 1%;" {{!}} [[File:Item_Soft_Block.png|30px|link=Soft_Block|Soft Block]]
+
   {{!}} style="width: 5%;" {{!}} [[File:Item_Soft_Block.png|30px|link=Soft_Block|Soft Block]]
   {{!}} style="width: 1%; text-align: right; font-weight: bold;" {{!}} {{{softblock|}}}
+
   {{!}} style="width: 6%; text-align: right; font-weight: bold;" {{!}} {{{softblock|}}}
   {{!}} style="width: 98%; text-align: left; font-weight: bold;" {{!}} [[Soft Block]]
+
   {{!}} style="width: 89%; text-align: left; font-weight: bold;" {{!}} [[Soft Block]]
 
   {{!}}-
 
   {{!}}-
 
  |}}
 
  |}}
 
  {{#if: {{{techblock|}}} |
 
  {{#if: {{{techblock|}}} |
   {{!}} style="width: 1%;" {{!}} [[File:Item_Techblock.png|30px|link=Techblock|Techblock]]
+
   {{!}} style="width: 5%;" {{!}} [[File:Item_Techblock.png|30px|link=Techblock|Techblock]]
   {{!}} style="width: 1%; text-align: right; font-weight: bold;" {{!}} {{{techblock|}}}
+
   {{!}} style="width: 6%; text-align: right; font-weight: bold;" {{!}} {{{techblock|}}}
   {{!}} style="width: 98%; text-align: left; font-weight: bold;" {{!}} [[Techblock]]
+
   {{!}} style="width: 89%; text-align: left; font-weight: bold;" {{!}} [[Techblock]]
 
   {{!}}-
 
   {{!}}-
 
  |}}
 
  |}}
 
  {{#if: {{{superblock|}}} |
 
  {{#if: {{{superblock|}}} |
   {{!}} style="width: 1%;" {{!}} [[File:Item_Superblock.png|30px|link=Superblock|Superblock]]
+
   {{!}} style="width: 5%;" {{!}} [[File:Item_Superblock.png|30px|link=Superblock|Superblock]]
   {{!}} style="width: 1%; text-align: right; font-weight: bold;" {{!}} {{{superblock|}}}
+
   {{!}} style="width: 6%; text-align: right; font-weight: bold;" {{!}} {{{superblock|}}}
   {{!}} style="width: 98%; text-align: left; font-weight: bold;" {{!}} [[Superblock]]
+
   {{!}} style="width: 89%; text-align: left; font-weight: bold;" {{!}} [[Superblock]]
 
   {{!}}-
 
   {{!}}-
 
  |}}
 
  |}}
{{#if: {{{corepoint|}}} |
+
|}{{#if: {{{corepoint|}}}{{{systempoint|}}} | {{{!}} style="margin:auto; width: 100%"
  {{!}} style="width: 1%;" {{!}} [[File:Icon_Core_Point.png|30px|link=Core_Point|Core Point]]
+
   {{!}} style="width: 1%; font-size:150%; font-weight: bold; white-space: nowrap;" {{!}} Point modifier
  {{!}} style="width: 1%; text-align: right; font-weight: bold;" {{!}} {{{corepoint|}}}
+
   {{!}} <hr>
  {{!}} style="width: 98%; text-align: left; font-weight: bold;" {{!}} [[Core Point]]
+
  {{!}} 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: {{{systempoint|}}} |
+
  {{#if: {{{corepoint|}}} |
  {{!}} style="width: 1%;" {{!}} [[File:Icon_System_Point.png|30px|link=System_Point|System Point]]
+
  {{!}} style="width: 5%;" {{!}} [[File:Icon_Core_Point.png|30px|link=Core_Point|Core Point]]
   {{!}} style="width: 1%; text-align: right; font-weight: bold;" {{!}} {{{systempoint|}}}
+
  {{!}} style="width: 6%; text-align: right; font-weight: bold;" {{!}} {{{corepoint|}}}
  {{!}} style="width: 98%; text-align: left; font-weight: bold;" {{!}} [[System Point]]
+
  {{!}} 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]]
{| style="margin:auto; width: 100%"
+
  {{!}} style="width: 6%; text-align: right; font-weight: bold;" {{!}} {{{systempoint|}}}
| style="width: 1%; font-size:150%; font-weight: bold; white-space: nowrap;" | Point modifier
+
  {{!}} style="width: 89%; text-align: left; font-weight: bold;" {{!}} [[System Point]]
| <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="width: 1%;" {{!}} [[File:Icon_Core_Point.png|30px|link=Core_Point|Core Point]]
 
  {{!}} style="width: 1%; text-align: right; font-weight: bold;" {{!}} {{{corepoint|}}}
 
  {{!}} style="width: 98%; text-align: left; font-weight: bold;" {{!}} [[Core Point]]
 
  {{!}}-
 
|}}
 
{{#if: {{{systempoint|}}} |
 
  {{!}} style="width: 1%;" {{!}} [[File:Icon_System_Point.png|30px|link=System_Point|System Point]]
 
  {{!}} style="width: 1%; text-align: right; font-weight: bold;" {{!}} {{{systempoint|}}}
 
  {{!}} style="width: 98%; text-align: left; font-weight: bold;" {{!}} [[System Point]]
 
  {{!}}-
 
  |}}
 
|}
 
  
 
{| style="margin:auto; width: 100%"
 
{| style="margin:auto; width: 100%"
 
  | style="width: 1%; font-size:150%; font-weight: bold" | Comfort
 
  | style="width: 1%; font-size:150%; font-weight: bold" | Comfort
 
  | <hr>
 
  | <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="width: 1%; font-size:150%; font-weight: bold; white-space: nowrap;" | [[File:Icon_Question_Mark.png|30px|link=Comfort|Tutorial for Comfort]]
 
|}
 
|}
  
 
{| style="margin:auto; width: 100%"
 
{| style="margin:auto; width: 100%"
  | style="width: 1%" | [[File:Icon_Comfort_Work.png|30px|link=Comfort|Work Comfort]]
+
  | style="width: 5%" | [[File:Icon_Comfort_Sleep.png|30px|link=Comfort|Sleep]]
  | style="width: 32%; text-align:left;" | <b>{{{work|}}}</b>
+
  | style="width: 6%; text-align: right; font-weight: bold;" | {{{sleep|}}}
  | style="width: 1%" | [[File:Icon_Comfort_Leisure.png|30px|link=Comfort|Leisure Comfort]]
+
  | style="width: 22%;" |
  | style="width: 32%; text-align:left;" | <b>{{{leisure|}}}</b>
+
| style="width: 5%" | [[File:Icon_Comfort_Leisure.png|30px|link=Comfort|Leisure]]
  | style="width: 1%" | [[File:Icon_Comfort_Sleep.png|30px|link=Comfort|Sleep Comfort]]
+
| style="width: 6%; text-align: right; font-weight: bold;" | {{{leisure|}}}
  | style="width: 32%; text-align:left;" | <b>{{{sleep|}}}</b>
+
| style="width: 22%;" |
 +
| style="width: 5%" | [[File:Icon_Comfort_Work.png|30px|link=Comfort|Work]]
 +
  | style="width: 6%; text-align: right; font-weight: bold;" | {{{work|}}}
 +
|-
 +
  | style="width: 5%" | [[File:Icon_Comfort_Radius.png|30px|link=Comfort|Radius]]
 +
| style="width: 6%; text-align: right; font-weight: bold;" | {{{radius|}}}
 +
| style="width: 22%;" |
 +
| style="width: 5%" | [[File:Icon_Comfort_Room_Drop.png|30px|link=Comfort|Room Drop]]
 +
  | style="width: 6%; text-align: right; font-weight: bold;" | {{{roomdrop|}}}
 +
| style="width: 22%;" |
 +
| style="width: 5%;" |
 +
| style="width: 6%;" |
 +
| style="width: 22%;" |
 
|}
 
|}
  
 
{| 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=Building|Tutorial for Building]]
+
  | style="width: 1%; font-size:150%; font-weight: bold; white-space: nowrap;" | [[File:Icon_Question_Mark.png|30px|link=Power|Tutorial for Power]]
 
|}
 
|}
  
 
{| 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|}}}</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 120: Line 152:
 
  | style="width: 1%; font-size:150%; font-weight: bold;" | Byproducts
 
  | style="width: 1%; font-size:150%; font-weight: bold;" | Byproducts
 
  | <hr>
 
  | <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="width: 1%; font-size:150%; font-weight: bold; white-space: nowrap;" | [[File:Icon_Question_Mark.png|30px|link=Atmosphere|Tutorial for Atmosphere]]
 
|}
 
|}
  
 
{| style="margin:auto; width: 100%"
 
{| style="margin:auto; width: 100%"
  | style="width: 1%" | [[File:Icon_Heat.png|30px|link=Temperature|Heat]]
+
  | style="width: 50%" | {{#ifeq: {{{heat|}}} | 1 | [[File:Icon_Heat_Low.png|link=Temperature|Low Heat]] | {{#ifeq: {{{heat|}}} | 2 | [[File:Icon_Heat_Medium.png|link=Temperature|Medium Heat]] | {{#ifeq: {{{heat|}}} | 3 | [[File:Icon_Heat_High.png|link=Temperature|High Heat]] | {{#ifeq: {{{heat|}}} | 4 | [[File:Icon_Heat_Very_High.png|link=Temperature|Very High Heat]] | [[File:Icon_Heat_None.png|30px|link=Temperature|No Heat]]}}}}}}}}
| style="width: 47%; text-align:left;" | <b>{{{Heat|}}}</b>
+
  | style="width: 50%" | {{#ifeq: {{{hazardousgas|}}} | 1 | [[File:Icon_Hazardous_Gas_1.png|link=Atmosphere|1 Hazardous Gas/s]] | {{#ifeq: {{{hazardousgas|}}} | 2 | [[File:Icon_Hazardous_Gas_2.png|link=Atmosphere|2 Hazardous Gas/s]] | {{#ifeq: {{{hazardousgas|}}} | 3 | [[File:Icon_Hazardous_Gas_3.png|link=Atmosphere|3 Hazardous Gas/s]] | [[File:Icon_Hazardous_Gas_None.png|link=Atmosphere|No Hazardous Gas]]}}}}}}
  | style="width: 1%" | [[File:Icon_Hazardous_Gas.png|30px|link=HazardousGas|Hazardous Gas]]
 
| style="width: 47%; text-align:left;" | <b>{{{HazardousGas|}}}</b>
 
 
|}
 
|}
  
Line 133: Line 163:
 
  | style="width: 1%; font-size:150%; font-weight: bold" | Condition
 
  | style="width: 1%; font-size:150%; font-weight: bold" | Condition
 
  | <hr>
 
  | <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="width: 1%; font-size:150%; font-weight: bold; white-space: nowrap;" | [[File:Icon_Question_Mark.png|30px|link=Condition|Tutorial for Condition]]
 
|}
 
|}
  
 
{| 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;" | <b>{{{Condition|}}} Points</b>
+
  | 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 144: Line 175:
 
  | style="width: 1%; font-size:150%; font-weight: bold; white-space: nowrap;" | Needed Research
 
  | style="width: 1%; font-size:150%; font-weight: bold; white-space: nowrap;" | Needed Research
 
  | <hr>
 
  | <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="width: 1%; font-size:150%; font-weight: bold; white-space: nowrap;" | [[File:Icon_Question_Mark.png|30px|link=Research|Tutorial for Research]]
 
|}
 
|}
  
 
{| 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;" | <b>[[Research|{{{NeededResearch|}}}]]</b>
+
  | style="text-align: left; font-weight: bold;" | {{#if: {{{neededresearch|}}} | [[Research|{{{neededresearch|}}}]] | none }}
 
|}
 
|}
  
 
</div>
 
</div>

Latest revision as of 15:23, 6 April 2025

{{Infobox_Facility
<!-- 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 = 
}}
Infobox Facility
Build cost
Tutorial for Building
Comfort
Tutorial for Comfort
Sleep Leisure Work
Radius Room Drop
Power consumption
Tutorial for Power
Byproducts
Tutorial for Atmosphere
No Heat No Hazardous Gas
Condition
Tutorial for Condition
Condition Points
Needed Research
Tutorial for Research
Research none