Difference between revisions of "Template:Infobox building"

From BotE Wiki
Jump to: navigation, search
(Moral = english: morale (e at the end))
(Replaced colour switches with T:col)
 
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;" |  

Latest revision as of 23: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 -->
}}