Difference between revisions of "Template:Infobox building"
From BotE Wiki
(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}}}|{{ | + | {| style="border:2px solid #{{#if:{{{FRAME|}}}|{{{FRAME}}}|{{col|frame|{{{2}}} }} }};background:#{{#if:{{{BG1|}}}|{{{BG1}}}|{{#switch: {{{2}}} |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }}}};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}}}|{{ | + | | style="background:#000000;border:2px solid #{{#if:{{{FRAME|}}}|{{{FRAME}}}|{{col|frame|{{{2}}} }} }}" | {{#if:{{{IMAGE|}}}|{{image|Buildings/{{{IMAGE}}} }}|{{image-png|Buildings/{{{8}}} }}|}} |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }}}}" | {{#if:{{{IMAGE|}}}|{{image|Buildings/{{{IMAGE}}} }}|{{image-png|Buildings/{{{8}}} }}|}} | ||
|} | |} | ||
| | | | ||
− | {| style="background:#{{#if:{{{BG2|}}}|{{{BG2}}}|{{ | + | {| style="background:#{{#if:{{{BG2|}}}|{{{BG2}}}|{{col|light|{{{2}}} }} }};border:2px solid #{{#if:{{{FRAME|}}}|{{{FRAME}}}|{{col|frame|{{{2}}} }} }}" cellspacing="2" |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }}}};border:2px solid #{{#if:{{{FRAME|}}}|{{{FRAME}}}|{{ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }}}}" cellspacing="2" | ||
|- | |- | ||
− | ! style="text-align: center; background:#{{#if:{{{HBG1|}}}|{{{HBG1}}}|{{#if:{{{FRAME|}}}|{{{FRAME}}}|{{ | + | ! style="text-align: center; background:#{{#if:{{{HBG1|}}}|{{{HBG1}}}|{{#if:{{{FRAME|}}}|{{{FRAME}}}|{{col|frame|{{{2}}} }} }} }}; font-size: 130%" colspan="3" | {{{3}}} |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }}}}}}; font-size: 130%" colspan="3" | {{{3}}} | ||
|- | |- | ||
| colspan="3" | {{{5}}} | | colspan="3" | {{{5}}} | ||
|- | |- | ||
− | ! style="text-align: center; background:#{{#if:{{{HBG2|}}}|{{{HBG2}}}|{{#if:{{{BG1|}}}|{{{BG1}}}|{{ | + | ! style="text-align: center; background:#{{#if:{{{HBG2|}}}|{{{HBG2}}}|{{#if:{{{BG1|}}}|{{{BG1}}}|{{col|dark|{{{2}}} }} }} }}" | Production |
− | + | ! style="text-align: center; background:#{{#if:{{{HBG2|}}}|{{{HBG2}}}|{{#if:{{{BG1|}}}|{{{BG1}}}|{{col|dark|{{{2}}} }} }} }}" | Construction costs | |
− | + | ! style="text-align: center; background:#{{#if:{{{HBG2|}}}|{{{HBG2}}}|{{#if:{{{BG1|}}}|{{{BG1}}}|{{col|dark|{{{2}}} }} }} }}" | Prerequisites | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | }}}}}}" | Production | ||
− | ! style="text-align: center; background:#{{#if:{{{HBG2|}}}|{{{HBG2}}}|{{#if:{{{BG1|}}}|{{{BG1}}}|{{ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }}}}}}" | Construction costs | ||
− | ! style="text-align: center; background:#{{#if:{{{HBG2|}}}|{{{HBG2}}}|{{#if:{{{BG1|}}}|{{{BG1}}}|{{ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }}}}}}" | 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}}} | + | -->{{#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 | + | -->{{#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 --> }}