Vorlage:Klappbox: Unterschied zwischen den Versionen

Aus Fahrradmonteur
Wechseln zu: Navigation, Suche
K (1 Version: Import Vorlage:File)
Zeile 1: Zeile 1:
<onlyinclude>{{
+
==&nbsp;==
  #vardefine:KlappIDCounter|
+
<div style="
  {{#if:{{#var:KlappIDCounter}}|
+
background-color:#e1e1e1;
    {{#expr: {{#var:KlappIDCounter}} +1 }}|
+
background-image: -webkit-linear-gradient(white 0%, #9FBFD2 100%);
    1
+
background-image: -moz-linear-gradient(white 0%, #9FBFD2 100%);
  }}
+
background-image: -o-linear-gradient(white 0%, #9FBFD2 100%);  
}}{{
+
background-image: linear-gradient(white 0%, #9FBFD2 100%);
  #vardefine:introtemplate
+
border-radius:0 45px 0 0;
  |{{#if: {{{introtemplate|}}} | {{Vorlage:{{{introtemplate}}}}} }}
+
-moz-border-radius:0 45px 0 0;
}}{{
+
-webkit-border-radius:45px;
  #vardefine:outrotemplate
+
-webkit-border-top-left-radius:0;
  |{{#if: {{{outrotemplate|}}} | {{Vorlage:{{{outrotemplate}}}}} | {{#if: {{{introtemplate|}}} | {{Vorlage:Klappbox_ask/standard_outrotemplate}} }} }}
+
-webkit-border-bottom-left-radius:0;}
}}<html>
+
-webkit-border-bottom-right-radius:0;}
 
+
-moz-box-shadow:3.5px 3.5px 5px #787878;
<!-- KLAPPBOX </html>{{{Titel|}}}<html> :) -->
+
-webkit-box-shadow:3.5px 3.5px 5px #787878;
 
+
box-shadow:3.5px 3.5px 5px #787878;
<!--hauptrahmen-->
+
padding:3px; padding-left:18px; padding-right:18px; padding-top:12px; margin-bottom:4px; border-left: 1px solid #ddd; border-right: 2px solid #999; border-top: 1px solid #ddd; border-bottom: 2px solid #999; " >
<div id="</html>{{{id|{{#var:KlappIDCounter}}}}}<html>" style="</html>{{#if:{{{Breite|}}} | width:{{{Breite|}}}px; float:left; }}<html> border:1px solid #808080; margin-left: 0px;  margin-right: 2px; border-collapse: collapse; overflow:auto;" >
+
<div style="float:left; ">[[File:{{{Bild}}}|80px]]</div><br><br>
 
+
<div style="font-size:1.5em; padding-left:248px; font-variant: small-caps; font-weight:bolder; letter-spacing:0.1em; text-shadow: #8ab9e8 2px 2px 2px;">{{{Titel}}}</div><br>
<!--balken überschrift-->
+
<div class="wikitable mw-collapsible mw-collapsed">
 
+
{{Absatz}}<hr>
<div style="padding:0.25em 0.25em 0.25em 0; background-color:</html>{{#if:{{{Titelfarbe|}}} |<html>#</html>{{#replace:{{{Titelfarbe|}}}|#| }} |<html>#F9F9F9</html> }}<html>; border-collapse: collapse; overflow:auto;">
+
{{{Text}}}
 
+
{{Absatz}}
<span style="float:left; padding:0 0.25em 0 0;"></html>{{ Klappbox/Link
+
</div>
| id = {{anchorencode:{{{id|{{#var:KlappIDCounter}} }}} }}
+
<br clear="all">
| Link oeffnen = {{#ifeq: {{{Link oeffnen|}}}|none||{{{Link oeffnen|}}} }}
+
</div>
| Link schliessen = {{#ifeq: {{{Link schliessen|}}}|none||{{{Link schliessen|}}} }}
+
| Linkfarbe = {{{Linkfarbe|}}}
+
| Status = {{#ifeq:{{{aufgeklappt|{{{ausgeklappt|}}}}}}|ja|auf|zu}}
+
| position = top
+
| beide = {{{beide|{{{extendMode|}}}}}}
+
| springen = {{{springen|}}}
+
}}{{#if:{{{Titel|}}}
+
| <span style="float:left; margin-left: 5px;">{{{Titel|}}}</span>
+
}}<html>
+
</span>
+
 
+
<div style="float:right;">&nbsp;</div>
+
 
+
<!--balken überschrift--></div>
+
 
+
<!--außen-->
+
<div style="width:99%; margin: auto; text-align:center; border-collapse: collapse; overflow:auto;">
+
 
+
<!--innen-->
+
<div style="padding-left:</html>{{{padding-left|1em}}}<html>; padding-right:</html>{{{padding-right|0.3em}}}<html>; text-align:left; border-collapse: collapse; overflow:auto;">
+
 
+
<!-- kurze Version -->
+
 
+
<span id="</html>{{anchorencode:{{{id|{{#var:KlappIDCounter}} }}} }}_short<html>" style="display:</html>{{#ifeq:{{{aufgeklappt|{{{ausgeklappt|}}}}}}|ja|{{#ifeq:{{{beide|}}}|ja|inline|none}}|inline}}<html>">
+
</html>{{{kurz| {{{1|}}} }}}<html>
+
</span>
+
 
+
<!-- lange Version -->
+
 
+
<span id="</html>{{anchorencode:{{{id|{{#var:KlappIDCounter}} }}} }}_long<html>" style="display:</html>{{#ifeq:{{{aufgeklappt|{{{ausgeklappt|}}}}}}|ja|inline|none}}<html>">
+
</html>{{#var:introtemplate}}
+
{{{lang| {{{2| {{{Inhalt|}}} }}} }}}
+
{{#var:outrotemplate}}<html>
+
</span>
+
 
+
<!--innen--></div>
+
<!--außen--></div>
+
 
+
</html>{{#vardefine:LinkUntenAnzeigen
+
| {{#ifeq: {{{Link unten|}}} | auto
+
    | {{#ifeq:{{{aufgeklappt|{{{ausgeklappt|}}}}}} | ja }}
+
    | {{{Link unten|}}}
+
  }}
+
}}{{ Klappbox/Link
+
  | id = {{anchorencode:{{{id|{{#var:KlappIDCounter}} }}} }}
+
  | Link oeffnen = {{#ifeq: {{{Link oeffnen|}}}|none||{{{Link oeffnen|}}} }}
+
  | Link schliessen = {{#ifeq: {{{Link schliessen|}}}|none||{{{Link schliessen|}}} }}
+
  | Linkfarbe = {{{Linkfarbe|}}}
+
  | Status = {{#ifeq:{{{aufgeklappt|{{{ausgeklappt|}}}}}}|ja|auf|zu}}
+
  | position = bottom
+
  | beide = {{{beide|{{{extendMode|}}}}}}
+
  | springen = {{{springen|}}}
+
  | display = {{#if: {{#var:LinkUntenAnzeigen|}} | block | none }}
+
}}<html>
+
 
+
<!--hauptrahmen--></div>
+
 
+
</html>{{#ifeq:{{{nebeneinander|}}}
+
  | ja
+
  | <!-- wenn nebeneinander = ja, dann kein div clear:left -->
+
  | <html>
+
 
+
<!-- bei fester Breite notwendig: "clear:left", damit die nächste Überschrift nicht rechts daneben gequetscht wird (sonst auch, damit gleicher Abstand zwischen Boxen) -->
+
 
+
    <div style="clear:left"></div>
+
    </html>
+
}}<html>
+
 
+
</html></onlyinclude><noinclude>
+
[[Category:Vorlagen|{{PAGENAME}}]]
+
 
+
* [[Vorlage:Klappbox/Doku]]
+
* [[Vorlage:Klappbox/Test#Klappbox3]]
+
</noinclude>
+

Version vom 25. Juli 2013, 13:46 Uhr

 

[[File:{{{Bild}}}|80px]]


{{{Titel}}}


{{{Text}}}