Difference between revisions of "Template: FrontpageBox"

From Teknologisk videncenter
Jump to: navigation, search
m
m
Line 1: Line 1:
<div style="background-color: #{{{bgfarve|FAFAFF}}}; width: {{{bredde|100}}}%; border: 1px #{{
+
<div style="background-color: #{{{bgcolor|FAFAFF}}}; width: {{{width|100}}}%; border: 1px #{{
  #switch:{{{farvekombination}}}
+
  #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:{{{farvekombination}}}
+
  #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:{{{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;">
 
  }}; border-style: solid; font: 11pt; font-weight: bolder; position: relative;">
<div style="position: absolute; top: 0; left: 0;">[[Image:{{{billede}}}|left|{{{picturesize|35}}}px|link=]]</div>
+
<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; color:#333;">{{{headline}}}</div></div>
 
-->
 
-->
  #if: {{{picturesize|}}}|38px; color:#333;">{{{overskrift}}}</div></div>
+
  #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}}}">
  
{{{indhold}}}
+
{{{content}}}
 
</div>
 
</div>
{{#if: {{{bundboks|}}}|<div style="background-color: #{{
+
{{#if: {{{bottombox|}}}|<div style="background-color: #{{
  #switch:{{{farvekombination}}}
+
  #switch:{{{colorcombination}}}
 
  |1=D9E6F3
 
  |1=D9E6F3
 
  |2=FFF0CD
 
  |2=FFF0CD
 
  |3=E3E3F5
 
  |3=E3E3F5
 
  }}; border-top: #{{
 
  }}; border-top: #{{
  #switch:{{{farvekombination}}}
+
  #switch:{{{colorcombination}}}
 
  |1=AFCCEB
 
  |1=AFCCEB
 
  |2=F5DF9A
 
  |2=F5DF9A
Line 42: Line 42:
 
<noinclude>
 
<noinclude>
 
<pre>
 
<pre>
{{ForsideBoks
+
{{FrontpageBox
|farvekombination = 1(blå) 2(gul) 3(lilla)
+
|colorcombination    = 1(blue) 2(yellow) 3(purple)
|bredde          = (boksens bredde i procent - kan udelades)
+
|width              = box width in percent - (Optional)
|billede          =
+
|image              =
|picturesize     = (kan udelades)
+
|picturesize         = in px (Optional)
|overskrift      =  
+
|headline            = Headline in top box
|margin           = (tekstmargin til bokskant - kan udelades)
+
|margin             = textmargin to boxedge - (Optional)
|bgfarve          = (boksens baggrundsfarve - kan udelades))
+
|bgcolor            = (box backgroung color - (Optional)
|indhold          =  
+
|content            = The main content of the box
|bundboks        = (kan udelades)
+
|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)
}}