Difference between revisions of "Template:Infobox building"

From BotE Wiki
Jump to: navigation, search
m (Deleted a malicious blank)
(Replaced colour switches with T:col)
 
(One intermediate revision by one other user 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 />|}}<!--  

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 -->
}}