Předłoha:LocMap~: Rozdźěl mjez wersijomaj

Inhalt gelöscht Inhalt hinzugefügt
TXiKiBoT (diskusija | přinoški)
S r2.4.6) (bot přidał: eu:Txantiloi:Kokapen mapa~
nowy kode z hrajkanišća
Rjadka 1:
<noinclude><!--{{Tausendfach verwendet}} Testframe! -->
{|
|<div class="positionmap" style="position: relative; z-index: 0; padding: 0; border: 1px solid {{#if:{{{border|}}}|{{{border}}}|#CCCCCC}};">[[image:{{#if: {{{AlternativeMapAlternatiwnaMapa|}}} | {{{AlternativeMapAlternatiwnaMapa}}} | {{LocMap {{{1|zemja}}}|image}} }}|frameless|{{#if:{{{width|x}}}|{{{width|240}}}px|upright=1}}|center|{{#if: {{{label|}}}
| {{{label}}}
| {{PAGENAME}}
Rjadka 10:
|X={{{X|50}}}
|position={{{position|}}}
|wrap={{{wrap|}}}
|label={{{label|{{PAGENAME}}}}}
|label_size={{{label_size|90}}}
Zeile 15 ⟶ 16:
}}
|{{#if:{{{lat_deg|}}}{{{lon_deg|}}}
|<span style="display:none">[[Předłoha:LocMap/hladanjewothladanje/DMS|DMS]]</span>
|<span style="display:none">[[Předłoha:LocMap/hladanjewothladanje/DEC|DEC]]</span>
}}{{#iferror:{{CoordinateLAT |{{#if:{{{lat_deg|}}}|{{{lat_deg|}}}/{{{lat_min|}}}/{{{lat_sec|}}}/{{{lat_dir|}}}|{{{lat|}}}}} }}{{CoordinateLONG|{{#if:{{{lon_deg|}}}|{{{lon_deg|}}}/{{{lon_min|}}}/{{{lon_sec|}}}/{{#ifeq:{{{lon_dir|}}}|O|E|{{{lon_dir|}}}}}|{{{long|}}}}} }}
|{{#if:{{{name|}}}|{{{name}}}|{{#if:{{{label|}}}|{{{label}}}|{{PAGENAME}}}}}}:{{CoordinateMSG|1
|{{CoordinateLAT |{{#if:{{{lat_deg|}}}|{{{lat_deg|}}}/{{{lat_min|}}}/{{{lat_sec|}}}/{{{lat_dir|}}}|{{{lat|}}}}} }}
|{{CoordinateLONG|{{#if:{{{lon_deg|}}}|{{{lon_deg|}}}/{{{lon_min|}}}/{{{lon_sec|}}}/{{#ifeq:{{{lon_dir|}}}|O|E|{{{lon_dir|}}}}}|{{{long|}}}}}}}
}}|}}{{#if:{{{region|}}}||{{#switch:{{{globe|}}}|<!--void-->|earth={{CoordinateMSG|6|{{#if:{{{name|}}}|{{{name}}}|{{#if:{{{label|}}}|{{{label}}}|{{PAGENAME}}}}}} }}}}
}}{{#if:{{jeLičba|0{{{pop|}}}|N}}|<!--void-->|{{CoordinateMSG|9|{{{pop|}}}}}
}}{{#if:{{jeLičba|0{{{elevation|}}}|R|2}}|<!--void-->|{{CoordinateMSG|7|{{{elevation|}}}}}
}}{{LocMap~*
|LAT= ={{#iferror:{{CoordinateLAT |{{#if:{{{lat_deg|}}}|{{{lat_deg|}}}/{{{lat_min|}}}/{{{lat_sec|}}}/{{{lat_dir|}}}|{{{lat|}}}}} }}|}}
|LONG={{#iferror:{{CoordinateLONG|{{#if:{{{lon_deg|}}}|{{{lon_deg|}}}/{{{lon_min|}}}/{{{lon_sec|}}}/{{#ifeq:{{{lon_dir|}}}|O|E|{{{lon_dir|}}}}}|{{{long|}}}}} }}|}}
|Y={{#iferror:{{#expr:{{#if:{{LocMap {{{1|zemja}}}|y}}
|{{LocMap {{{1|zemja}}}|y
|{{CoordinateLAT |{{#if:{{{lat_deg|}}}|{{{lat_deg|}}}/{{{lat_min|}}}/{{{lat_sec|}}}/{{{lat_dir|}}}|{{{lat|0}}}}} }}
|{{CoordinateLONG|{{#if:{{{lon_deg|}}}|{{{lon_deg|}}}/{{{lon_min|}}}/{{{lon_sec|}}}/{{#ifeq:{{{lon_dir|}}}|O|E|{{{lon_dir|}}}}}|{{{long|0}}}}} }}
}}
| 100
*({{LocMap {{{1|zemja}}}|top}}
- {{CoordinateLAT |{{#if:{{{lat_deg|}}}|{{{lat_deg|}}}/{{{lat_min|}}}/{{{lat_sec|}}}/{{{lat_dir|}}}|{{{lat|0}}}}} }}
) / ({{LocMap {{{1|zemja}}}|top}} - {{LocMap {{{1|zemja}}}|bottom}}) round 1
}}}}|0}}
|X={{#iferror:{{#expr:{{#if:{{LocMap {{{1|zemja}}}|x}}
|{{LocMap {{{1|zemja}}}|x
|{{CoordinateLAT |{{#if:{{{lat_deg|}}}|{{{lat_deg|}}}/{{{lat_min|}}}/{{{lat_sec|}}}/{{{lat_dir|}}}|{{{lat|0}}}}} }}
|{{CoordinateLONG|{{#if:{{{lon_deg|}}}|{{{lon_deg|}}}/{{{lon_min|}}}/{{{lon_sec|}}}/{{#ifeq:{{{lon_dir|}}}|O|E|{{{lon_dir|}}}}}|{{{long|0}}}}} }}
}}
| 100
*(({{CoordinateLONG|{{#if:{{{lon_deg|}}}|{{{lon_deg|}}}/{{{lon_min|}}}/{{{lon_sec|}}}/{{#ifeq:{{{lon_dir|}}}|O|E|{{{lon_dir|}}}}}|{{{long|0}}}}}}}<0)
*({{LocMap {{{1|zemja}}}|right}}<{{LocMap {{{1|zemja}}}|left}})*360
+{{CoordinateLONG|{{#if:{{{lon_deg|}}}|{{{lon_deg|}}}/{{{lon_min|}}}/{{{lon_sec|}}}/{{#ifeq:{{{lon_dir|}}}|O|E|{{{lon_dir|}}}}}|{{{long|0}}}}} }}
-{{LocMap {{{1|zemja}}}|left}}
) /
Zeile 45 ⟶ 53:
- {{LocMap {{{1|zemja}}}|left}}
) round 1
}}}}|0}}
|position={{{position|}}}
|wrap={{{wrap|}}}
|marksize= {{#if:{{{marksize|}}}
|{{{marksize}}}
Zeile 60 ⟶ 69:
|[[{{{marktarget}}}]]
|{{CoordinateLINK
|NS={{#iferror:{{CoordinateLAT |{{#if:{{{lat_deg|}}}|{{{lat_deg|}}}/{{{lat_min|}}}/{{{lat_sec|}}}/{{{lat_dir|}}}|{{{lat|0}}}}} }}|}}
|EW={{#iferror:{{CoordinateLONG|{{#if:{{{lon_deg|}}}|{{{lon_deg|}}}/{{{lon_min|}}}/{{{lon_sec|}}}/{{#ifeq:{{{lon_dir|}}}|O|E|{{{lon_dir|}}}}}|{{{long|0}}}}} }}|}}
|type ={{#switch: {{{type|}}}
|country|state|adm1st|adm2nd|city|isle|airport|mountain|waterbody|forest|landmark={{{type}}}
|example={{#if:{{NAMESPACE}}|{{{type}}}|landmark}}
|#default=landmark
}}<!--type Fehler meldung fehlt noch! An label dranhängen? -->
}}
|pop ={{#if:{{jeLičba|0{{{pop|}}}|N}}|{{{pop|}}}}}
|elevation={{#if:{{jeLičba|0{{{elevation|}}}|R|2}}|{{{elevation|}}}}}
|region ={{{region|}}}
|globe ={{{globe|}}}
|dim ={{{dim|}}}
|label ={{urlencode:{{{name|}}}}}
|0={{#if:{{{label|}}}|{{#ifeq:{{LOCALURL:{{{label}}}}}|/wiki/{{ucfirst:{{{label}}}}}|{{{label}}}}}}} {{#ifeq:{{{position|none}}}|none||({{Coordinate to {{#titleparts:{{CoordinateRR DEFAULT|{{{region|{{LocMap {{{1|zemja}}}|ISO 3166-2}}}}}}}|1|1}} for maps
|NS ={{CoordinateLAT |{{#if:{{{lat_deg|}}}|{{{lat_deg|}}}/{{{lat_min|}}}/{{{lat_sec|}}}/{{{lat_dir|}}}|{{{lat|0}}}}} }}
|EW ={{CoordinateLONG|{{#if:{{{lon_deg|}}}|{{{lon_deg|}}}/{{{lon_min|}}}/{{{lon_sec|}}}/{{#ifeq:{{{lon_dir|}}}|O|E|{{{lon_dir|}}}}}|{{{long|0}}}}} }}
|dim =0{{LocMap {{{1|zemja}}}|dim}}}})}}
}}
Z Wikipedije, swobodneje encyklopedije