Vorlage:Positionskarte~: Unterschied zwischen den Versionen
Änderung 58659 von Gohabsgo (Diskussion) rückgängig gemacht. |
Keine Bearbeitungszusammenfassung |
||
Zeile 1: | Zeile 1: | ||
<noinclude><!-- Testframe! --> | <noinclude>{{Tausendfach verwendet}} <!-- Testframe! --> | ||
{| | {| | ||
|<div class="positionmap" style="position: relative; z-index: 0; padding: 0; border: 1px solid {{#if:{{{border|}}}|{{{border}}}|#CCCCCC}};">[[ | |<div class="positionmap" style="position: relative; z-index: 0; padding: 0; border: 1px solid {{#if:{{{border|}}}|{{{border}}}|#CCCCCC}};">[[Datei:{{#if: {{{Alternativkarte|}}} | {{{Alternativkarte}}} | {{Positionskarte {{{1|Erde}}}|image}} }}|frameless|{{#if:{{{width|x}}}|{{{width|240}}}px|upright=1}}|center|{{#if: {{{label|}}} | ||
| {{{label}}} | | {{{label}}} | ||
| {{PAGENAME}} | | {{PAGENAME}} | ||
}} ({{Positionskarte {{{1|Erde}}}|name}})]] <!-- begin --> | }} ({{Positionskarte {{{1|Erde}}}|name}})]] <!-- begin --> | ||
</noinclude>{{#if:{{{ | </noinclude>{{#if:{{{LAT}}}{{{LONG}}} | ||
|{{ | |<div style=" | ||
position:absolute; | |||
|X | top:{{#ifexpr:{{{Y|100}}}<0|0|{{#ifexpr:{{{Y|100}}}>100|100|{{{Y|100}}}}}}}%; | ||
| | left:{{#ifexpr:{{{X|100}}}<0|0|{{#ifexpr:{{{X|100}}}>100|100|{{{X|100}}}}}}}%; | ||
height:0; | |||
width:0; | |||
"><div style="position:relative;z-index:100;left:-{{#expr:{{{marksize|8}}}/2}}px;top:-{{#expr:{{{marksize|8}}}/2}}px;width:{{{marksize|8}}}px;height:{{{marksize|8}}}px;line-height:0px;" >{{#if:{{{marktarget<includeonly>|</includeonly>}}}|{{#tag:imagemap|Bild:{{{mark|Red pog.svg}}}{{!}}{{{marksize|8}}}x{{{marksize|8}}}px{{!}}{{{label|{{PAGENAME}}}}} | |||
default {{{marktarget|[[{{FULLPAGENAME}}]]}}} | |||
desc none }}}}</div> | |||
{{#ifeq:{{{position|}}}|none||<table style=" | |||
font-size:{{#if:{{{label_size|}}}|{{{label_size}}}|90}}%; | |||
border:none; | |||
background-color:transparent; | |||
border-collapse:collapse; | |||
line-height:1em; | |||
position:absolute; | |||
{{#ifeq: {{{wrap}}} | manual | |||
| white-space:nowrap; width:10em; | |||
| width:6em; | |||
}} | }} | ||
margin: 0 .2em; | |||
text-align:{{#switch:{{{position|}}} | |||
|={{#ifexpr:{{{X|100}}}>50|right; right:1px; {{#ifexpr:{{{Y|100}}}>33|bottom:1px; |top:1px; }}|left; left:1px; {{#ifexpr:{{{Y|100}}}>33|bottom:1px; |top:1px; }}}} | |||
|{{# | |1=left; left:-1.5em; bottom:3px; | ||
|2=left; left:1px; bottom:1px; | |||
|3 | |||
|right=left; left:3px; top:-2em; height:4em; | |||
|4=left; left:1px; top:1px; | |||
|5=left; left:-1.5em; top:3px; | |||
|6 | |||
| | |bottom=center; top:3px; {{#ifeq: {{{wrap}}} | manual | left:-5em; | left:-3em }} | ||
| | |7=right; right:-1.5em; top:3px; | ||
| | |8=right; right:1px; top:1px; | ||
| | |9 | ||
|left=right; right:3px; top:-2em; height:4em; | |||
|10=right; right:1px; bottom:1px; | |||
|11=right; right:-1.5em; bottom:3px; | |||
| | |12 | ||
|top=center; bottom:3px; {{#ifeq: {{{wrap}}} | manual | left:-5em; | left:-3em }} | |||
|center=center; top:-2em; height:4em; {{#ifeq: {{{wrap}}} | manual | left:-5em; | left:-3em }} | |||
| | |||
| | |||
| | |||
| | |||
|{{# | |||
}} | }} | ||
"><tr><td style="border:none; vertical-align:middle;"><span style="position:relative; | |||
z-index:9; | |||
{{#switch:{{lc:{{#titleparts:{{{label_style|}}}|1|1}}}} | |||
|bold=font-weight:bold; | |||
| | |italic=font-style:italic; | ||
|underline=text-decoration:underline; | |||
|letterspacing=letter-spacing:0.1em; | |||
| | |wordspacing=word-spacing:0.5em; | ||
| | |smallcaps=font-variant:small-caps; | ||
|uppercase=text-transform:uppercase; | |||
}} | |||
{{#switch:{{#titleparts:{{{label_style|}}}|1|2}} | |||
|bold=font-weight:bold; | |||
|italic=font-style:italic; | |||
|underline=text-decoration:underline; | |||
|letterspacing=letter-spacing:0.1em; | |||
|wordspacing=word-spacing:0.5em; | |||
|smallcaps=font-variant:small-caps; | |||
|uppercase=text-transform:uppercase; | |||
}} | |||
{{#switch:{{#titleparts:{{{label_style|}}}|1|3}} | |||
|bold=font-weight:bold; | |||
|italic=font-style:italic; | |||
|underline=text-decoration:underline; | |||
|letterspacing=letter-spacing:0.1em; | |||
|wordspacing=word-spacing:0.5em; | |||
|smallcaps=font-variant:small-caps; | |||
|uppercase=text-transform:uppercase; | |||
}} | |||
{{#switch:{{#titleparts:{{{label_style|}}}|1|4}} | |||
| | |bold=font-weight:bold; | ||
|italic=font-style:italic; | |||
|underline=text-decoration:underline; | |||
|letterspacing=letter-spacing:0.1em; | |||
|wordspacing=word-spacing:0.5em; | |||
|smallcaps=font-variant:small-caps; | |||
|uppercase=text-transform:uppercase; | |||
}} | |||
{{#switch:{{#titleparts:{{{label_style|}}}|1|5}} | |||
|bold=font-weight:bold; | |||
|italic=font-style:italic; | |||
|underline=text-decoration:underline; | |||
|letterspacing=letter-spacing:0.1em; | |||
|wordspacing=word-spacing:0.5em; | |||
|smallcaps=font-variant:small-caps; | |||
|uppercase=text-transform:uppercase; | |||
}} | |||
{{#switch:{{#titleparts:{{{label_style|}}}|1|6}} | |||
|bold=font-weight:bold; | |||
|italic=font-style:italic; | |||
|underline=text-decoration:underline; | |||
|letterspacing=letter-spacing:0.1em; | |||
|wordspacing=word-spacing:0.5em; | |||
|smallcaps=font-variant:small-caps; | |||
|uppercase=text-transform:uppercase; | |||
}} | |||
{{#switch:{{#titleparts:{{{label_style|}}}|1|7}} | |||
|bold=font-weight:bold; | |||
|italic=font-style:italic; | |||
|underline=text-decoration:underline; | |||
|letterspacing=letter-spacing:0.1em; | |||
|wordspacing=word-spacing:0.5em; | |||
|smallcaps=font-variant:small-caps; | |||
|uppercase=text-transform:uppercase; | |||
}} | }} | ||
}}< | {{#if:{{{label_color|}}}|color:{{{label_color}}}; }}{{#if:{{{background|}}}|background-color:{{{background}}}; }} | ||
|} | ">{{{label|{{PAGENAME}}}}} {{#ifexpr:{{{X|0}}}<0 or {{{X|0}}}>100 or {{{Y|0}}}<0 or {{{Y|0}}}>100 |nicht auf der Karte<span style="display:none">[[Vorlage:Positionskarte/Wartung/Koordinate außerhalb|p3]]</span>}}</span></td></tr></table>}}</div> | ||
{{ | |||
|<div style="color:red; position:absolute; text-align: center; top:30%; left:0; height:0; width:100%; font-size:{{{label_size|120}}}%;"> {{#if:{{{label|{{PAGENAME}}}}}|{{{label|{{PAGENAME}}}}} ohne|keine}} Koordinaten</div> | |||
}}<noinclude></div> | |||
|} <!-- Testframe end --> | |||
→[[Vorlage:Positionskarte+]] | |||
[[Kategorie:Vorlage:Untervorlage|Positionskarte~*]] | |||
</noinclude> | </noinclude> |
Version vom 22. Juli 2019, 08:24 Uhr
Datei:Stop hand.svg | Diese Vorlage ist vielfach eingebunden. Wenn du die Auswirkungen genau kennst, kannst du sie bearbeiten. Meist ist es jedoch sinnvoll, Änderungswünsche erst auf Vorlage Diskussion:Positionskarte~ abzustimmen. |
|