Difference between revisions of "Template: FrontpageBox~"
From Teknologisk videncenter
m |
m |
||
Line 1: | Line 1: | ||
− | <div style="background-color: #{{{bgcolor|FAFAFF}}}; width: {{{width|100}}}%; border: | + | <div style="background-color: #{{{bgcolor|FAFAFF}}}; width: {{{width|100}}}%; border: #{{ |
#switch:{{{colorcombination}}} | #switch:{{{colorcombination}}} | ||
|1=AFCCEB | |1=AFCCEB | ||
|2=F5DF9A | |2=F5DF9A | ||
|3=D2D2F0 | |3=D2D2F0 | ||
− | }} solid; margin-bottom: 5px;margin-left:-1px; border-radius:5px; -moz-border-radius:5pxem; -webkit-border-radius:5px;"> | + | }} 1px solid; margin-bottom: 5px;margin-left:-1px; border-radius:5px; -moz-border-radius:5pxem; -webkit-border-radius:5px;"> |
<div style="height: 16pt; background-color: #{{ | <div style="height: 16pt; background-color: #{{ | ||
#switch:{{{colorcombination}}} | #switch:{{{colorcombination}}} | ||
Line 19: | Line 19: | ||
<div style="padding-left: {{ | <div style="padding-left: {{ | ||
#if: {{{picturesize|}}}|{{#expr: {{{picturesize}}} + 3}}|38}}px; color:#333;">{{{headline}}}</div></div> | #if: {{{picturesize|}}}|{{#expr: {{{picturesize}}} + 3}}|38}}px; color:#333;">{{{headline}}}</div></div> | ||
− | <div style="clear: both; font-size: 95%; margin: {{{margin|1.5em | + | <div style="clear: both; font-size: 95%; margin: {{{margin|1.5em 0.5em 0.5em 0.5em}}}"> |
{{{content}}} | {{{content}}} | ||
</div> | </div> | ||
+ | |||
{{#if: {{{bottombox|}}}|<div style="background-color: #{{ | {{#if: {{{bottombox|}}}|<div style="background-color: #{{ | ||
#switch:{{{colorcombination}}} | #switch:{{{colorcombination}}} |
Revision as of 14:03, 31 July 2011
[[Image:{{{picture}}}|left|35px|link=]]
{{{headline}}}
{{{content}}}
{{FrontpageBox |colorcombination = 1(blue) 2(yellow) 3(purple) |width = box width in percent - (Optional) |picture = |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) }}