Vorlage:Lageplan10neu: Unterschied zwischen den Versionen

Aus Liebliches-Feld.net
Zur Navigation springenZur Suche springen
Zeile 5: Zeile 5:
 
</noinclude>{| style="border-collapse: collapse;"
 
</noinclude>{| style="border-collapse: collapse;"
 
|
 
|
<div style="position: relative;"><div style="font-size: {{{mksize1}}}px; line-height: {{{mksize1}}}px; position: absolute; display: block; left:{#expr: ({{{mapsize_x}}}*{{{x1}}}/100 - {{{mksize1}}} 2 ) round 0 }px; top:{#expr: ({{{mapsize_y}}}*{{{y1}}}/100 - {{{mksize1}}} /2 ) round 0 }px; padding:0;">[[Bild:{{{mk1}}}|{{{mksize1}}}px|{{{mktext1}}}]]</div><div style="font-size: {{{mksize2}}}px; line-height: {{{mksize2}}}px; position: absolute; display: block; left:{#expr: ({{{mapsize_x}}}*{{{x2}}}/100 - {{{mksize2}}} /2 ) round 0 }px; top:{#expr: ({{{mapsize_y}}}*{{{y2}}}/100 - {{{mksize2}}} /2 ) round 0 }px; padding:0;">{{#if: {{{mk2}}} |[[Bild:{{{mk2}}}|{{{mksize2}}}px|{{{mktext2}}}]]}}</div><div style="font-size: {{{mksize3}}}px; line-height: {{{mksize3}}}px; position: absolute; display: block; left:{#expr: ({{{mapsize_x}}}*{{{x3}}}/100 - {{{mksize3}}} /2 ) round 0 }px; top:{#expr: ({{{mapsize_y}}}*{{{y3}}}/100 - {{{mksize3}}} /2 ) round 0 }px; padding:0;">{{#if: {{{mk3}}} |[[Bild:{{{mk3}}}|{{{mksize3}}}px|{{{mktext3}}}]]}}</div><div style="font-size: {{{mksize4}}}px; line-height: {{{mksize4}}}px; position: absolute; display: block; left:{#expr: ({{{mapsize_x}}}*{{{x4}}}/100 - {{{mksize4}}} /2 ) round 0 }px; top:{#expr: ({{{mapsize_y}}}*{{{y4}}}/100 - {{{mksize4}}} /2 ) round 0 }px; padding:0;">{{#if: {{{mk4}}} |[[Bild:{{{mk4}}}|{{{mksize4}}}px|{{{mktext4}}}]]}}</div><div style="font-size: {{{mksize5}}}px; line-height: {{{mksize5}}}px; position: absolute; display: block; left:{#expr: ({{{mapsize_x}}}*{{{x5}}}/100 - {{{mksize5}}} /2 ) round 0 }px; top:{#expr: ({{{mapsize_y}}}*{{{y5}}}/100 - {{{mksize5}}} /2 ) round 0 }px; padding:0;">{{#if: {{{mk5}}} |[[Bild:{{{mk5}}}|{{{mksize5}}}px|{{{mktext5}}}]]}}</div><div style="font-size: {{{mksize6}}}px; line-height: {{{mksize6}}}px; position: absolute; display: block; left:{#expr: ({{{mapsize_x}}}*{{{x6}}}/100 - {{{mksize6}}} /2 ) round 0 }}px; top:{#expr: ({{{mapsize_y}}}*{{{y6}}}/100 - {{{mksize6}}} /2 ) round 0 }px; padding:0;">{{#if: {{{mk6}}} |[[Bild:{{{mk6}}}|{{{mksize6}}}px|{{{mktext6}}}]]}}</div><div style="font-size: {{{mksize7}}}px; line-height: {{{mksize7}}}px; position: absolute; display: block; left:{#expr: ({{{mapsize_x}}}*{{{x7}}}/100 - {{{mksize7}}} /2 ) round 0 }px; top:{#expr: ({{{mapsize_y}}}*{{{y7}}}/100 - {{{mksize7}}} /2 ) round 0 }px; padding:0;">{{#if: {{{mk7}}} |[[Bild:{{{mk7}}}|{{{mksize7}}}px|{{{mktext7}}}]]}}</div><div style="font-size: {{{mksize8}}}px; line-height: {{{mksize8}}}px; position: absolute; display: block; left:{#expr: ({{{mapsize_x}}}*{{{x8}}}/100 - {{{mksize8}}} /2 ) round 0 }px; top:{#expr: ({{{mapsize_y}}}*{{{y8}}}/100 - {{{mksize8}}} /2 ) round 0 }px; padding:0;">{{#if: {{{mk8}}} |[[Bild:{{{mk8}}}|{{{mksize8}}}px|{{{mktext8}}}]]}}</div><div style="font-size: {{{mksize9}}}px; line-height: {{{mksize9}}}px; position: absolute; display: block; left:{#expr: ({{{mapsize_x}}}*{{{x9}}}/100 - {{{mksize9}}} /2 ) round 0 }px; top:{#expr: ({{{mapsize_y}}}*{{{y9}}}/100 - {{{mksize9}}} /2 ) round 0 }px; padding:0;">{{#if: {{{mk9}}} |[[Bild:{{{mk9}}}|{{{mksize9}}}px|{{{mktext9}}}]]}}</div><div style="font-size: {{{mksize10}}}px; line-height: {{{mksize10}}}px; position: absolute; display: block; left:{#expr: ({{{mapsize_x}}}*{{{x10}}}/100 - {{{mksize10}}} /2 ) round 0 }px; top:{#expr: ({{{mapsize_y}}}*{{{y10}}}/100 - {{{mksize10}}} /2 ) round 0 }px; padding:0;">{{#if: {{{mk10}}} |[[Bild:{{{mk10}}}|{{{mksize10}}}px|{{{mktext10}}}]]}}</div>[[Bild:{{{map}}}|{{{mapsize_x}}}x{{{mapsize_y}}}px|{{{maptext}}}]]</div>
+
<div style="position: relative;"><div style="font-size: {{{mksize1}}}px; line-height: {{{mksize1}}}px; position: absolute; display: block; left:{#expr: ({{{mapsize_x}}}*{{{x1}}}/100 - {{{mksize1}}} 2 ) round 0 }px; top:{#expr: ({{{mapsize_y}}}*{{{y1}}}/100 - {{{mksize1}}} 2 ) round 0 }px; padding:0;">[[Bild:{{{mk1}}}|{{{mksize1}}}px|{{{mktext1}}}]]</div><div style="font-size: {{{mksize2}}}px; line-height: {{{mksize2}}}px; position: absolute; display: block; left:{#expr: ({{{mapsize_x}}}*{{{x2}}}/100 - {{{mksize2}}} 2 ) round 0 }px; top:{#expr: ({{{mapsize_y}}}*{{{y2}}}/100 - {{{mksize2}}} 2 ) round 0 }px; padding:0;">{{#if: {{{mk2}}} |[[Bild:{{{mk2}}}|{{{mksize2}}}px|{{{mktext2}}}]]}}</div><div style="font-size: {{{mksize3}}}px; line-height: {{{mksize3}}}px; position: absolute; display: block; left:{#expr: ({{{mapsize_x}}}*{{{x3}}}/100 - {{{mksize3}}} 2 ) round 0 }px; top:{#expr: ({{{mapsize_y}}}*{{{y3}}}/100 - {{{mksize3}}} 2 ) round 0 }px; padding:0;">{{#if: {{{mk3}}} |[[Bild:{{{mk3}}}|{{{mksize3}}}px|{{{mktext3}}}]]}}</div><div style="font-size: {{{mksize4}}}px; line-height: {{{mksize4}}}px; position: absolute; display: block; left:{#expr: ({{{mapsize_x}}}*{{{x4}}}/100 - {{{mksize4}}} 2 ) round 0 }px; top:{#expr: ({{{mapsize_y}}}*{{{y4}}}/100 - {{{mksize4}}} 2 ) round 0 }px; padding:0;">{{#if: {{{mk4}}} |[[Bild:{{{mk4}}}|{{{mksize4}}}px|{{{mktext4}}}]]}}</div><div style="font-size: {{{mksize5}}}px; line-height: {{{mksize5}}}px; position: absolute; display: block; left:{#expr: ({{{mapsize_x}}}*{{{x5}}}/100 - {{{mksize5}}} 2 ) round 0 }px; top:{#expr: ({{{mapsize_y}}}*{{{y5}}}/100 - {{{mksize5}}} 2 ) round 0 }px; padding:0;">{{#if: {{{mk5}}} |[[Bild:{{{mk5}}}|{{{mksize5}}}px|{{{mktext5}}}]]}}</div><div style="font-size: {{{mksize6}}}px; line-height: {{{mksize6}}}px; position: absolute; display: block; left:{#expr: ({{{mapsize_x}}}*{{{x6}}}/100 - {{{mksize6}}} 2 ) round 0 }}px; top:{#expr: ({{{mapsize_y}}}*{{{y6}}}/100 - {{{mksize6}}} 2 ) round 0 }px; padding:0;">{{#if: {{{mk6}}} |[[Bild:{{{mk6}}}|{{{mksize6}}}px|{{{mktext6}}}]]}}</div><div style="font-size: {{{mksize7}}}px; line-height: {{{mksize7}}}px; position: absolute; display: block; left:{#expr: ({{{mapsize_x}}}*{{{x7}}}/100 - {{{mksize7}}} 2 ) round 0 }px; top:{#expr: ({{{mapsize_y}}}*{{{y7}}}/100 - {{{mksize7}}} 2 ) round 0 }px; padding:0;">{{#if: {{{mk7}}} |[[Bild:{{{mk7}}}|{{{mksize7}}}px|{{{mktext7}}}]]}}</div><div style="font-size: {{{mksize8}}}px; line-height: {{{mksize8}}}px; position: absolute; display: block; left:{#expr: ({{{mapsize_x}}}*{{{x8}}}/100 - {{{mksize8}}} 2 ) round 0 }px; top:{#expr: ({{{mapsize_y}}}*{{{y8}}}/100 - {{{mksize8}}} 2 ) round 0 }px; padding:0;">{{#if: {{{mk8}}} |[[Bild:{{{mk8}}}|{{{mksize8}}}px|{{{mktext8}}}]]}}</div><div style="font-size: {{{mksize9}}}px; line-height: {{{mksize9}}}px; position: absolute; display: block; left:{#expr: ({{{mapsize_x}}}*{{{x9}}}/100 - {{{mksize9}}} 2 ) round 0 }px; top:{#expr: ({{{mapsize_y}}}*{{{y9}}}/100 - {{{mksize9}}} 2 ) round 0 }px; padding:0;">{{#if: {{{mk9}}} |[[Bild:{{{mk9}}}|{{{mksize9}}}px|{{{mktext9}}}]]}}</div><div style="font-size: {{{mksize10}}}px; line-height: {{{mksize10}}}px; position: absolute; display: block; left:{#expr: ({{{mapsize_x}}}*{{{x10}}}/100 - {{{mksize10}}} 2 ) round 0 }px; top:{#expr: ({{{mapsize_y}}}*{{{y10}}}/100 - {{{mksize10}}} 2 ) round 0 }px; padding:0;">{{#if: {{{mk10}}} |[[Bild:{{{mk10}}}|{{{mksize10}}}px|{{{mktext10}}}]]}}</div>[[Bild:{{{map}}}|{{{mapsize_x}}}x{{{mapsize_y}}}px|{{{maptext}}}]]</div>
 
|}<noinclude>
 
|}<noinclude>
 
|}
 
|}

Version vom 19. Februar 2023, 22:46 Uhr

[[Bild:{{{mk1}}}|{{{mksize1}}}px|{{{mktext1}}}]]
[[Bild:{{{mk2}}}|{{{mksize2}}}px|{{{mktext2}}}]]
[[Bild:{{{mk3}}}|{{{mksize3}}}px|{{{mktext3}}}]]
[[Bild:{{{mk4}}}|{{{mksize4}}}px|{{{mktext4}}}]]
[[Bild:{{{mk5}}}|{{{mksize5}}}px|{{{mktext5}}}]]
[[Bild:{{{mk6}}}|{{{mksize6}}}px|{{{mktext6}}}]]
[[Bild:{{{mk7}}}|{{{mksize7}}}px|{{{mktext7}}}]]
[[Bild:{{{mk8}}}|{{{mksize8}}}px|{{{mktext8}}}]]
[[Bild:{{{mk9}}}|{{{mksize9}}}px|{{{mktext9}}}]]
[[Bild:{{{mk10}}}|{{{mksize10}}}px|{{{mktext10}}}]]
[[Bild:{{{map}}}|{{{mapsize_x}}}x{{{mapsize_y}}}px|{{{maptext}}}]]

Diese Vorlage ermöglicht bis zu 10 Markierungen auf einem Lageplan. Siehe auch Vorlage:Lageplan (einzelne Markierungen, gerahmt) und Vorlage:Lageplan25 (mehr als 10, bis zu 25 Markierungen).

Kopiervorlage

{{Lageplan10
|mk[1-10]     = 
|mksize[1-10] = 
|mktext[1-10] = 
|x[1-10]      = 
|y[1-10]      = 
|map          = 
|mapsize_x    = 
|mapsize_y    = 
|maptext      = 
}}

Für den Ausdruck "[1-10]" ist natürlich eine Zahl einzutragen. Für überzählige Marker bis hin zur Nr. 10 müssen zumindest die "mk"s als leere Ausdrücke angegeben werden.

|mk2=|mk3=|mk4=|mk5=|mk6=|mk7=|mk8=|mk9=|mk10=