Difference between revisions of "Template: FrontpageBox"
From Teknologisk videncenter
m |
m |
||
Line 1: | Line 1: | ||
− | <div style="background-color: #{{{ | + | <div style="background-color: #{{{bgcolor|FAFAFF}}}; width: {{{width|100}}}%; border: 1px #{{ |
− | #switch:{{{ | + | #switch:{{{colorcombination}}} |
|1=AFCCEB | |1=AFCCEB | ||
|2=F5DF9A | |2=F5DF9A | ||
Line 6: | Line 6: | ||
}} solid; margin-bottom: 5px;margin-left:-1px"> | }} solid; margin-bottom: 5px;margin-left:-1px"> | ||
<div style="height: 16pt; background-color: #{{ | <div style="height: 16pt; background-color: #{{ | ||
− | #switch:{{{ | + | #switch:{{{colorcombination}}} |
|1=AFCCEB | |1=AFCCEB | ||
|2=F5DF9A | |2=F5DF9A | ||
|3=D2D2F0 | |3=D2D2F0 | ||
}}; border: 0px; border-bottom: 1px #{{ | }}; border: 0px; border-bottom: 1px #{{ | ||
− | #switch:{{{ | + | #switch:{{{colorcombination}}} |
|1=81A7D1 | |1=81A7D1 | ||
|2=CDB772 | |2=CDB772 | ||
|3=AAAAC8 | |3=AAAAC8 | ||
}}; border-style: solid; font: 11pt; font-weight: bolder; position: relative;"> | }}; border-style: solid; font: 11pt; font-weight: bolder; position: relative;"> | ||
− | <div style="position: absolute; top: 0; left: 0;">[[Image:{{{ | + | <div style="position: absolute; top: 0; left: 0;">[[Image:{{{picture}}}|left|{{{picturesize|35}}}px|link=]]</div> |
<div style="padding-left: {{ | <div style="padding-left: {{ | ||
<!-- | <!-- | ||
− | #if: {{{picturesize|}}}|{{#expr: {{{picturesize}}} + 3}}|38}}px; color:#333;">{{{ | + | #if: {{{picturesize|}}}|{{#expr: {{{picturesize}}} + 3}}|38}}px; color:#333;">{{{headline}}}</div></div> |
--> | --> | ||
− | #if: {{{picturesize|}}}|38px; color:#333;">{{{ | + | #if: {{{picturesize|}}}|38px; color:#333;">{{{headline}}}</div></div> |
<div style="clear: both; font-size: 95%; margin: {{{margin|1.5em 0.5em 0.5em 0.5em}}}"> | <div style="clear: both; font-size: 95%; margin: {{{margin|1.5em 0.5em 0.5em 0.5em}}}"> | ||
− | {{{ | + | {{{content}}} |
</div> | </div> | ||
− | {{#if: {{{ | + | {{#if: {{{bottombox|}}}|<div style="background-color: #{{ |
− | #switch:{{{ | + | #switch:{{{colorcombination}}} |
|1=D9E6F3 | |1=D9E6F3 | ||
|2=FFF0CD | |2=FFF0CD | ||
|3=E3E3F5 | |3=E3E3F5 | ||
}}; border-top: #{{ | }}; border-top: #{{ | ||
− | #switch:{{{ | + | #switch:{{{colorcombination}}} |
|1=AFCCEB | |1=AFCCEB | ||
|2=F5DF9A | |2=F5DF9A | ||
Line 42: | Line 42: | ||
<noinclude> | <noinclude> | ||
<pre> | <pre> | ||
− | {{ | + | {{FrontpageBox |
− | | | + | |colorcombination = 1(blue) 2(yellow) 3(purple) |
− | | | + | |width = box width in percent - (Optional) |
− | | | + | |image = |
− | |picturesize | + | |picturesize = in px (Optional) |
− | | | + | |headline = Headline in top box |
− | |margin | + | |margin = textmargin to boxedge - (Optional) |
− | | | + | |bgcolor = (box backgroung color - (Optional) |
− | | | + | |content = The main content of the box |
− | | | + | |bottombox = (Optional) |
}} | }} | ||
</pre> | </pre> | ||
</noinclude> | </noinclude> |
Revision as of 08:28, 31 July 2011
[[Image:{{{picture}}}|left|35px|link=]]
{{{headline}}}
{{{content}}}
{{FrontpageBox |colorcombination = 1(blue) 2(yellow) 3(purple) |width = box width in percent - (Optional) |image = |picturesize = in px (Optional) |headline = Headline in top box |margin = textmargin to boxedge - (Optional) |bgcolor = (box backgroung color - (Optional) |content = The main content of the box |bottombox = (Optional) }}