Vorlage:Positionskarte/Rahmen: Unterschied zwischen den Versionen

Aus Hist. Verein Herne / Wanne-Eickel
(AZ: Die Seite wurde neu angelegt: <onlyinclude><table {{#switch: {{{float|}}} |left = class="float-left" style="margin-right: 1em; |righ…)
 
(dateifix)
 
(25 dazwischenliegende Versionen von 8 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
<onlyinclude><table {{#switch: {{{float|}}}
<onlyinclude><{{#if:{{{width|x}}}
|left  = class="float-left" style="margin-right: 1em;
| div
  |right = class="float-right" style="margin-left: 1em;
| table
|center= class="centered" style="
}} class="positionskarte {{#if:{{{caption|x}}}
|inline= style="margin: 0 1em; display: inline-block;
| thumb {{#if:{{{width|x}}}
|#default= style="margin: 0 1em;
  | {{#switch: {{{float|}}}
}} background-color:{{#if: {{{background|}}}
  |left  = tleft" style="
| {{{background}}}
  |right = tright" style="
| #f9f9f9
  |center= tnone center" style="<!-- geht leider nicht mit centered. Korrektes thumb-Verhalten wäre div.poskarte.center>div.thumb.tnone -->
}}; border:{{#switch: {{#if:{{{caption|x}}}|{{{border|}}}|none}}
  |inline= tnone" style="margin:0 1em; display:inline-block; <!-- mit caption inline? -->
|none=none
  |#default= tnone" style="margin:0 1em;
|=1px solid #CCC
  }}
|#default=1px solid {{{border|#CCC}}}
  | {{#switch: {{{float|}}}
}}; border-collapse: collapse; width: 1px;<!-- IMPORTANT *** für alle Browser ausser Firefox *** WICHTIG -->">
  |left = tleft float-left" style="margin:0.5em 1.4em 1.3em 0;<!-- div.tleft-Emulation. evtl mit .floatleft? -->
<tr><td style="border: none; padding: 0;"><div style="position:relative; z-index:0; padding:0; border:{{#switch: {{{border|#CCC}}}
  |right = tright float-right" style="margin:0.5em 0 1.3em 1.4em;<!-- div.tright-Emulation. evtl mit .floatright? -->
  |none=none;
  |center= tnone centered" style="
|=1px solid #CCC; margin:{{#if:{{{caption|x}}}|3|0}}px;
  |inline= tnone" style="margin:0 1em; display:inline-table; <!-- mit caption inline? -->
|#default=1px solid {{{border|#CCC}}}; margin:3px;
  |#default= tnone" style="margin:0 1em;
}}">[[Datei:{{#if: {{{Alternativkarte|}}}
  }}
}}{{#if:{{{width|x}}}
  | "><div class="thumbinner" style="width:{{#ifeq: {{{border|}}} | none
  | {{{width|240}}}px; border:none;
  | {{#iferror: {{#expr:{{{width|240}}}+2}}px
    | {{{width}}}
  }}; {{#if: {{{border|}}}
    | border:1px solid {{{border}}};
  }}
  }} {{#if: {{{background|}}}
  | background-color:{{{background}}};
  }}"><div
  | font-size:94%; overflow:hidden; padding:3px; text-align:center; border-spacing:0; border:{{#switch:{{{border|}}}
  |none=none
  |=1px solid #CCC
  |#default=1px solid {{{border}}}
  }}; background-color:{{#if: {{{background|}}}
  | {{{background}}}
  | #f9f9f9
  }};<!--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|}}}
  |none=border:none;
  |={{#if:{{{width|x}}}
  |
  |border:1px solid #CCC;
  }}
  |#default=border:1px solid {{{border}}};
}}
| {{#switch: {{{float|}}}
  |left = float-left<!-- floatleft ? -->" style="margin-right:1em;
  |right = float-right<!-- floatright ?-->" style="margin-left:1em;
  |center= centered" style="
  |inline= <!-- floatnone -->" style="margin:0 1em; display:inline-{{#if:{{{width|x}}}
  | block
  | table
  }};  
  |#default= <!-- floatnone -->" style="margin: 0 1em;
}} background-color:{{#if:{{{background|}}}
  | {{{background}}}
  | #f9f9f9
}}; border:{{#switch: {{{border|}}}
  |none=none
  |=1px solid #CCC
  |#default=1px solid {{{border}}}
}}; {{#if:{{{width|x}}}
  | width:{{{width|240}}}px;
  | 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;"><!--
INHALT
-->{{#if: {{{Alternativkarte|}}}
|[[Datei:{{#if: {{{Alternativkarte|}}}
  | {{{Alternativkarte}}}
  | {{{Alternativkarte}}}
  | {{Positionskarte {{{1|Erde}}}|image|{{{maptype|}}} }}
  | {{Positionskarte {{{1|Erde}}}|image|{{{maptype|}}} }}
}}|{{#if: {{{width|}}}
}}|{{#if: {{{size|{{{width|x}}}}}}
  | {{{width|240}}}px
  | {{{size|{{{width|240}}}}}}px
  | frameless{{!}}upright=1
  | frameless{{!}}upright=1
}}|center|{{#if: {{{caption|x}}}|link=}}|{{#if: {{{label|}}}
}}|{{#if: {{{caption|x}}}
| {{{label}}}  
| link={{!}}{{Positionskarte {{{1|Erde}}}|name}}
| {{PAGENAME}}  
| {{#if: {{{label|}}}
}} ({{Positionskarte {{{1|Erde}}}|name}})]]
  | {{{label}}}  
{{{places}}}
  | {{PAGENAME}}  
</div></td></tr>
}} ({{Positionskarte {{{1|Erde}}}|name}})
{{#if: {{{caption|x}}}
}}|alt={{#switch:{{{maptype}}}
  | <tr><td style="font-size: 90%; padding: 0 0.3em"><div class="magnify">[[Datei:Magnify-clip.png|link=Datei:{{#if: {{{Alternativkarte|}}}
|relief = Reliefkarte
|satellite = Satellitenbild
|#default = Karte
}}: {{Positionskarte {{{1|Erde}}}|name}}]]}}{{#if:{{{layer|}}}
| {{#if: {{Positionskartenlayer {{{1|Erde}}} | }}
  | <!--Fehler, existiert nicht-->
  | {{Positionskartenlayer {{{1|Erde}}}
  |{{#titleparts:{{{layer}}}|1|1}}
  |w={{{width|240}}}
  }}{{#if:{{#titleparts:{{{layer}}}|1|2}}
  | {{Positionskartenlayer {{{1|Erde}}}
    |{{#titleparts:{{{layer}}}|1|2}}
    |w={{{width|240}}}
  }}{{#if:{{#titleparts:{{{layer}}}|1|3}}
    | {{Positionskartenlayer {{{1|Erde}}}
    |{{#titleparts:{{{layer}}}|1|3}}
    |w={{{width|240}}}
    }}
  }}
  }}
}}
}}{{{places}}}<!--
/INHALT
--></div>{{#if:{{{caption|x}}}
  | {{#if:{{{width|x}}}
  | <div
  | </td></tr><tr><td
}} class="thumbcaption"><!--
CAPTION
--><div class="magnify">[[Datei:Magnify-clip.png|link=Datei:{{#if: {{{Alternativkarte|}}}
  | {{{Alternativkarte}}}
  | {{{Alternativkarte}}}
  | {{Positionskarte {{{1|Erde}}}|image|{{{maptype|}}} }}
  | {{Positionskarte {{{1|Erde}}}|image|{{{maptype|}}} }}
}}]]</div>{{{caption|{{#if: {{{label|}}}
}}]]{{#if:{{{layer|}}}
| {{#if: {{Positionskartenlayer {{{1|Erde}}} | }}
  |<!--Fehler, existiert nicht-->
  |{{Positionskartenlayer {{{1|Erde}}} |magnify |{{{layer}}} |w={{{width|240}}} }}
}}
}}</div>{{{caption|{{#if: {{{label|}}}
   | {{{label}}}
   | {{{label}}}
   | {{PAGENAME}}
   | {{PAGENAME}}
  }} ({{Positionskarte {{{1|Erde}}}|name}})}}}</td></tr>
  }} ({{Positionskarte {{{1|Erde}}}|name}})
}}</table></onlyinclude>
}}}<!--
/CAPTION
-->{{#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}}

Aktuelle Version vom 22. November 2023, 13:12 Uhr

{{{places}}}
Magnify-clip.png
Positionskarte/Rahmen (Erde)

Dokumentation[Bearbeiten]

Positionskarte/Rahmen/Meta