Difference between revisions of "Template:Facilityinfobox"

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: right; margin: 0 0 1em 1em; padding: 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;">{{{title|{{PAGENAME}}}}}</div>
+
<div class="infobox-title" style= "font-size: 2em; text-align: center;">{{PAGENAME}}</div>
<div class="infobox-image" style= "text-align: center;">[[File:{{{image}}}|200px]]</div>
+
<div class="infobox-image" style= "text-align: center;">[[File:Structure_{{PAGENAME}}.png|300px]]</div>
  
 
{| style="margin:auto; width: 100%"
 
{| style="margin:auto; width: 100%"
 
| style="width: 1%; font-size:150%; font-weight: bold; white-space: nowrap;" | Build cost
 
| style="width: 1%; font-size:150%; font-weight: bold; white-space: nowrap;" | Build cost
| <hr>
+
| style="width: 99%;" | <hr>
|-
 
| style="width: 1%" | {{{BuildCost1File|}}}
 
| style="width: 99%; text-align:left;" | {{{BuildCost1|}}}
 
|-
 
| style="width: 1%" | {{{BuildCost2File|}}}
 
| style="width: 99%; text-align:left;" | {{{BuildCost2|}}}
 
|-
 
| style="width: 1%" | {{{BuildCost3File|}}}
 
| style="width: 99%; text-align:left;" | {{{BuildCost3|}}}
 
 
|-
 
|-
 +
|}
 +
 +
{| style="margin:auto; width:100%;"
 +
{{#if: {{{BuildCost1|}}} |
 +
  {{!}} style="width: 1%;" {{!}} [[File:Item_{{{BuildCost1|}}}.png|30px|link={{{BuildCost1|}}}|{{{BuildCost1|}}}]]
 +
  {{!}} style="width: 1%; text-align:right; font-weight: bold;" {{!}} {{{BuildCost1Quantity|}}}
 +
  {{!}} style="width: 98%; text-align:left; font-weight: bold;" {{!}} [[{{{BuildCost1|}}}|{{{BuildCost1|}}}]]
 +
  {{!}}-
 +
|}}
 +
{{#if: {{{BuildCost2|}}} |
 +
  {{!}} style="width: 1%" {{!}} [[File:Item_{{{BuildCost2|}}}.png|30px|link={{{BuildCost2|}}}|{{{BuildCost2|}}}]]
 +
  {{!}} style="width: 1%; text-align:right; font-weight: bold;" {{!}} {{{BuildCost2Quantity|}}}
 +
  {{!}} style="width: 98%; text-align:left; font-weight: bold;" {{!}} [[{{{BuildCost2|}}}|{{{BuildCost2|}}}]]
 +
  {{!}}-
 +
|}}
 +
{{#if: {{{BuildCost3|}}} |
 +
  {{!}} style="width: 1%" {{!}} [[File:Item_{{{BuildCost3|}}}.png|30px|link={{{BuildCost3|}}}|{{{BuildCost3|}}}]]
 +
  {{!}} style="width: 1%; text-align:right; font-weight: bold;" {{!}} {{{BuildCost3Quantity|}}}
 +
  {{!}} style="width: 98%; text-align:left; font-weight: bold;" {{!}} [[{{{BuildCost3|}}}|{{{BuildCost3|}}}]]
 +
  {{!}}-
 +
|}}
 +
{{#if: {{{BuildCost4|}}} |
 +
  {{!}} style="width: 1%" {{!}} [[File:Item_{{{BuildCost4|}}}.png|30px|link={{{BuildCost4|}}}|{{{BuildCost4|}}}]]
 +
  {{!}} style="width: 1%; text-align:right; font-weight: bold;" {{!}} {{{BuildCost4Quantity|}}}
 +
  {{!}} style="width: 98%; text-align:left; font-weight: bold;" {{!}} [[{{{BuildCost4|}}}|{{{BuildCost4|}}}]]
 +
  {{!}}-
 +
|}}
 +
{{#if: {{{BuildCost5|}}} |
 +
  {{!}} style="width: 1%" {{!}} [[File:Item_{{{BuildCost5|}}}.png|30px|link={{{BuildCost5|}}}|{{{BuildCost5|}}}]]
 +
  {{!}} style="width: 1%; text-align:right; font-weight: bold;" {{!}} {{{BuildCost5Quantity|}}}
 +
  {{!}} style="width: 98%; text-align:left; font-weight: bold;" {{!}} [[{{{BuildCost5|}}}|{{{BuildCost5|}}}]]
 +
  {{!}}-
 +
|}}
 +
{{#if: {{{BuildCost6|}}} |
 +
  {{!}} style="width: 1%;" {{!}} [[File:Item_{{{BuildCost6|}}}.png|30px|link={{{BuildCost6|}}}|{{{BuildCost6|}}}]]
 +
  {{!}} style="width: 1%; text-align:right; font-weight: bold;" {{!}} {{{BuildCost6Quantity|}}}
 +
  {{!}} style="width: 98%; text-align:left; font-weight: bold;" {{!}} [[{{{BuildCost6|}}}|{{{BuildCost6|}}}]]
 +
  {{!}}-
 +
|}}
 
|}
 
|}
  
