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

From blackwiki
Jump to navigation Jump to search
blackwiki>Frietjes
blackwiki>Frietjes
Line 1: Line 1:
{{Documentation subpage}}
+
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->  
<!--
+
{{Module:Location map/data/doc
    PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE
+
|image =
    YOU CAN EDIT THE TEMPLATE DOCUMENTATION BELOW THIS COMMENT
+
|examples=
-->
+
|see also =  
This map templates is to be used in conjunction with {{tl|Location map}} to display a dot on a [[Calgary]] map when location is given. It can also be used as part of {{tl|Infobox settlement}} using the "pushpin_map" parameters.
+
* [[Module:Location map/data/Canada]]
==Parameters==
+
* [[Module:Location map/data/Canada Alberta]]
[[image:Calgary street map.png|right|thumb|220px|Location map Calgary]]
 
{| class="wikitable" width="240"
 
|-
 
| colspan="2" style="text-align:center;background-color:#DDD; color:#000" | '''Coordinates'''
 
|-
 
| Top || 51.17277
 
|-
 
| Bottom || 50.87773
 
|-
 
| Left || -114.28069
 
|-
 
| Right || -113.91183
 
|}
 
 
 
==Usage==
 
*Using degree-minute-second
 
<pre>
 
{{Location map
 
|Canada Calgary
 
|lon_dir    = W   
 
|lat_dir    = N
 
|lat_deg    =
 
|lat_min    =
 
|lat_sec    =
 
|lon_deg    =
 
|lon_min    =
 
|lon_sec    =
 
|caption    =
 
|width      = 220
 
 
}}
 
}}
</pre>
 
 
*Using decimal degrees
 
<pre>
 
{{Location map|Canada Calgary|lat=|long=-|caption=Location of {{subst:PAGENAME}} in [[Calgary]]|width=220}}
 
</pre>
 
 
 
<includeonly>
 
<includeonly>
 
+
<!-- Categories below this line, please; interwikis at Wikidata -->
<!-- PLEASE ADD CATEGORIES BELOW THIS LINE, THANKS. -->
 
 
[[Category:Canada location map templates|Calgary]]
 
[[Category:Canada location map templates|Calgary]]
 
<!-- PLEASE ADD INTERWIKIS BELOW THIS LINE, THANKS. -->
 
 
 
 
</includeonly>
 
</includeonly>

Revision as of 12:59, 12 March 2018


Location map of Calgary
name Calgary
border
coordinates
51.17277
-114.27603 ←↕→ -113.91183
50.87773
map center Lua error: callParserFunction: function "#coordinates" was not found.
image Calgary street map.png
Calgary street map.png


Module:Location map/data/Canada Calgary is a location map definition used to overlay markers and labels on an equirectangular projection map of Calgary. 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 Calgary":

Map definition

  • name = Calgary
    Name used in the default map caption
  • bottom = 50.87773
    Latitude at bottom edge of map, in decimal degrees
  • left = -114.27603
    Longitude at left edge of map, in decimal degrees
  • right = -113.91183
    Longitude at right edge of map, in decimal degrees

Precision

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

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

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

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


See also

Location map templates

Creating new map definitions