Difference between revisions of "Template:MapSiteLink"

From Geohashing
m
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>[https://asiointi.maanmittauslaitos.fi/karttapaikka/?lang=en&share=customMarker&n={{#if: {{{N|}}} | {{{N}}} | {{#expr: {{Kripakko TM35FIN N | lat = {{{lat}}} | lon = {{{lon}}} }}round1 }} }}&e={{#if: {{{E|}}} | {{{E}}} | {{#expr: {{Kripakko TM35FIN E | lat = {{{lat}}} | lon = {{{lon}}} }}round1 }} }}&title={{{title|}}}&desc=&zoom={{{zoom|10}}} {{{label|}}}]</includeonly><noinclude>Author: [[User:Kripakko|Kripakko]]
+
<includeonly>[https://asiointi.maanmittauslaitos.fi/karttapaikka/?lang={{{lang|en}}}&share=customMarker&n={{#if: {{{N|}}} | {{{N}}} | {{#expr: {{Kripakko TM35FIN N | lat = {{{lat}}} | lon = {{{lon}}} }}round0 }} }}&e={{#if: {{{E|}}} | {{{E}}} | {{#expr: {{Kripakko TM35FIN E | lat = {{{lat}}} | lon = {{{lon}}} }}round0 }} }}&title={{{title|}}}&desc=&zoom={{{zoom|10}}} {{{label|}}}]</includeonly><noinclude>Author: [[User:Kripakko|Kripakko]]
  
 
I made this template to help with including links to the National Land Survey of Finland's topographic map view.
 
I made this template to help with including links to the National Land Survey of Finland's topographic map view.
  
Coordinates need to be converted to ETRS-TM35FIN coordinate system (ETRS-TM35 extended in longitudinal direction to cover all of Finland). I use MapSite to do the conversion from WGS84, or I just pick points on the map or the aerial view.
+
Coordinates can be specified in the ETRS-TM35FIN coordinate system (ETRS-TM35 extended in longitudinal direction to cover all of Finland) or as geographic coordinates (latitude and longitude). If both are specified simultaneously, the ETRS-TM35FIN coordinates are preferred.
  
 
You can use this in Finland if you want to. Outside of Finland it is all but useless, so do not even bother to try.
 
You can use this in Finland if you want to. Outside of Finland it is all but useless, so do not even bother to try.
Line 15: Line 15:
 
:: | N = ETRS-TM35FIN north coordinate
 
:: | N = ETRS-TM35FIN north coordinate
 
:: | E = ETRS-TM35FIN east coordinate
 
:: | E = ETRS-TM35FIN east coordinate
:: | lat = geographical latitude
+
:: | lat = geographical latitude &ndash; ignored if N is specified
:: | lon = geographical longitude
+
:: | lon = geographical longitude &ndash; ignored if E is specified
 
:: | title = the title to be displayed on the marker on the map,
 
:: | title = the title to be displayed on the marker on the map,
::: formatted in a certain way required by the MapSite optional
+
::: formatted in a certain way required by the MapSite &ndash; optional
:: | zoom = map zoom level optional, defaults to 10
+
:: | zoom = map zoom level &ndash; optional, defaults to '''10'''
 
::: (the lowest zoom level where the most detailed map is shown)
 
::: (the lowest zoom level where the most detailed map is shown)
:: | label = the label for the link on the wikipage optional
+
:: | lang = language of the site interface ('''fi''' for Finnish, '''sv''' for Swedish
 +
::: or '''en''' for English) &ndash; optional, defaults to '''en'''
 +
:: | label = the label for the link on the wikipage &ndash; optional
 
: }}
 
: }}
 
</noinclude>
 
</noinclude>

Latest revision as of 20:20, 10 April 2024

Author: Kripakko

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

Coordinates can be specified in the ETRS-TM35FIN coordinate system (ETRS-TM35 extended in longitudinal direction to cover all of Finland) or as geographic coordinates (latitude and longitude). If both are specified simultaneously, the ETRS-TM35FIN coordinates are preferred.

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

Usage:

{{MapSiteLink
| N = ETRS-TM35FIN north coordinate
| E = ETRS-TM35FIN 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 the MapSite – optional
| zoom = map zoom level – optional, defaults to 10
(the lowest zoom level where the most detailed map is shown)
| lang = language of the site interface (fi for Finnish, sv for Swedish
or en for English) – optional, defaults to en
| label = the label for the link on the wikipage – optional
}}