Difference between revisions of "Template:Infobox building"

From BotE Wiki
Jump to: navigation, search
(new)
 
(Replaced colour switches with T:col)
 
(2 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
|-
 
|-
 
|
 
|
{| style="border:2px solid #{{#if:{{{FRAME|}}}|{{{FRAME}}}|{{#switch: {{{2}}}
+
{| style="border:2px solid #{{#if:{{{FRAME|}}}|{{{FRAME}}}|{{col|frame|{{{2}}} }} }};background:#{{#if:{{{BG1|}}}|{{{BG1}}}|{{#switch: {{{2}}}
| 1 = 7d85e6
 
| 2 = f1e13e
 
| 3 = e37373
 
| 4 = 83e57b
 
| 5 = cd76e0
 
| 6 = 7ee5dc
 
| #default = DADADA
 
}}}};background:#{{#if:{{{BG1|}}}|{{{BG1}}}|{{#switch: {{{2}}}
 
 
| 1 = b3b8f4
 
| 1 = b3b8f4
 
| 2 = f8fba3
 
| 2 = f8fba3
Line 23: Line 15:
 
|  
 
|  
 
{| cellpadding="0"
 
{| cellpadding="0"
| style="background:#000000;border:2px solid #{{#if:{{{FRAME|}}}|{{{FRAME}}}|{{#switch: {{{2}}}
+
| style="background:#000000;border:2px solid #{{#if:{{{FRAME|}}}|{{{FRAME}}}|{{col|frame|{{{2}}} }} }}" | {{#if:{{{IMAGE|}}}|{{image|Buildings/{{{IMAGE}}} }}|{{image-png|Buildings/{{{8}}} }}|}}
| 1 = 7d85e6
 
| 2 = f1e13e
 
| 3 = e37373
 
| 4 = 83e57b
 
| 5 = cd76e0
 
| 6 = 7ee5dc
 
| #default = DADADA
 
}}}}" | {{#if:{{{IMAGE|}}}|{{image|Buildings/{{{IMAGE}}} }}|{{image-png|Buildings/{{{8}}} }}|}}
 
 
|}
 
|}
 
|
 
|
{| style="background:#{{#if:{{{BG2|}}}|{{{BG2}}}|{{#switch: {{{2}}}
+
{| style="background:#{{#if:{{{BG2|}}}|{{{BG2}}}|{{col|light|{{{2}}} }} }};border:2px solid #{{#if:{{{FRAME|}}}|{{{FRAME}}}|{{col|frame|{{{2}}} }} }}" cellspacing="2"
| 1 = ececff
 
| 2 = fffeec
 
| 3 = ffecec
 
| 4 = efffec
 
| 5 = fdecff
 
| 6 = ecfffd
 
| #default = FFFFFF
 
}}}};border:2px solid #{{#if:{{{FRAME|}}}|{{{FRAME}}}|{{#switch: {{{2}}}
 
| 1 = 7d85e6
 
| 2 = f1e13e
 
| 3 = e37373
 
| 4 = 83e57b
 
| 5 = cd76e0
 
| 6 = 7ee5dc
 
| #default = DADADA
 
}}}}" cellspacing="2"
 
 
|-
 
|-
! style="text-align: center; background:#{{#if:{{{HBG1|}}}|{{{HBG1}}}|{{#if:{{{FRAME|}}}|{{{FRAME}}}|{{#switch: {{{2}}}
+
! style="text-align: center; background:#{{#if:{{{HBG1|}}}|{{{HBG1}}}|{{#if:{{{FRAME|}}}|{{{FRAME}}}|{{col|frame|{{{2}}} }} }} }}; font-size: 130%" colspan="3" | {{{3}}}
| 1 = 7d85e6
 
| 2 = f1e13e
 
| 3 = e37373
 
| 4 = 83e57b
 
| 5 = cd76e0
 
| 6 = 7ee5dc
 
| #default = DADADA
 
}}}}}}; font-size: 130%" colspan="3" | {{{3}}}
 
 
|-
 
|-
 
| colspan="3" | {{{5}}}
 
| colspan="3" | {{{5}}}
 
|-
 
|-
! style="text-align: center; background:#{{#if:{{{HBG2|}}}|{{{HBG2}}}|{{#if:{{{BG1|}}}|{{{BG1}}}|{{#switch: {{{2}}}
+
! style="text-align: center; background:#{{#if:{{{HBG2|}}}|{{{HBG2}}}|{{#if:{{{BG1|}}}|{{{BG1}}}|{{col|dark|{{{2}}} }} }} }}" | Production
| 1 = b3b8f4
+
! style="text-align: center; background:#{{#if:{{{HBG2|}}}|{{{HBG2}}}|{{#if:{{{BG1|}}}|{{{BG1}}}|{{col|dark|{{{2}}} }} }} }}" | Construction costs
| 2 = f8fba3
+
! style="text-align: center; background:#{{#if:{{{HBG2|}}}|{{{HBG2}}}|{{#if:{{{BG1|}}}|{{{BG1}}}|{{col|dark|{{{2}}} }} }} }}" | Prerequisites
| 3 = ecb1b1
 
