Vorlage:Positionskarte/Rahmen: Unterschied zwischen den Versionen
Aus KKWiki
Zur Navigation springenZur Suche springen✓ (Diskussion) K (fix) |
✓ (Diskussion) K (float-fixes) |
||
Zeile 3: | Zeile 3: | ||
| table | | table | ||
}} class="positionskarte {{#if:{{{caption|x}}} | }} class="positionskarte {{#if:{{{caption|x}}} | ||
− | | thumb {{#switch: {{{float|}}} | + | | thumb {{#if:{{{width|x}}} |
− | + | | {{#switch: {{{float|}}} | |
− | + | |left = tleft" style=" | |
− | + | |right = tright" style=" | |
− | + | |center= tnone center" style="<!-- geht leider nicht mit centered. Korrektes thumb-Verhalten wäre div.poskarte.center>div.thumb.tnone --> | |
− | | | + | |inline= tnone" style="margin:0 1em; display:inline-block; <!-- mit caption inline? --> |
− | | table | + | |#default= tnone" style="margin:0 1em; |
− | + | }} | |
− | + | | {{#switch: {{{float|}}} | |
+ | |left = tleft" style="margin:0.5em 1.4em 1.3em 0; | ||
+ | |right = tright" style="margin:0.5em 0 1.3em 1.4em; | ||
+ | |center= tnone centered" style=" | ||
+ | |inline= tnone" style="margin:0 1em; display:inline-table; <!-- mit caption inline? --> | ||
+ | |#default= tnone" style="margin:0 1em; | ||
+ | }} | ||
}}{{#if:{{{width|x}}} | }}{{#if:{{{width|x}}} | ||
| "><div class="thumbinner" style="width:{{#ifeq: {{{border|}}} | none | | "><div class="thumbinner" style="width:{{#ifeq: {{{border|}}} | none | ||
Zeile 26: | Zeile 32: | ||
|#default=1px solid {{{border}}} | |#default=1px solid {{{border}}} | ||
}}; background-color:{{#if: {{{background|}}} | }}; background-color:{{#if: {{{background|}}} | ||
− | | {{{background}}} | + | | {{{background}}} |
| #f9f9f9 | | #f9f9f9 | ||
− | }}<!--thumbinner-Emulation--> width:1px;<!-- IMPORTANT *** zentraler Bestandteil des table-Hacks für alle Browser ausser Firefox *** WICHTIG -->"><tr><td | + | }};<!--thumbinner-Emulation--> width:1px;<!-- IMPORTANT *** zentraler Bestandteil des table-Hacks für alle Browser ausser Firefox *** WICHTIG -->"><tr><td |
}} class="thumbimage" style="{{#switch: {{{border|}}} | }} class="thumbimage" style="{{#switch: {{{border|}}} | ||
|none=border:none; | |none=border:none; |