Difference between revisions of "Template:MinKartaLink"

From Geohashing
(Created page with "<includeonly> [https://minkarta.lantmateriet.se/plats/3006/v1.0/?e={{#if: {{{E|}}} | {{{E}}} | {{#expr: {{Kripakko SWEREF99TM E | lat = {{{lat}}} | lon = {{{lon}}} }}round0 }...")
 
m
Line 1: Line 1:
<includeonly>
+
<includeonly>[https://minkarta.lantmateriet.se/plats/3006/v1.0/?e={{#if: {{{E|}}} | {{{E}}} | {{#expr: {{Kripakko SWEREF99TM E | lat = {{{lat}}} | lon = {{{lon}}} }}round0 }} }}&n={{#if: {{{N|}}} | {{{N}}} | {{#expr: {{Kripakko SWEREF99TM N | lat = {{{lat}}} | lon = {{{lon}}} }}round0 }} }}&z={{{zoom|11}}}&mapprofile=karta&background=1&name={{{title|}}} {{{label|}}}]</includeonly><noinclude>Author: [[User:Kripakko|Kripakko]]
 
 
[https://minkarta.lantmateriet.se/plats/3006/v1.0/?e={{#if: {{{E|}}} | {{{E}}} | {{#expr: {{Kripakko SWEREF99TM E | lat = {{{lat}}} | lon = {{{lon}}} }}round0 }} }}&n={{#if: {{{N|}}} | {{{N}}} | {{#expr: {{Kripakko SWEREF99TM N | lat = {{{lat}}} | lon = {{{lon}}} }}round0 }} }}&z={{{zoom|11}}}&mapprofile=karta&background=1&name={{{title|}}} {{{label|}}}]</includeonly><noinclude>Author: [[User:Kripakko|Kripakko]]
 
  
 
I made this template to help with including links to the Swedish Land Survey's topographic map view.
 
I made this template to help with including links to the Swedish Land Survey's topographic map view.

Revision as of 18:56, 11 August 2023

Author: Kripakko

I made this template to help with including links to the Swedish Land Survey's topographic map view.

Coordinates can be specified in the SWEREF 99 TM coordinate system (ETRS-TM33 extended in longitudinal direction to cover all of Sweden) or as geographical coordinates (latitude and longitude). If both are specified simultaneously, the SWEREF 99 TM coordinates take preference.

You can use this in Sweden if you want to. Outside of Sweden it is all but useless, so do not even bother to try.

Usage:

{{MinKartaLink
| N = SWEREF 99 TM north coordinate
| E = SWEREF 99 TM east coordinate
| lat = geographical latitude – ignored if N is specified
| lon = geographical longitude – ignored if E is specified
| title = the title to be displayed on the marker on the map,
formatted in a certain way required by Min Karta – optional
| zoom = map zoom level – optional, defaults to 11
(the lowest zoom level where the most detailed map is shown)
| label = the label for the link on the wikipage – optional
}}