Difference between revisions of "Template:MapSiteLink"

From Geohashing
(Undo revision 831186 by Kripakko (talk))
(Tag: Undo)
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}}} }}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]]
+
<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.
Line 19: Line 19:
 
:: | 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 &ndash; optional
 
::: formatted in a certain way required by the MapSite &ndash; optional
:: | zoom = map zoom level &ndash; 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)
 +
:: | 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
 
:: | label = the label for the link on the wikipage &ndash; optional
 
: }}
 
: }}
 
</noinclude>
 
</noinclude>

Revision as of 21:06, 5 March 2023

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 geographical coordinates (latitude and longitude). If both are specified simultaneously, the ETRS-TM35FIN coordinates take preference.

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
}}