Vorlage:Positionskarte/Rahmen: Unterschied zwischen den Versionen
Aus Hist. Verein Herne / Wanne-Eickel
(erweiterte Thumb-Syntax, Layer) |
(dateifix) |
||
(22 dazwischenliegende Versionen von 8 Benutzern werden nicht angezeigt) | |||
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 float-left" style="margin:0.5em 1.4em 1.3em 0;<!-- div.tleft-Emulation. evtl mit .floatleft? --> | |||
|right = tright float-right" style="margin:0.5em 0 1.3em 1.4em;<!-- div.tright-Emulation. evtl mit .floatright? --> | |||
|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 | ||
| {{{width|240}}}px; border:none; | | {{{width|240}}}px; border:none; | ||
| {{#expr:{{{width|240}}}+2}}px; {{#if: {{{border|}}} | | {{#iferror: {{#expr:{{{width|240}}}+2}}px | ||
| {{{width}}} | |||
}}; {{#if: {{{border|}}} | |||
| border:1px solid {{{border}}}; | | border:1px solid {{{border}}}; | ||
}} | }} | ||
Zeile 21: | Zeile 29: | ||
| background-color:{{{background}}}; | | background-color:{{{background}}}; | ||
}}"><div | }}"><div | ||
| font-size:94%; overflow:hidden; padding:3px; text-align:center; border:{{#switch:{{{border|}}} | | font-size:94%; overflow:hidden; padding:3px; text-align:center; border-spacing:0; border:{{#switch:{{{border|}}} | ||
|none=none | |none=none | ||
|=1px solid #CCC | |=1px solid #CCC | ||
|#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 style="border:0; padding:0"><div | ||
}} class="thumbimage" style="{{#switch: {{{border|}}} | }} class="thumbimage" style="{{#switch: {{{border|}}} | ||
|none=border:none; | |none=border:none; | ||
Zeile 38: | Zeile 46: | ||
}} | }} | ||
| {{#switch: {{{float|}}} | | {{#switch: {{{float|}}} | ||
|left = float-left" style="margin-right:1em; | |left = float-left<!-- floatleft ? -->" style="margin-right:1em; | ||
|right = float-right" style="margin-left:1em; | |right = float-right<!-- floatright ?-->" style="margin-left:1em; | ||
|center= centered" style=" | |center= centered" style=" | ||
|inline= " style="margin:0 1em; display:inline-{{#if:{{{width|x}}} | |inline= <!-- floatnone -->" style="margin:0 1em; display:inline-{{#if:{{{width|x}}} | ||
| block | | block | ||
| table | | table | ||
}}; | }}; | ||
|#default= " style="margin: 0 1em; | |#default= <!-- floatnone -->" style="margin: 0 1em; | ||
}} background-color:{{#if:{{{background|}}} | }} background-color:{{#if:{{{background|}}} | ||
| {{{background}}} | | {{{background}}} | ||
Zeile 55: | Zeile 63: | ||
}}; {{#if:{{{width|x}}} | }}; {{#if:{{{width|x}}} | ||
| width:{{{width|240}}}px; | | width:{{{width|240}}}px; | ||
| border-collapse:collapse; width:1px;<!-- IMPORTANT *** zentraler Bestandteil des table-Hacks für alle Browser ausser Firefox *** WICHTIG -->"><tr><td style=" | | border-collapse:collapse; border-spacing:0; width:1px;<!-- IMPORTANT *** zentraler Bestandteil des table-Hacks für alle Browser ausser Firefox *** WICHTIG -->"><tr><td style="border:0; padding:0"><div style=" | ||
}} | }} | ||
}} position:relative; z-index:0; padding:0; overflow:hidden;"><!-- | }} position:relative; z-index:0; padding:0; overflow:hidden;"><!-- | ||
INHALT | INHALT | ||
-->[[Datei:{{#if: {{{Alternativkarte|}}} | -->{{#if: {{{Alternativkarte|}}} | ||
|[[Datei:{{#if: {{{Alternativkarte|}}} | |||
| {{{Alternativkarte}}} | | {{{Alternativkarte}}} | ||
| {{Positionskarte {{{1|Erde}}}|image|{{{maptype|}}} }} | | {{Positionskarte {{{1|Erde}}}|image|{{{maptype|}}} }} | ||
}}|{{#if: {{{width|x}}} | }}|{{#if: {{{size|{{{width|x}}}}}} | ||
| {{{width|240}}}px | | {{{size|{{{width|240}}}}}}px | ||
| frameless{{!}}upright=1 | | frameless{{!}}upright=1 | ||
}} | }}|{{#if: {{{caption|x}}} | ||
| link={{!}}{{Positionskarte {{{1|Erde}}}|name}} | | link={{!}}{{Positionskarte {{{1|Erde}}}|name}} | ||
| {{#if: {{{label|}}} | | {{#if: {{{label|}}} | ||
Zeile 71: | Zeile 80: | ||
| {{PAGENAME}} | | {{PAGENAME}} | ||
}} ({{Positionskarte {{{1|Erde}}}|name}}) | }} ({{Positionskarte {{{1|Erde}}}|name}}) | ||
}}]] | }}|alt={{#switch:{{{maptype}}} | ||
{{#if:{{{layer|}}} | |relief = Reliefkarte | ||
{{#if: {{Positionskartenlayer {{{1|Erde}}} | }} | |satellite = Satellitenbild | ||
|#default = Karte | |||
}}: {{Positionskarte {{{1|Erde}}}|name}}]]}}{{#if:{{{layer|}}} | |||
| {{#if: {{Positionskartenlayer {{{1|Erde}}} | }} | |||
| <!--Fehler, existiert nicht--> | | <!--Fehler, existiert nicht--> | ||
| {{Positionskartenlayer {{{1|Erde}}} | | {{Positionskartenlayer {{{1|Erde}}} | ||
Zeile 90: | Zeile 102: | ||
}} | }} | ||
}} | }} | ||
}} | }}{{{places}}}<!-- | ||
{{{places}}} | /INHALT | ||
<!-- /INHALT | --></div>{{#if:{{{caption|x}}} | ||
-->{{#if:{{{caption|x}}} | | {{#if:{{{width|x}}} | ||
| | | <div | ||
| | | </td></tr><tr><td | ||
| td></tr><tr><td | |||
}} class="thumbcaption"><!-- | }} class="thumbcaption"><!-- | ||
CAPTION | CAPTION | ||
Zeile 103: | Zeile 114: | ||
| {{Positionskarte {{{1|Erde}}}|image|{{{maptype|}}} }} | | {{Positionskarte {{{1|Erde}}}|image|{{{maptype|}}} }} | ||
}}]]{{#if:{{{layer|}}} | }}]]{{#if:{{{layer|}}} | ||
{{#if: {{Positionskartenlayer {{{1|Erde}}} | }} | | {{#if: {{Positionskartenlayer {{{1|Erde}}} | }} | ||
|<!--Fehler, existiert nicht--> | |<!--Fehler, existiert nicht--> | ||
|{{Positionskartenlayer {{{1|Erde}}} |magnify |{{{layer}}} |w={{{width|240}}} }} | |{{Positionskartenlayer {{{1|Erde}}} |magnify |{{{layer}}} |w={{{width|240}}} }} | ||
Zeile 111: | Zeile 122: | ||
| {{PAGENAME}} | | {{PAGENAME}} | ||
}} ({{Positionskarte {{{1|Erde}}}|name}}) | }} ({{Positionskarte {{{1|Erde}}}|name}}) | ||
}}} | }}}<!-- | ||
<!-- /CAPTION | /CAPTION | ||
-->}}</{{#if:{{{width|x}}} | -->{{#if:{{{width|x}}} | ||
| | | </div></div></div> | ||
| ></ | }} | ||
}}{{#if:{{{width|x}}} | |||
| | |||
| </td></tr></table> | |||
}}{{#if: {{{width|x}}} | |||
| {{#iferror: {{#expr:{{{width|240}}}+2}}px | |||
| <span style="display:none;">[[Vorlage:Positionskarte/Wartung/width|w]]</span> | |||
| | |||
}} | }} | ||
}}</onlyinclude> | |||
}} | |||
{{Dokumentation}} | {{Dokumentation}} |