Vorlage:Positionskarte~: Unterschied zwischen den Versionen

Aus HuskyWiki
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
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;
|{{#iferror:{{CoordinateLAT |{{{lat|}}} }}{{CoordinateLONG|{{{long|}}} }}
  text-align:{{#switch:{{{position|}}}
  |{{#if:{{{name|}}}|{{{name}}}|{{#if:{{{label|}}}|{{{label}}}|{{PAGENAME}}}}}}:{{CoordinateMSG|1
  |={{#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; }}}}
  |{{CoordinateLAT |{{{lat|}}} }}
|1=left; left:-1.5em; bottom:3px;
  |{{CoordinateLONG|{{{long|}}} }}
|2=left; left:1px; bottom:1px;
  }}|}}{{#if:{{{region|}}}||{{#switch:{{{globe|}}}|<!--void-->|earth={{CoordinateMSG|6|{{#if:{{{name|}}}|{{{name}}}|{{#if:{{{label|}}}|{{{label}}}|{{PAGENAME}}}}}} }}}}
|3
}}{{#if:{{IstZahl|0{{{pop|}}}|N}}|<!--void-->|{{CoordinateMSG|9|{{{pop|}}}}}
|right=left; left:3px; top:-2em; height:4em;
}}{{#if:{{IstZahl|0{{{elevation|}}}|R|2}}|<!--void-->|{{CoordinateMSG|7|{{{elevation|}}}}}
  |4=left; left:1px; top:1px;
}}{{Positionskarte~*
|5=left; left:-1.5em; top:3px;
|LAT ={{#iferror:{{CoordinateLAT |{{{lat|}}} }}|}}
|6
|LONG={{#iferror:{{CoordinateLONG|{{{long|}}} }}|}}
|bottom=center; top:3px; {{#ifeq: {{{wrap}}} | manual | left:-5em; | left:-3em }}
|Y={{#iferror:{{#expr:{{#if:{{Positionskarte {{{1|Erde}}}|y}}
  |7=right; right:-1.5em; top:3px;
  |{{Positionskarte {{{1|Erde}}}|y
|8=right; right:1px; top:1px;
  |{{CoordinateLAT |{{{lat|}}} }}
|9
  |{{CoordinateLONG|{{{long|}}} }}
|left=right; right:3px; top:-2em; height:4em;
  }}
|10=right; right:1px; bottom:1px;
  | 100
|11=right; right:-1.5em; bottom:3px;
  *({{Positionskarte {{{1|Erde}}}|top}}
  |12
  - {{CoordinateLAT |{{{lat|}}} }}
|top=center; bottom:3px; {{#ifeq: {{{wrap}}} | manual | left:-5em; | left:-3em }}
  ) / ({{Positionskarte {{{1|Erde}}}|top}} - {{Positionskarte {{{1|Erde}}}|bottom}}) round 1
  |center=center; top:-2em; height:4em; {{#ifeq: {{{wrap}}} | manual | left:-5em; | left:-3em }}
  }}}}|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 22. Juli 2019, 08:25 Uhr

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