Vorlage:Positionskarte/Rahmen: Unterschied zwischen den Versionen

Aus Hist. Verein Herne / Wanne-Eickel
(alt-Text des Bildes bei caption)
(erweiterte Thumb-Syntax, Layer)
Zeile 1: Zeile 1:
<onlyinclude><table class="positionskarte {{#switch: {{{float|}}}
<onlyinclude><{{#if:{{{width|x}}}
|left  = float-left" style="margin-right: 1em;
| div
|right = float-right" style="margin-left: 1em;
| table
|center= centered" style="
}} class="positionskarte {{#if:{{{caption|x}}}
|inline= " style="margin: 0 1em; display: inline-table;
| thumb {{#switch: {{{float|}}}
|#default= " style="margin: 0 1em;
  |left  = tleft" style="
}} background-color:{{#if: {{{background|}}}
  |right = tright" style="
| {{{background}}}
  |center= tnone centered" style="
| #f9f9f9
  |inline= tnone" style="margin:0 1em; display:inline-{{#if:{{{width|x}}}
}}; border:{{#switch: {{#if:{{{caption|x}}}|{{{border|}}}|none}}
  | block
|none=none
  | table
|=1px solid #CCC
  }}; <!-- mit caption inline? -->
|#default=1px solid {{{border|#CCC}}}
  |#default= tnone" style="margin:0 1em;
}}; border-collapse: collapse; width: 1px;<!-- IMPORTANT *** für alle Browser ausser Firefox *** WICHTIG -->">
}}{{#if:{{{width|x}}}
<tr><td style="border: none; padding: 0;"><div style="position:relative; z-index:0; padding:0; border:{{#switch: {{{border|#CCC}}}
  | "><div class="thumbinner" style="width:{{#ifeq: {{{border|}}} | none
|none=none;
  | {{{width|240}}}px; border:none;
|=1px solid #CCC; margin:{{#if:{{{caption|x}}}|3|0}}px;
  | {{#expr:{{{width|240}}}+2}}px; {{#if: {{{border|}}}
|#default=1px solid {{{border|#CCC}}}; margin:3px;
    | border:1px solid {{{border}}};
}}">[[Datei:{{#if: {{{Alternativkarte|}}}
  }}
  }} {{#if: {{{background|}}}
  | background-color:{{{background}}};
  }}"><div
  | font-size:94%; overflow:hidden; padding:3px; text-align:center; 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
}} 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" style="margin-right:1em;
  |right = float-right" style="margin-left:1em;
  |center= centered" style="
  |inline= " style="margin:0 1em; display:inline-{{#if:{{{width|x}}}
  | block
  | table
  }};  
  |#default= " 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; width:1px;<!-- IMPORTANT *** zentraler Bestandteil des table-Hacks für alle Browser ausser Firefox *** WICHTIG -->"><tr><td style="
}}
}} position:relative; z-index:0; padding:0; overflow:hidden;"><!--
INHALT
-->[[Datei:{{#if: {{{Alternativkarte|}}}
  | {{{Alternativkarte}}}
  | {{{Alternativkarte}}}
  | {{Positionskarte {{{1|Erde}}}|image|{{{maptype|}}} }}
  | {{Positionskarte {{{1|Erde}}}|image|{{{maptype|}}} }}
}}|{{#if: {{{width|}}}
}}|{{#if: {{{width|x}}}
  | {{{width|240}}}px
  | {{{width|240}}}px
  | frameless{{!}}upright=1
  | frameless{{!}}upright=1
Zeile 30: Zeile 72:
  }} ({{Positionskarte {{{1|Erde}}}|name}})
  }} ({{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}}}
{{{places}}}
</div></td></tr>
<!-- /INHALT
{{#if: {{{caption|x}}}
-->{{#if:{{{caption|x}}}
| <tr><td style="font-size: 90%; padding: 0 0.3em"><div class="magnify">[[Datei:Magnify-clip.png|link=Datei:{{#if: {{{Alternativkarte|}}}
| </{{#if:{{{width|x}}}
  | div><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{{#if:{{{caption|x}}}
  | ></div
}}
| td></tr></table
}}></onlyinclude>


{{Dokumentation}}
{{Dokumentation}}

Version vom 27. Juli 2011, 08:54 Uhr

{{{places}}}

Magnify-clip.png
Positionskarte/Rahmen (Erde)

Dokumentation[Bearbeiten]

Positionskarte/Rahmen/Meta