Vorlage:Positionskarte~: Unterschied zwischen den Versionen

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

Positionskarte~ (Erde)
Positionskarte~ (Erde)
Positionskarte~ ohne Koordinaten