Difference between revisions of "Template:Infobox Facility"

From Space Haven Wiki
Jump to navigation Jump to search
Line 1: Line 1:
{| style="background: #eeeeee; border: 2px solid #aaaaaa; float: right; padding: 0.1em; width: 300px;
+
<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-image" style= "text-align: center;">[[File:Structure_{{PAGENAME}}.png|300px]]</div>
 +
 
 +
{| style="margin:auto; width: 100%"
 +
| style="width: 1%; font-size:150%; font-weight: bold; white-space: nowrap;" | Build cost
 +
| style="width: 99%;" | <hr>
 
|-
 
|-
 +
|}
 +
 +
{| style="margin:auto; width:100%;"
 +
{{#if: {{{buildingtools|}}} |
 +
  {{!}} style="width: 1%;" {{!}} [[File:Item_Building_Tools.png|30px|link=Building_Tools|Building Tools]]
 +
  {{!}} style="width: 1%; text-align:right; font-weight: bold;" {{!}} {{{buildingtools|}}}
 +
  {{!}} style="width: 98%; text-align:left; font-weight: bold;" {{!}} [[Building Tools]]
 +
  {{!}}-
 +
|}}
 +
{{#if: {{{energyblock|}}} |
 +
  {{!}} style="width: 1%;" {{!}} [[File:Item_Energy_Block.png|30px|link=Energy_Block|Energy Block]]
 +
  {{!}} style="width: 1%; text-align:right; font-weight: bold;" {{!}} {{{energyblock|}}}
 +
  {{!}} style="width: 98%; text-align:left; font-weight: bold;" {{!}} [[Energy Block]]
 +
  {{!}}-
 +
|}}
 +
{{#if: {{{hullblock|}}} |
 +
  {{!}} style="width: 1%;" {{!}} [[File:Item_Hull_Block.png|30px|link=Hull_Block|Hull Block]]
 +
  {{!}} style="width: 1%; text-align:right; font-weight: bold;" {{!}} {{{hullblock|}}}
 +
  {{!}} style="width: 98%; text-align:left; font-weight: bold;" {{!}} [[Hull Block]]
 +
  {{!}}-
 +
|}}
 +
{{#if: {{{infrablock|}}} |
 +
  {{!}} style="width: 1%;" {{!}} [[File:Item_Infrablock.png|30px|link=Infrablock|Infrablock]]
 +
  {{!}} style="width: 1%; text-align:right; font-weight: bold;" {{!}} {{{infrablock|}}}
 +
  {{!}} style="width: 98%; text-align:left; font-weight: bold;" {{!}} [[Infrablock]]
 +
  {{!}}-
 +
|}}
 +
{{#if: {{{softblock|}}} |
 +
  {{!}} style="width: 1%;" {{!}} [[File:Item_Soft_Block.png|30px|link=Soft_Block|Soft Block]]
 +
  {{!}} style="width: 1%; text-align:right; font-weight: bold;" {{!}} {{{softblock|}}}
 +
  {{!}} style="width: 98%; text-align:left; font-weight: bold;" {{!}} [[Soft Block]]
 +
  {{!}}-
 +
|}}
 +
{{#if: {{{techblock|}}} |
 +
  {{!}} style="width: 1%;" {{!}} [[File:Item_Techblock.png|30px|link=Techblock|Techblock]]
 +
  {{!}} style="width: 1%; text-align:right; font-weight: bold;" {{!}} {{{techblock|}}}
 +
  {{!}} style="width: 98%; text-align:left; font-weight: bold;" {{!}} [[Techblock]]
 +
  {{!}}-
 +
|}}
 +
{{#if: {{{superblock|}}} |
 +
  {{!}} style="width: 1%;" {{!}} [[File:Item_Superblock.png|30px|link=Superblock|Superblock]]
 +
  {{!}} style="width: 1%; text-align:right; font-weight: bold;" {{!}} {{{superblock|}}}
 +
  {{!}} style="width: 98%; text-align:left; font-weight: bold;" {{!}} [[Superblock]]
 +
  {{!}}-
 +
|}}
 +
{{#if: {{{corepoint|}}} |
 +
  {{!}} style="width: 1%;" {{!}} [[File:Item_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:Item_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="font-size: 2em; text-align: center;" | {{PAGENAME}}
+
{| style="margin:auto; width: 100%"
 
|-
 
|-
 +
| style="width: 1%; font-size:150%; font-weight: bold" | Comfort
 +
| <hr>
 +
|}
  
| style="text-align: center;" | [[File:{{{image}}}|200px]]
+
{| style="margin:auto; width: 100%"
|-
+
| style="width: 1%" | [[File:Icon_Comfort_Work.png|30px|link=Comfort|Work Comfort]]
 +
| style="width: 32%; text-align:left;" | <b>{{{ComfortWork|}}}</b>
 +
| style="width: 1%" | [[File:Icon_Comfort_Leisure.png|30px|link=Comfort|Leisure Comfort]]
 +
| style="width: 32%; text-align:left;" | <b>{{{ComfortLeisure|}}}</b>
 +
| style="width: 1%" | [[File:Icon_Comfort_Sleep.png|30px|link=Comfort|Sleep Comfort]]
 +
| style="width: 32%; text-align:left;" | <b>{{{ComfortSleep|}}}</b>
 +
|}
 +
 
 +
{| style="margin:auto; width: 100%"
 +
| style="width: 1%; font-size:150%; font-weight: bold" | Power
 +
| <hr>
 +
|}
 +
 
 +
{| style="margin:auto; width: 100%"
 +
| style="width: 1%" | [[File:Icon_Power.png|30px|link=Power|Power Consumption]]
 +
| style="width: 99%; text-align:left;" | <b>Consumption: {{{PowerLow|}}}</b>
 +
{{#if: {{{PowerHigh|}}} |
 +
{{!}}-
 +
{{!}} 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="margin:auto; width: 100%"
 +
| style="width: 1%; font-size:150%; font-weight: bold;" | Byproducts
 +
| <hr>
 +
|}
 +
 
 +
{| style="margin:auto; width: 100%"
 +
| style="width: 1%" | [[File:Icon_Heat.png|30px|link=Temperature|Heat]]
 +
| style="width: 47%; text-align:left;" | <b>{{{Heat|}}}</b>
 +
| style="width: 1%" | [[File:Icon_Hazardous_Gas.png|30px|link=HazardousGas|Hazardous Gas]]
 +
| style="width: 47%; text-align:left;" | <b>{{{HazardousGas|}}}</b>
 +
|}
 +
 
 +
{| style="margin:auto; width: 100%"
 +
| style="width: 1%; font-size:150%; font-weight: bold" | Condition
 +
| <hr>
 +
|}
 +
 
 +
{| style="margin:auto; width: 100%"
 +
| style="width: 1%" | [[File:Icon_Condition.png|30px|link=Condition|Condition]]
 +
| style="width: 99%; text-align:left;" | <b>{{{Condition|}}} Points</b>
 +
|}
  
| header10 = {{ #if: {{{power_usage|}}} | Operation }}
+
{| style="margin:auto; width: 100%"
| label11 = Power Usage
+
| style="width: 1%; font-size:150%; font-weight: bold; white-space: nowrap;" | Needed Research
| data11 = {{{power_usage}}}
+
| <hr>
|-
+
|}
  
 +
{| style="margin:auto; width: 100%"
 +
| style="width: 1%; vertical-align: top;" | [[File:Icon_Research.png|30px|link=Research|Research]]
 +
| style="text-align: left;" | <b>[[Research|{{{NeededResearch|}}}]]</b>
 
|}
 
|}
  
<noinclude>
+
</div>
Removed class
 
Removed Margin
 
</noinclude>
 

Revision as of 15:13, 24 March 2025

Infobox Facility
Build cost
Comfort
Work Comfort Leisure Comfort Sleep Comfort
Power
Power Consumption Consumption:
Byproducts
Heat Hazardous Gas
Condition
Condition Points
Needed Research
Research [[Research|]]