Difference between revisions of "Template:MapSiteLink"

From Geohashing
m
 
(22 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!-- I made this to help with including links to the National Land Survey of Finland's topographic map view.
+
<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]]
    Usage:
+
 
    {{MapSiteLink
+
I made this template to help with including links to the National Land Survey of Finland's topographic map view.
        | N = ETRS-TM35FIN north coordinate
+
 
        | E = ETRS-TM35FIN east coordinate
+
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.
        | title = the title to be displayed on the marker on the map – optional
+
 
        | zoom = map zoom level – optional, defaults to 10
+
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.
        | label = the label for the link on the wikipage – optional
+
 
     }}
+
<!-- My cheat sheet:
 +
    %26 Ampersand in links
 +
     %E2%80%93 En dash in links
 
-->
 
-->
[https://asiointi.maanmittauslaitos.fi/karttapaikka/?lang=en&share=customMarker&n={{{N}}}&e={{{E}}}&title={{{title}}}&desc=&zoom={{{zoom|10}}} {{{label}}}]
+
Usage:
 +
: {{MapSiteLink
 +
:: | N = ETRS-TM35FIN north coordinate
 +
:: | E = ETRS-TM35FIN east coordinate
 +
:: | lat = geographical latitude &ndash; ignored if N is specified
 +
:: | lon = geographical longitude &ndash; 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 &ndash; optional
 +
:: | zoom = map zoom level &ndash; 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) &ndash; optional, defaults to '''en'''
 +
:: | label = the label for the link on the wikipage &ndash; optional
 +
: }}
 +
</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
}}