Difference between revisions of "Template: FrontpageBox"

From Teknologisk videncenter
Jump to: navigation, search
m
m
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style="background-color: #{{{bgfarve|FAFAFF}}}; width: {{{bredde|100}}}%; border: 1px #{{
+
<div style="background-color: #{{{bgcolor|FAFAFF}}}; width: {{{width|98}}}%; border: #{{
  #switch:{{{farvekombination}}}
+
  #switch:{{{colorcombination}}}
 
  |1=AFCCEB
 
  |1=AFCCEB
 
  |2=F5DF9A
 
  |2=F5DF9A
 
  |3=D2D2F0
 
  |3=D2D2F0
  }} solid; margin-bottom: 5px;margin-left:-1px">
+
|4=B7B7B7
 +
|5=2FABFF
 +
|6=77E0E8
 +
|7=99B3FF
 +
|8=CCCC00
 +
|9=FF7F7F
 +
|10=FF9FC0
 +
|11=CF8FFF
 +
|#default=6EF7A7
 +
  }} 1px solid; margin-bottom: -10px;margin-left:-1px; border-radius:5px; -moz-border-radius:5px; -webkit-border-radius:5px;">
 
<div style="height: 16pt; background-color: #{{
 
<div style="height: 16pt; background-color: #{{
  #switch:{{{farvekombination}}}
+
  #switch:{{{colorcombination}}}
 
  |1=AFCCEB
 
  |1=AFCCEB
 
  |2=F5DF9A
 
  |2=F5DF9A
 
  |3=D2D2F0
 
  |3=D2D2F0
 +
|4=BFBFBF
 +
|5=2FABFF
 +
|6=77E0E8
 +
|7=99B3FF
 +
|8=FFFF00
 +
|9=FF3F3F
 +
|10=FF9FC0
 +
|11=CF8FFF
 +
|#default=6EF7A7
 
  }}; border: 0px; border-bottom: 1px #{{
 
  }}; border: 0px; border-bottom: 1px #{{
  #switch:{{{farvekombination}}}
+
  #switch:{{{colorcombination}}}
 
  |1=81A7D1
 
  |1=81A7D1
 
  |2=CDB772
 
  |2=CDB772
 
  |3=AAAAC8
 
  |3=AAAAC8
  }}; border-style: solid; font: 11pt; font-weight: bolder; position: relative;">
+
|4=EFEFEF
<div style="position: absolute; top: 0; left: 0;">[[Image:{{{billede}}}|left|{{{picturesize|35}}}px|link=]]</div>
+
|5=DFF2FF
 +
|6=D0F8FF
 +
|7=E0E8FF
 +
|8=FFFF99
 +
|9=FFDFDF
 +
|10=FFDFEF
 +
|11=F1DFFF
 +
|#default=C5FCDC
 +
  }}; font: 11pt; font-weight: bolder; position: relative;border-top-right-radius:4px; -moz-border-radius-topright:4px; -webkit-border-top-right-radius:4px;border-top-left-radius:4px; -moz-border-radius-topleft:4px; -webkit-border-top-left-radius:4px;">
 +
<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;">{{{overskrift}}}</div></div>
+
  #if: {{{picturesize|}}}|{{#expr: {{{picturesize}}} + 3}}|38}}px; text-align: center;font-weight:bold; font: 140%/130% Georgia;  color: #000000;">{{{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|0em 0.5em 0em 0.5em}}}">
 
 
{{{indhold}}}
 
 
</div>
 
</div>
{{#if: {{{bundboks|}}}|<div style="background-color: #{{
+
{{{content}}}
  #switch:{{{farvekombination}}}
+
{{#if: {{{bottombox|}}}|<div style="background-color: #{{
 +
  #switch:{{{colorcombination}}}
 
  |1=D9E6F3
 
  |1=D9E6F3
 
  |2=FFF0CD
 
  |2=FFF0CD
 
  |3=E3E3F5
 
  |3=E3E3F5
 +
|4=EFEFEF
 +
|5=DFF2FF
 +
|6=D0F8FF
 +
|7=E0E8FF
 +
|8=FFFF99
 +
|9=FFDFDF
 +
|10=FFDFEF
 +
|11=F1DFFF
 +
|#default=C5FCDC
 
  }}; border-top: #{{
 
  }}; border-top: #{{
  #switch:{{{farvekombination}}}
+
  #switch:{{{colorcombination}}}
 
  |1=AFCCEB
 
  |1=AFCCEB
 
  |2=F5DF9A
 
  |2=F5DF9A
 
  |3=D2D2F0
 
  |3=D2D2F0
  }} 1px solid; text-align: right; font-size: 90%; padding-right: 0.5em">{{{bundboks}}}</div>}}
+
  |4=BFBFBF
 +
|5=2FABFF
 +
|6=77E0E8
 +
|7=99B3FF
 +
|8=FFFF00
 +
|9=FF3F3F
 +
|10=FF9FC0
 +
|11=CF8FFF
 +
|#default=6EF7A7
 +
}} 1px solid; text-align: right; font-size: 90%; padding-right: 0.5em;border-bottom-right-radius:5px; -moz-border-radius-bottomright:5px; -webkit-border-bottom-right-radius:5px;border-bottom-left-radius:5px; -moz-border-radius-bottomleft:5px; -webkit-border-bottom-left-radius:5px;">{{{bottombox}}}</div>}}
 
</div>
 
</div>
  
 
<noinclude>
 
<noinclude>
<pre>
+
For help see [[Template:FrontpageBox/Doc]]
{{ForsideBoks
 
|farvekombination = 1(blå) 2(gul) 3(lilla)
 
|bredde          = (boksens bredde i procent - kan udelades)
 
|billede          =
 
|picturesize      = (kan udelades)
 
|overskrift      =
 
|margin          = (tekstmargin til bokskant - kan udelades)
 
|bgfarve          = (boksens baggrundsfarve - kan udelades))
 
|indhold          =
 
|bundboks        = (kan udelades)
 
}}
 
</pre>
 
 
</noinclude>
 
</noinclude>

Latest revision as of 06:12, 10 August 2011

[[Image:{{{picture}}}|left|35px|link=]]
{{{headline}}}

{{{content}}}


For help see Template:FrontpageBox/Doc