| 4 = bef5b9
 
| 5 = e2b1ec
 
| 6 = b5f2ed
 
| #default = F0F0F0
 
}}}}}}" | Production
 
! style="text-align: center; background:#{{#if:{{{HBG2|}}}|{{{HBG2}}}|{{#if:{{{BG1|}}}|{{{BG1}}}|{{#switch: {{{2}}}
 
| 1 = b3b8f4
 
| 2 = f8fba3
 
| 3 = ecb1b1
 
| 4 = bef5b9
 
| 5 = e2b1ec
 
| 6 = b5f2ed
 
| #default = F0F0F0
 
}}}}}}" | Construction costs
 
! style="text-align: center; background:#{{#if:{{{HBG2|}}}|{{{HBG2}}}|{{#if:{{{BG1|}}}|{{{BG1}}}|{{#switch: {{{2}}}
 
| 1 = b3b8f4
 
| 2 = f8fba3
 
| 3 = ecb1b1
 
| 4 = bef5b9
 
| 5 = e2b1ec
 
| 6 = b5f2ed
 
| #default = F0F0F0
 
}}}}}}" | Prerequisites
 
 
|-
 
|-
 
| style="text-align: center;" |  
 
| style="text-align: center;" |  
Line 105: Line 41:
 
  -->{{#ifexpr: {{{68}}}|{{{68}}}deritium<br />|}}<!--  
 
  -->{{#ifexpr: {{{68}}}|{{{68}}}deritium<br />|}}<!--  
 
  -->{{#ifexpr: {{{69}}}|{{{69}}}credits<br />|}}<!--  
 
  -->{{#ifexpr: {{{69}}}|{{{69}}}credits<br />|}}<!--  
  -->{{#ifexpr: {{{70}}}|{{{70}}}moral<br />|}}<!--  
+
  -->{{#ifexpr: {{{70}}}|{{{70}}}morale<br />|}}<!--  
 
  -->{{#ifexpr: {{{71}}}|{{{71}}}empire-wide morale<br />|}}<!--  
 
  -->{{#ifexpr: {{{71}}}|{{{71}}}empire-wide morale<br />|}}<!--  
 
  -->{{#ifexpr: {{{72}}}|{{{72}}}% food bonus<br />|}}<!--  
 
  -->{{#ifexpr: {{{72}}}|{{{72}}}% food bonus<br />|}}<!--  
Line 179: Line 115:
 
  -->{{#ifexpr: {{{9}}}|max {{{9}}}{{#ifexpr: {{{10}}}|{{#ifeq: {{{10}}}|{{{1}}}|per system|of ID {{{10}}}per system}}|}}<br />|}}<!--  
 
  -->{{#ifexpr: {{{9}}}|max {{{9}}}{{#ifexpr: {{{10}}}|{{#ifeq: {{{10}}}|{{{1}}}|per system|of ID {{{10}}}per system}}|}}<br />|}}<!--  
 
  -->{{#ifexpr: {{{11}}}|max {{{11}}}{{#ifexpr: {{{12}}}|{{#ifeq: {{{12}}}|{{{1}}}|per empire|of ID {{{12}}}per empire}}|}}<br />|}}<!--  
 
  -->{{#ifexpr: {{{11}}}|max {{{11}}}{{#ifexpr: {{{12}}}|{{#ifeq: {{{12}}}|{{{1}}}|per empire|of ID {{{12}}}per empire}}|}}<br />|}}<!--  
  -->{{#ifexpr: {{{18}}}|min. {{{18}}} inhabitants<br />|}}<!--  
+
  -->{{#ifexpr: {{{18}}}|min {{{18}}}inhabitants<br />|}}<!--  
 
  -->{{#ifexpr: {{{19}}}|min {{{19}}}{{#ifexpr: {{{20}}}|{{#ifeq: {{{20}}}|{{{1}}}||of ID {{{20}}} }}|}}<br />|}}<!--  
 
  -->{{#ifexpr: {{{19}}}|min {{{19}}}{{#ifexpr: {{{20}}}|{{#ifeq: {{{20}}}|{{{1}}}||of ID {{{20}}} }}|}}<br />|}}<!--  
 
  -->{{#ifexpr: {{{21}}}|min {{{21}}}{{#ifexpr: {{{22}}}|{{#ifeq: {{{22}}}|{{{1}}}|in empire|of ID {{{22}}}in empire}}|}}<br />|}}<!--  
 
  -->{{#ifexpr: {{{21}}}|min {{{21}}}{{#ifexpr: {{{22}}}|{{#ifeq: {{{22}}}|{{{1}}}|in empire|of ID {{{22}}}in empire}}|}}<br />|}}<!--  

Latest revision as of 22:03, 16 September 2013

This is a template and changes to it will effect other pages.

Please consider discussing any changes on the talk page before implementing them.

{{Infobox building
<!-- optional image name -->
|IMAGE = 
<!-- optional background and frame colours -->
|BG1 = 
|BG2 = 
|FRAME = 
<!-- optional heading background colours -->
|HBG1 = 
|HBG2 = 
<!-- data from Buildings.data -->
}}