Difference between revisions of "Template: FrontpageBox"

From Teknologisk videncenter
Jump to: navigation, search
m
m
 
(19 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|{{{billedstørrelse|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: {{{billedstørrelse}}} + 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
</div><noinclude>
+
|5=2FABFF
 
+
|6=77E0E8
<pre>
+
|7=99B3FF
{{ForsideBoks
+
|8=FFFF00
|farvekombination = 1(blå) 2(gul) 3(lilla)
+
|9=FF3F3F
|bredde          = (boksens bredde i procent - kan udelades)
+
|10=FF9FC0
|billede          =
+
|11=CF8FFF
|billedstørrelse  = (kan udelades)
+
|#default=6EF7A7
|overskrift      =  
+
}} 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>}}
|margin          = (tekstmargin til bokskant - kan udelades)
+
</div>
|bgfarve          = (boksens baggrundsfarve - kan udelades))
 
|indhold          =  
 
|bundboks        = (kan udelades)
 
}}
 
</pre>
 
 
 
----
 
==Eksempler==
 
 
 
===Eksempel 1===
 
<pre>
 
{{ForsideBoks
 
|farvekombination = 1
 
|billede          = Emblem-star.svg
 
|overskrift      = Overskrift1
 
|indhold          = Indhold1
 
|bundboks        = Bundboks1
 
}}
 
</pre>
 
 
 
{{ForsideBoks
 
|farvekombination = 1
 
|billede          = Emblem-star.svg
 
|overskrift      = Overskrift1
 
|indhold          = Indhold1
 
|bundboks        = Bundboks1
 
}}
 
 
 
===Eksempel 2===
 
<pre>
 
{{ForsideBoks
 
|farvekombination = 2
 
|billede          = Internet-web-browser.svg
 
|overskrift      = Overskrift2
 
|indhold          = Indhold2
 
|bundboks        = Bundboks2
 
}}
 
</pre>
 
 
 
{{ForsideBoks
 
|farvekombination = 2
 
|billede          = Internet-web-browser.svg
 
|overskrift      = Overskrift2
 
|indhold          = Indhold2
 
|bundboks        = Bundboks2
 
}}
 
 
 
===Eksempel 3===
 
<pre>
 
{{ForsideBoks
 
|farvekombination = 3
 
|billede          = Gnome-fs-blockdev.svg
 
|overskrift      = Overskrift3
 
|indhold          = Indhold3
 
|bundboks        = Bundboks3
 
}}
 
</pre>
 
 
 
{{ForsideBoks
 
|farvekombination = 3
 
|billede          = Gnome-fs-blockdev.svg
 
|overskrift      = Overskrift3
 
|indhold          = Indhold3
 
|bundboks        = Bundboks3
 
}}
 
 
 
===Eksempel 4===
 
<pre>
 
{{ForsideBoks
 
|farvekombination = 2
 
|bredde          = 45
 
|billede          = Internet-web-browser.svg
 
|picturesize      = 56
 
|overskrift      = Lorem ipsum
 
|margin          = 3.5em 0.5em 0.5em 0.5em
 
|bgfarve          = EFDFDF
 
|indhold          = Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
 
}}
 
</pre>
 
 
 
{{ForsideBoks
 
|farvekombination = 2
 
|bredde          = 45
 
|billede          = Internet-web-browser.svg
 
|picturesize      = 56
 
|overskrift      = Lorem ipsum
 
|margin          = 3.5em 0.5em 0.5em 0.5em
 
|bgfarve          = EFDFDF
 
|indhold          = Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
 
}}
 
  
== Se også ==
+
<noinclude>
 +
For help see [[Template:FrontpageBox/Doc]]
 
</noinclude>
 
</noinclude>

Latest revision as of 07:12, 10 August 2011

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

{{{content}}}


For help see Template:FrontpageBox/Doc