Line 22: Line 52:
 
| style="width: 1%; font-size:150%; font-weight: bold" | Comfort
 
| style="width: 1%; font-size:150%; font-weight: bold" | Comfort
 
| <hr>
 
| <hr>
|-
 
 
|}
 
|}
  
 
{| 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: 1%" | [[File:Icon_Comfort_Work.png|30px|link=Comfort|Work Comfort]]
| style="width: 32%; text-align:left;" | <b>{{{Comfort_Work}}}</b>
+
| style="width: 32%; text-align:left;" | <b>{{{ComfortWork|}}}</b>
 
| style="width: 1%" | [[File:Icon_Comfort_Leisure.png|30px|link=Comfort|Leisure Comfort]]
 
| style="width: 1%" | [[File:Icon_Comfort_Leisure.png|30px|link=Comfort|Leisure Comfort]]
| style="width: 32%; text-align:left;" | <b>{{{Comfort_Leisure}}}</b>
+
| style="width: 32%; text-align:left;" | <b>{{{ComfortLeisure|}}}</b>
 
| style="width: 1%" | [[File:Icon_Comfort_Sleep.png|30px|link=Comfort|Sleep Comfort]]
 
| style="width: 1%" | [[File:Icon_Comfort_Sleep.png|30px|link=Comfort|Sleep Comfort]]
| style="width: 32%; text-align:left;" | <b>{{{Comfort_Sleep}}}</b>
+
| style="width: 32%; text-align:left;" | <b>{{{ComfortSleep|}}}</b>
|-
 
 
|}
 
|}
  
 
{| 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" | Power
 
| <hr>
 
| <hr>
|-
 
 
|}
 
|}
  
 
{| style="margin:auto; width: 100%"
 
{| style="margin:auto; width: 100%"
|-
+
| style="width: 1%" | [[File:Icon_Power.png|30px|link=Power|Power Consumption]]
| style="width: 1%" | [[File:Icon_Power.png|30px|link=Power|Power Consumption]]
+
| style="width: 99%; text-align:left;" | <b>Consumption: {{{PowerLow|}}}</b>
| style="width: 47%; text-align:left;" | <b>{{{Power_Low}}}</b>
+
{{#if: {{{PowerHigh|}}} |
| style="width: 1%" | [[File:Icon_Power_High.png|30px|link=Power|High Power needed?]]
+
{{!}}-
| style="width: 47%; text-align:left;" | <b>{{{Power_High}}}</b>
+
{{!}} 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="margin:auto; width: 100%"
|-
 
 
| style="width: 1%; font-size:150%; font-weight: bold;" | Byproducts
 
| style="width: 1%; font-size:150%; font-weight: bold;" | Byproducts
 
| <hr>
 
| <hr>
|-
 
 
|}
 
|}
  
 
{| style="margin:auto; width: 100%"
 
{| style="margin:auto; width: 100%"
|-
 
 
| style="width: 1%" | [[File:Icon_Heat.png|30px|link=Temperature|Heat]]
 
| style="width: 1%" | [[File:Icon_Heat.png|30px|link=Temperature|Heat]]
| style="width: 47%; text-align:left;" | <b>{{{Heat}}}</b>
+
| style="width: 47%; text-align:left;" | <b>{{{Heat|}}}</b>
| style="width: 1%" | [[File:Icon_Hazardous_Gas.png|30px|link=Hazardous_Gas|Hazardous Gas]]
+
| style="width: 1%" | [[File:Icon_Hazardous_Gas.png|30px|link=HazardousGas|Hazardous Gas]]
| style="width: 47%; text-align:left;" | <b>{{{Hazardous_Gas}}}</b>
+
| style="width: 47%; text-align:left;" | <b>{{{HazardousGas|}}}</b>
|-
 
 
|}
 
|}
  
 
{| style="margin:auto; width: 100%"
 
{| style="margin:auto; width: 100%"
|-
 
 
| style="width: 1%; font-size:150%; font-weight: bold" | Condition
 
| style="width: 1%; font-size:150%; font-weight: bold" | Condition
 
| <hr>
 
| <hr>
|-
 
 
|}
 
|}
  
 
{| style="margin:auto; width: 100%"
 
{| style="margin:auto; width: 100%"
|-
 
 
| style="width: 1%" | [[File:Icon_Condition.png|30px|link=Condition|Condition]]
 
| style="width: 1%" | [[File:Icon_Condition.png|30px|link=Condition|Condition]]
| style="width: 99%; text-align:left;" | <b>{{{Condition}}} Points</b>
+
| style="width: 99%; text-align:left;" | <b>{{{Condition|}}} Points</b>
|-
 
 
|}
 
|}
  
 
{| style="margin:auto; width: 100%"
 
{| style="margin:auto; width: 100%"
|-
 
 
| 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="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%;" | [[File:Icon_Research.png|30px|link=Research|Research]]
+
| style="text-align: left;" | <b>[[Research|{{{NeededResearch|}}}]]</b>
| style="text-align:left;" | <b>[[Research|{{{Needed_Research}}}]]</b>
 
|-
 
 
|}
 
|}
  
 
</div>
 
</div>

Latest revision as of 11:08, 24 March 2025

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