Vorlage:Positionskarte~: Unterschied zwischen den Versionen

Aus HuskyWiki
Ä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}};">[[image:{{#if: {{{Alternativkarte|}}} | {{{Alternativkarte}}} | {{Positionskarte {{{1|Erde}}}|image}} }}|frameless|{{#if:{{{width|x}}}|{{{width|240}}}px|upright=1}}|center|{{#if: {{{label|}}}  
|<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:{{{Y|}}}{{{X|}}}
</noinclude>{{#if:{{{LAT}}}{{{LONG}}}
|{{Positionskarte~*
|<div style="
|Y={{{Y|50}}}
position:absolute;
  |X={{{X|50}}}
top:{{#ifexpr:{{{Y|100}}}<0|0|{{#ifexpr:{{{Y|100}}}>100|100|{{{Y|100}}}}}}}%;
  |position={{{position|}}}
  left:{{#ifexpr:{{{X|100}}}<0|0|{{#ifexpr:{{{X|100}}}>100|100|{{{X|100}}}}}}}%;
|wrap={{{wrap|}}}
height:0;
|label={{{label|{{PAGENAME}}}}}
  width:0;
|label_size={{{label_size|90}}}
"><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}}}}}
  |label_style={{{label_style|}}}
default {{{marktarget|[[{{FULLPAGENAME}}]]}}}
|label_color={{{label_color|}}}
desc none }}}}</div>
  |background={{{background|}}}
 
{{#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;
  }}
  }}
|{{#if:{{{lat_deg|}}}{{{lon_deg|}}}
margin: 0 .2em;
  |<span style="display:none">[[Vorlage:Positionskarte/Wartung/DMS|DMS]]</span>
  text-align:{{#switch:{{{position|}}}
}}{{#iferror:{{CoordinateLAT |{{{lat|}}} }}{{CoordinateLONG|{{{long|}}} }}
  |={{#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; }}}}
  |{{#if:{{{name|}}}|{{{name}}}|{{#if:{{{label|}}}|{{{label}}}|{{PAGENAME}}}}}}:{{CoordinateMSG|1
|1=left; left:-1.5em; bottom:3px;
  |{{CoordinateLAT |{{{lat|}}} }}
|2=left; left:1px; bottom:1px;
  |{{CoordinateLONG|{{{long|}}} }}
|3
  }}|}}{{#if:{{{region|}}}||{{#switch:{{{globe|}}}|<!--void-->|earth={{CoordinateMSG|6|{{#if:{{{name|}}}|{{{name}}}|{{#if:{{{label|}}}|{{{label}}}|{{PAGENAME}}}}}} }}}}
|right=left; left:3px; top:-2em; height:4em;
}}{{#if:{{IstZahl|0{{{pop|}}}|N}}|<!--void-->|{{CoordinateMSG|9|{{{pop|}}}}}
|4=left; left:1px;  top:1px;
}}{{#if:{{IstZahl|0{{{elevation|}}}|R|2}}|<!--void-->|{{CoordinateMSG|7|{{{elevation|}}}}}
|5=left; left:-1.5em; top:3px;
}}{{Positionskarte~*
  |6
|LAT ={{#iferror:{{CoordinateLAT |{{{lat|}}} }}|}}
|bottom=center; top:3px; {{#ifeq: {{{wrap}}} | manual | left:-5em; | left:-3em }}
|LONG={{#iferror:{{CoordinateLONG|{{{long|}}} }}|}}
  |7=right; right:-1.5em; top:3px;
|Y={{#iferror:{{#expr:{{#if:{{Positionskarte {{{1|Erde}}}|y}}
|8=right; right:1px; top:1px;
  |{{Positionskarte {{{1|Erde}}}|y
  |9
  |{{CoordinateLAT |{{{lat|}}} }}
  |left=right; right:3px; top:-2em; height:4em;
  |{{CoordinateLONG|{{{long|}}} }}
|10=right; right:1px; bottom:1px;
  }}
|11=right; right:-1.5em; bottom:3px;
  | 100
  |12
  *({{Positionskarte {{{1|Erde}}}|top}}
|top=center; bottom:3px; {{#ifeq: {{{wrap}}} | manual | left:-5em; | left:-3em }}
  - {{CoordinateLAT |{{{lat|}}} }}
  |center=center; top:-2em; height:4em; {{#ifeq: {{{wrap}}} | manual | left:-5em; | left:-3em }}
  ) / ({{Positionskarte {{{1|Erde}}}|top}} - {{Positionskarte {{{1|Erde}}}|bottom}}) round 1
  }}}}|0}}
|X={{#iferror:{{#expr:{{#if:{{Positionskarte {{{1|Erde}}}|x}}
  |{{Positionskarte {{{1|Erde}}}|x
  |{{CoordinateLAT |{{{lat|}}} }}
  |{{CoordinateLONG|{{{long|}}} }}
  }}
  | 100
  *(({{CoordinateLONG|{{{long|}}} }}<0)
  *({{Positionskarte {{{1|Erde}}}|right}}<{{Positionskarte {{{1|Erde}}}|left}})*360
  +{{CoordinateLONG|{{{long|}}} }}
  -{{Positionskarte {{{1|Erde}}}|left}}
  ) /
  ( ({{Positionskarte {{{1|Erde}}}|right}}<{{Positionskarte {{{1|Erde}}}|left}})*360
  + {{Positionskarte {{{1|Erde}}}|right}}
  - {{Positionskarte {{{1|Erde}}}|left}}
  ) round 1
  }}}}|0}}
|position={{{position|}}}
|wrap={{{wrap|}}}
|marksize= {{#if:{{{marksize|}}}
|{{{marksize}}}
  |{{#if:{{Positionskarte {{{1|Erde}}}|marksize}}|{{Positionskarte {{{1|Erde}}}|marksize}}|8}}
  }}
  }}
|mark={{#if: {{{mark|}}}
"><tr><td style="border:none; vertical-align:middle;"><span style="position:relative;
|{{{mark}}}
z-index:9;
|{{#if:{{Positionskarte {{{1|Erde}}}|mark}}|{{Positionskarte {{{1|Erde}}}|mark}}|{{#if:{{{marktype|}}}|{{Positionskarte/marktype|{{{marktype|}}}}}|Red_pog.svg}}}}
{{#switch:{{lc:{{#titleparts:{{{label_style|}}}|1|1}}}}
}}
|bold=font-weight:bold;
|label={{{label|{{PAGENAME}}}}}
|italic=font-style:italic;
|label_size={{{label_size|90}}}
|underline=text-decoration:underline;
|label_style={{{label_style|}}}
|letterspacing=letter-spacing:0.1em;
|label_color={{{label_color|}}}
|wordspacing=word-spacing:0.5em;
|marktarget= {{#if:{{{marktarget|}}}
|smallcaps=font-variant:small-caps;
|[[{{{marktarget}}}]]
|uppercase=text-transform:uppercase;
|{{CoordinateLINK
}}
|NS={{#iferror:{{CoordinateLAT |{{{lat|}}} }}|}}
{{#switch:{{#titleparts:{{{label_style|}}}|1|2}}
|EW={{#iferror:{{CoordinateLONG|{{{long|}}} }}|}}
|bold=font-weight:bold;
|type ={{#switch: {{{type|}}}
|italic=font-style:italic;
|country|state|adm1st|adm2nd|city|isle|airport|mountain|waterbody|forest|landmark={{{type}}}
|underline=text-decoration:underline;
|example={{#if:{{NAMESPACE}}|{{{type}}}|landmark}}
|letterspacing=letter-spacing:0.1em;
|#default=landmark
|wordspacing=word-spacing:0.5em;
}}<!--type Fehler meldung fehlt noch! An label dranhängen? -->
|smallcaps=font-variant:small-caps;
|pop={{#if:{{IstZahl|0{{{pop|}}}|N}}|{{{pop|}}}}}
|uppercase=text-transform:uppercase;
|elevation={{#if:{{IstZahl|0{{{elevation|}}}|R|2}}|{{{elevation|}}}}}
}}
|region ={{{region|}}}
{{#switch:{{#titleparts:{{{label_style|}}}|1|3}}
        |globe  ={{{globe|}}}
|bold=font-weight:bold;
|dim ={{{dim|}}}
|italic=font-style:italic;
|label ={{#if:{{{name|}}}|{{urlencode:{{{name|}}}}}|{{urlencode:{{{label|}}}}}}}
|underline=text-decoration:underline;
|0={{#if:{{FULLPAGENAME:{{{label|}}}}}|{{{label}}}}} {{#ifeq:{{{position|none}}}|none||({{Coordinate to {{#titleparts:{{CoordinateRR DEFAULT|{{{region|{{Positionskarte {{{1|Erde}}}|ISO 3166-2}}}}}}}|1|1}} for maps
|letterspacing=letter-spacing:0.1em;
  |NS ={{CoordinateLAT |{{{lat|0}}} }}
|wordspacing=word-spacing:0.5em;
  |EW ={{CoordinateLONG|{{{long|0}}} }}
|smallcaps=font-variant:small-caps;
  |dim =0{{Positionskarte {{{1|Erde}}}|dim}}}})}}
|uppercase=text-transform:uppercase;
}}
}}
}}
{{#switch:{{#titleparts:{{{label_style|}}}|1|4}}
|background={{{background|}}}
|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;
}}
}}
}}<noinclude><!--Testframe end--></div>
{{#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>
{{Dokumentation}}
 
|<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
Positionskarte~ (Erde)
Positionskarte~ (Erde)
Positionskarte~
Positionskarte~
Positionskarte~

Vorlage:Positionskarte+