Forskel mellem versioner af "Skabelon:Gps"

Skift til: navigering, søgning
m
m
 
(19 mellemliggende versioner af 2 andre brugere ikke vist)
Linje 1: Linje 1:
<span class=plainlinks><!-- breddegrad
+
{{#switch:{{#expr:{{{1|}}}}}
-->[//google.dk/maps/@{{#switch: {{{6}}}
+
| =
| {{{6|}}} = {{koo|{{{2}}}|{{{3}}}|{{{4}}}}}
+
| {{{1}}} = [[kategori:GPS]]<span class=plainlinks><!-- breddegrad linker til google maps
| {{#switch: {{{4|}}}
+
-->[//google.dk/maps/@{{#switch: {{#expr:{{{6|}}}}}
 +
| {{{6}}} = {{koo|{{{2}}}|{{{3}}}|{{{4}}}}}
 +
| {{#switch: {{#expr:{{{4|}}}}}
 
| {{{4}}} = {{koo|{{{2}}}|{{{3}}}}}
 
| {{{4}}} = {{koo|{{{2}}}|{{{3}}}}}
 
| {{{2}}}
 
| {{{2}}}
}}}},{{#switch: {{{6}}}
+
}}}},{{#switch: {{#expr:{{{6|}}}}}
| {{{6|}}} = {{koo|{{{5}}}|{{{6}}}|{{{7|0}}}}}
+
| {{{6}}} = {{koo|{{{5}}}|{{{6}}}|{{{7|0}}}}}
| {{#switch: {{{4|}}}
+
| {{#switch: {{#expr:{{{4|}}}}}
 
| {{{4}}} = {{koo|{{{4}}}|{{{5|0}}}}}
 
| {{{4}}} = {{koo|{{{4}}}|{{{5|0}}}}}
 
| {{{3}}}
 
| {{{3}}}
}}}},{{{1}}}z {{#switch: {{{6}}}
+
}}}},{{{1}}}z{{#switch:{{{a|}}}|k=|{{{a|}}}=/data=!3m1!1e3}} {{#switch: {{#expr:{{{6|}}}}}
| {{{6|}}} = {{#expr:abs{{{2}}}}}°{{{3}}}'{{{4}}}"
+
| {{{6}}} = {{#expr:abs{{{2}}}}}°{{{3}}}'{{{4}}}"
| {{#switch: {{{4|}}}
+
| {{#switch: {{#expr:{{{4|}}}}}
 
| {{{4}}} = {{#expr:abs{{{2}}}}}°{{{3}}}'
 
| {{{4}}} = {{#expr:abs{{{2}}}}}°{{{3}}}'
 
| {{#expr:abs{{{2|0}}}}}°
 
| {{#expr:abs{{{2|0}}}}}°
}}}} {{#ifeq:{{#expr:abs{{{2|0}}}}}|{{{2|0}}}|N|S}}] <!-- længdegrad
+
}}}}{{#ifeq:{{#expr:abs{{{2|0}}}}}|{{{2|0}}}|N|S}}] <!-- længdegrad linker til openseamap
-->{{#switch: {{{a|}}}
+
 
| {{{a}}} = [//map.openseamap.org/?zoom={{{1}}}&{{#switch:m|{{{a}}}|{{{f}}}|=m}}lat={{#switch: {{{6}}}
+
--> [//map.openseamap.org/?zoom={{{1}}}&{{#switch:{{{a}}}|i=|m}}lat={{#switch: {{#expr:{{{6|}}}}}
| {{{6|}}} = {{koo|{{{2}}}|{{{3}}}|{{{4}}}}}
+
| {{{6}}} = {{koo|{{{2}}}|{{{3}}}|{{{4}}}}}
| {{#switch: {{{4|}}}
+
| {{#switch: {{#expr:{{{4|}}}}}
 
| {{{4}}} = {{koo|{{{2}}}|{{{3}}}}}
 
| {{{4}}} = {{koo|{{{2}}}|{{{3}}}}}
 
| {{{2}}}
 
| {{{2}}}
}}}}&{{#switch:m|{{{a}}}|{{{f}}}|=m}}lon={{#switch: {{{6}}}
+
}}}}&{{#switch:{{{a}}}|i=|m}}lon={{#switch: {{#expr:{{{6|}}}}}
| {{{6|}}} = {{koo|{{{5}}}|{{{6}}}|{{{7|0}}}}}
+
| {{{6}}} = {{koo|{{{5}}}|{{{6}}}|{{{7|0}}}}}
| {{#switch: {{{4|}}}
+
| {{#switch: {{#expr:{{{4|}}}}}
 
| {{{4}}} = {{koo|{{{4}}}|{{{5|0}}}}}
 
| {{{4}}} = {{koo|{{{4}}}|{{{5|0}}}}}
 
| {{{3}}}
 
| {{{3}}}
}}}}&layers={{#switch:w|{{{a}}}|{{{f}}}|BFTFFTTFFFT0FFFFFFTTFF|BFFFFTFFFFF0FFFFFFTTFF}} {{#switch: {{{6}}}
+
}}}}&layers={{#switch:{{{a|}}}| w=BFTFFTTFFFT0FFFFFFTTFF|BFFFFTFFFFF0FFFFFFTTFF}} {{#switch: {{#expr:{{{6|}}}}}
| {{{6|}}} = {{#expr:abs{{{5}}}}}°{{{6}}}'{{{7|}}}{{#if:{{{7|}}}|"}} {{#ifeq:{{#expr:abs{{{5|0}}}}}|{{{5|0}}}|Ø|V}}]
+
| {{{6}}} = {{#expr:abs{{{5}}}}}°{{{6}}}'{{{7|}}}{{#if:{{{7|}}}|"}}{{#ifeq:{{#expr:abs{{{5|0}}}}}|{{{5|0}}}|Ø|V}}]
| {{#switch: {{{4|}}}
+
| {{#switch: {{#expr:{{{4|}}}}}
| {{{4}}} = {{#expr:abs{{{4}}}}}°{{{5|}}}{{#if:{{{5|}}}|'}} {{#ifeq:{{#expr:abs{{{4|0}}}}}|{{{4|0}}}|Ø|V}}]
+
| {{{4}}} = {{#expr:abs{{{4}}}}}°{{#switch:0|{{{5|0}}}=|{{#expr:abs{{{5}}}}}}}{{#if:{{{5|}}}|'}}{{#ifexpr:{{#expr:{{{4}}}+{{{5|0}}}/60}}<0|V|Ø}}]
| {{#expr:abs{{{3|0}}}}}° {{#ifeq:{{#expr:abs{{{3|0}}}}}|{{{3|0}}}|Ø|V}}] <includeonly>{{#ifeq:{{{2}}}{{{3}}}|{{#expr: {{{2}}} round 1 }}{{#expr: {{{3}}} round 0 }}|[[kategori:GPS (upræcis)]] ([[:kategori:GPS (upræcis)|upræcis]])|}}</includeonly>
+
| {{#expr:abs{{{3|0}}}}}°{{#ifeq:{{#expr:abs{{{3|0}}}}}|{{{3|0}}}|Ø|V}}]<includeonly>{{#ifeq:{{{2}}}{{{3}}}|{{#expr:{{{2}}} round 1}}{{#expr:{{{3}}} round 0}}|[[kategori:GPS (upræcis)]] ([[:kategori:GPS (upræcis)|upræcis]])}}</includeonly>}}}}<!-- Historisk Atlas
}}}}<includeonly>[[kategori:GPS (hav)]]</includeonly>
+
 
| = [//openstreetmap.org/#map={{{1}}}/{{#switch: {{{6}}}
+
-->{{#switch: h
| {{{6|}}} = {{koo|{{{2}}}|{{{3}}}|{{{4}}}}}
+
| {{{s}}} = [//historiskatlas.dk/@{{#switch: {{#expr:{{{6|}}}}}
| {{#switch: {{{4|}}}
+
| {{{6}}} = {{koo|{{{2}}}|{{{3}}}|{{{4}}}}}
 +
| {{#switch: {{#expr:{{{4|}}}}}
 
| {{{4}}} = {{koo|{{{2}}}|{{{3}}}}}
 
| {{{4}}} = {{koo|{{{2}}}|{{{3}}}}}
 
| {{{2}}}
 
| {{{2}}}
}}}}/{{#switch: {{{6}}}
+
}}}},{{#switch: {{#expr:{{{6|}}}}}
| {{{6|}}} = {{koo|{{{5}}}|{{{6}}}|{{{7|0}}}}}
+
| {{{6}}} = {{koo|{{{5}}}|{{{6}}}|{{{7|0}}}}}
| {{#switch: {{{4|}}}
+
| {{#switch: {{#expr:{{{4|}}}}}
 
| {{{4}}} = {{koo|{{{4}}}|{{{5|0}}}}}
 
| {{{4}}} = {{koo|{{{4}}}|{{{5|0}}}}}
 
| {{{3}}}
 
| {{{3}}}
}}}} {{#switch: {{{6}}}
+
}}}},{{{1}}}z '''⌘'''] <includeonly>[[kategori:Historisk Atlas]]</includeonly>}}<!-- upræcis
| {{{6|}}} = {{#expr:abs{{{5}}}}}°{{{6}}}'{{{7|}}}{{#if:{{{7|}}}|"}} {{#ifeq:{{#expr:abs{{{5|0}}}}}|{{{5|0}}}|Ø|V}}] <includeonly>[[kategori:GPS]]</includeonly>
+
 
| {{#switch: {{{4|}}}
+
-->{{#switch: {{#expr:{{{6|}}}}}
| {{{4}}} = {{#expr:abs{{{4}}}}}°{{{5|}}}{{#if:{{{5|}}}|'}} {{#ifeq:{{#expr:abs{{{4|0}}}}}|{{{4|0}}}|Ø|V}}]  
+
| {{{6}}} =
| {{#expr:abs{{{3|0}}}}}° {{#ifeq:{{#expr:abs{{{3|0}}}}}|{{{3|0}}}|Ø|V}}]
+
| {{#switch: {{#expr:{{{4|}}}}}
}} }} <includeonly>[[kategori:GPS]]</includeonly>
+
| {{{4}}} =<includeonly>{{#ifeq:{{{5|}}}|{{{5}}}||[[kategori:GPS (upræcis)]]}}</includeonly>
}}<!-- historisk luftfoto
+
| <includeonly>{{#ifeq:{{{2}}}{{{3}}}|{{#expr: {{{2}}} round 1}}{{#expr: {{{3}}} round 1}}|[[kategori:GPS (upræcis)]]}}</includeonly>
--> {{#switch: {{{f}}}
+
}}}}</span>}}<noinclude>
| e = [//kartor.eniro.se/?c=
 
| k = [//map.krak.dk/?c=
 
}}{{#switch: {{{f}}} | e | k = {{#switch: {{{6}}}
 
| {{{6|}}} = {{koo|{{{2}}}|{{{3}}}|{{{4}}}}}
 
| {{#switch: {{{4|}}}
 
| {{{4}}} = {{koo|{{{2}}}|{{{3}}}}}
 
| {{{2}}}
 
}}}},{{#switch: {{{6}}}
 
| {{{6|}}} = {{koo|{{{5}}}|{{{6}}}|{{{7|0}}}}}
 
| {{#switch: {{{4|}}}
 
| {{{4}}} = {{koo|{{{4}}}|{{{5|0}}}}}
 
| {{{3}}}
 
}}}}&z={{{1}}}&l=historic ✈] }} <!-- søkort
 
--> {{#switch: {{{a}}}
 
| e = [//kartor.eniro.se/?c=
 
| g = [//kart.gulesider.no/?c=
 
}}{{#switch: {{{a}}} | e | g = {{#switch: {{{6}}}
 
| {{{6|}}} = {{koo|{{{2}}}|{{{3}}}|{{{4}}}}}
 
| {{#switch: {{{4|}}}
 
| {{{4}}} = {{koo|{{{2}}}|{{{3}}}}}
 
| {{{2}}}
 
}}}},{{#switch: {{{6}}}
 
| {{{6|}}} = {{koo|{{{5}}}|{{{6}}}|{{{7|0}}}}}
 
| {{#switch: {{{4|}}}
 
| {{{4}}} = {{koo|{{{4}}}|{{{5|0}}}}}
 
| {{{3}}}
 
}}}}&z={{{1}}}&l=nautical ⚓] <includeonly>[[kategori:GPS (søkort)]]</includeonly>}} <!-- Historisk Atlas
 
--> {{#switch: h
 
| {{{a}}} | {{{f}}} = [//historiskatlas.dk/@{{#switch: {{{6}}}
 
| {{{6|}}} = {{koo|{{{2}}}|{{{3}}}|{{{4}}}}}
 
| {{#switch: {{{4|}}}
 
| {{{4}}} = {{koo|{{{2}}}|{{{3}}}}}
 
| {{{2}}}
 
}}}},{{#switch: {{{6}}}
 
| {{{6|}}} = {{koo|{{{5}}}|{{{6}}}|{{{7|0}}}}}
 
| {{#switch: {{{4|}}}
 
| {{{4}}} = {{koo|{{{4}}}|{{{5|0}}}}}
 
| {{{3}}}
 
}}}},{{{1}}}z '''⌘'''] <includeonly>[[kategori:Historisk Atlas]]</includeonly>}}
 
<!-- upræcis
 
-->{{#switch: {{{6}}}
 
| {{{6|}}} =
 
| {{#switch: {{{4|}}}
 
| {{{4}}} = <includeonly>{{#ifeq:{{{5|}}}|{{{5}}}||[[kategori:GPS (upræcis)]]}}</includeonly>
 
| <includeonly>{{#ifeq:{{{2}}}{{{3}}}|{{#expr: {{{2}}} round 1 }}{{#expr: {{{3}}} round 1 }}|[[kategori:GPS (upræcis)]]}}</includeonly>
 
}}}}</span><noinclude>
 
 
== Noter ==
 
== Noter ==
 +
For [[søkort]] over kystområder i Norge, Sverige eller Finland benyttes <code>[[Skabelon:Gpsn|<nowiki>{{gpsn}}</nowiki>]]</code>, som indsætter et ⚓ med link til [[Gule sider]].
 +
For øvrige havområder benyttes <code><nowiki>{{gps}}</nowiki></code>, som (afhængig af evt. fast parameter a) viser forskellige havkort:
 +
* nord/sydlig breddegrad med link til [[Google Maps]]
 +
* øst/vestlig længdegrad med link til [[OpenSeaMap]]
 +
** knappenål fjernes med (a=i)
 +
** wikilinks indsættes med (a=w)
 +
* ⌘ (s=h) med link til [[Historisk Atlas]] i Danmark — [[:kategori:hia|Historisk Atlas]]
  
Skabelonen <code><nowiki>{{gps}}</nowiki></code> viser nord/sydlig breddegrad med link til [[Google Maps]] og øst/vestlig længdegrad med link bestemt af parameteren a til enten [[OpenStreetMap]] eller [[OpenSeaMap]], foruden eventuelle ekstra links angivet ved symboler:
+
Parametrene s eller a skal efterfølges af '=', så de øvrige numeriske parametre ikke forskubbes og har følgende betydning:
 
+
* 0 parametre (1. paramter er tom): intet vises
* [[OpenStreetMap]] (fast parameter a udefineret) — [[:kategori:GPS|GPS]]
 
** ✈ (fast parameter f=k/e) med link til [[Kraks Forlag|Krak]] landkort over [[Danmark]] eller [[Eniro]] landkort over [[Sverige]] med historisk luftfoto, hvor k/e er valget mellem Krak eller Eniro
 
** ⌘ (fast parameter f=h) med link til [[Historisk Atlas]] i Danmark — [[:kategori:Historisk Atlas|Historisk Atlas]]
 
 
 
* [[OpenSeaMap]] (fast parameter a=) — [[:kategori:GPS (hav)|GPS (hav)]]
 
** ⚓ (a=g/e) med link til [[søkort]] over Norge, Sverige og Finland, hvor g/e er valget mellem norske [[Gule sider]] eller svenske [[Eniro]] — [[:kategori:GPS (søkort)|GPS (søkort)]]
 
** ⌘ (a=h eller f=h) med link til [[Historisk Atlas]] i Danmark — [[:kategori:Historisk Atlas|Historisk Atlas]]
 
** knappenål (a=m eller f=m)
 
** wikilinks (a=w eller f=w)
 
 
 
Parametrene a eller f skal altid efterfølges af '=', så de øvrige numeriske parametre ikke forskubbes og har følgende betydning:
 
 
* 3 parametre : zoom-faktor, nord/sydlig breddegrad, øst/vestlig længdegrad
 
* 3 parametre : zoom-faktor, nord/sydlig breddegrad, øst/vestlig længdegrad
 
* 4-5 parametre : zoom-faktor, nord/sydlig breddegrad og minut-breddegrad, øst/vestlig længdegrad og evt. minut-længdegrad
 
* 4-5 parametre : zoom-faktor, nord/sydlig breddegrad og minut-breddegrad, øst/vestlig længdegrad og evt. minut-længdegrad
 
* 6-7 parametre : zoom-faktor, nord/sydlig breddegrad, minut- og sekund-breddegrad, øst/vestlig længdegrad, minut- og evt. sekund-længdegrad
 
* 6-7 parametre : zoom-faktor, nord/sydlig breddegrad, minut- og sekund-breddegrad, øst/vestlig længdegrad, minut- og evt. sekund-længdegrad
  
Ved lav præcision tilknyttes automatisk [[:kategori:GPS (upræcis)]]
+
Der tilknyttes altid kategorien [[:kategori:GPS|GPS]] og ved lav præcision desuden [[:kategori:GPS (upræcis)|GPS (upræcis)]].
  
 
== Se også ==
 
== Se også ==

Nuværende version fra 20. jan 2019, 00:56

Noter[redigér]

For søkort over kystområder i Norge, Sverige eller Finland benyttes {{gpsn}}, som indsætter et ⚓ med link til Gule sider. For øvrige havområder benyttes {{gps}}, som (afhængig af evt. fast parameter a) viser forskellige havkort:

Parametrene s eller a skal efterfølges af '=', så de øvrige numeriske parametre ikke forskubbes og har følgende betydning:

  • 0 parametre (1. paramter er tom): intet vises
  • 3 parametre : zoom-faktor, nord/sydlig breddegrad, øst/vestlig længdegrad
  • 4-5 parametre : zoom-faktor, nord/sydlig breddegrad og minut-breddegrad, øst/vestlig længdegrad og evt. minut-længdegrad
  • 6-7 parametre : zoom-faktor, nord/sydlig breddegrad, minut- og sekund-breddegrad, øst/vestlig længdegrad, minut- og evt. sekund-længdegrad

Der tilknyttes altid kategorien GPS og ved lav præcision desuden GPS (upræcis).

Se også[redigér]