Difference between revisions of "Module:Location map/data/Canada Ontario/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Qui1che
m (→‎Location map image: Added text to support relief map image)
m (25 revisions imported)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
+
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->  
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. -->
+
{{Module:Location map/data/doc
This map templates is to be used in conjunction with {{tl|Location map}} to display a dot on an [[Ontario]] map when location is given. It can also be used as part of {{tl|Infobox Settlement}} using the "pushpin_map" parameters.
+
|image =
 
+
|examples=
==Parameters==
+
|see also =  
[[Image:Canada Ontario location map 2.svg|right|thumb|220px|Location map Ontario]]
+
* [[Module:Location map/data/Canada]]
[[Image:Canada Ontario relief location map.jpg|right|thumb|220px|Alternative relief map]]
 
[[Image:Canada Ontario location map.svg|right|thumb|220px|Another alternative map]]
 
{| class="wikitable" width="240"
 
|-
 
| align="center" colspan="2" style="background-color:#DDD; color:#000" | '''Coordinates'''
 
|-
 
| Top || 57.1
 
|-
 
| Bottom || 41.3
 
|-
 
| Left || -95.5
 
|-
 
| Right || -74.0
 
|}
 
 
 
==Usage==
 
See {{tl|Location map}} for full syntax (e.g. button size, text, caption)
 
 
 
*Using degree-minute-second
 
<pre>
 
{{Location map
 
|Canada Ontario
 
|lon_dir    = W   
 
|lat_dir    = N
 
|lat_deg    =
 
|lat_min    =
 
|lat_sec    =
 
|lon_deg    =
 
|lon_min    =
 
|lon_sec    =
 
|label      =
 
|position  =
 
|caption    =
 
|width      = 180
 
 
}}
 
}}
</pre>
+
<includeonly>
 
+
<!-- Categories below this line, please; interwikis at Wikidata -->
*Using decimal degrees
 
<pre>
 
{{Location map|Canada Ontario|lat=|long=-|caption=Location of {{subst:PAGENAME}} in [[Ontario]]}}
 
</pre>
 
 
 
==Location map image==
 
By default this template uses the image file [[commons:File:Canada Ontario location map 2.svg|Canada Ontario location map 2.svg]] as the background image. An alternative relief map is [[commons:File:Canada Ontario relief location map.jpg|Canada Ontario relief location map.jpg]].
 
 
 
<includeonly><!--
 
++++ PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, INSIDE INCLUDEONLY TAGS, THANK YOU. -->
 
 
[[Category:Canada location map templates|Ontario]]
 
[[Category:Canada location map templates|Ontario]]
  
 
</includeonly>
 
</includeonly>

Latest revision as of 06:33, 27 September 2020


Location map of Ontario
name Ontario
border
coordinates
57.1
-95.5 ←↕→ -74
41.3
map center Lua error: callParserFunction: function "#coordinates" was not found.
image Canada Ontario location map 2.svg
400x400px
image1 Canada Ontario relief location map.jpg
400x400px
image2 Canada Ontario location map.svg
400x400px


Module:Location map/data/Canada Ontario is a location map definition used to overlay markers and labels on an equirectangular projection map of Ontario. The markers are placed by latitude and longitude coordinates on the default map or a similar map image.

Usage

These definitions are used by the following templates when invoked with parameter "Canada Ontario":

Map definition

  • name = Ontario
    Name used in the default map caption
  • bottom = 41.3
    Latitude at bottom edge of map, in decimal degrees
  • left = -95.5
    Longitude at left edge of map, in decimal degrees
  • right = -74
    Longitude at right edge of map, in decimal degrees

Alternative map

The {{Location map}}, {{Location map many}}, and {{Location map+}} templates have parameters to specify an alternative map image. The map displayed as image1 can be used with the relief or AlternativeMap parameters. The map displayed as image2 can be used with the AlternativeMap parameter. Examples may be found below or in the following:

Precision

Longitude: from West to East this map definition covers 21.5 degrees.

  • At an image width of 200 pixels, that is 0.1075 degrees per pixel.
  • At an image width of 1000 pixels, that is 0.0215 degrees per pixel.

Latitude: from North to South this map definition covers 15.8 degrees.

  • At an image height of 200 pixels, that is 0.079 degrees per pixel.
  • At an image height of 1000 pixels, that is 0.0158 degrees per pixel.


See also

Location map templates

Creating new map definitions