قالب:Location map CanadaGeo

Location map of CanadaGeo
name CanadaGeo
border
coordinates
91.1
-125.1 ←↕→ -55.1
41.3
map center 66°12′N 90°06′W / 66.2°N 90.1°W / 66.2; -90.1
image Canada_geopolitical_map_trim.jpg
Location map CanadaGeo
skew 0.00005
lat_skew 1.275
Template documentation[view] [edit] [history] [purge]

This map definition, Template:Location_map_CanadaGeo, is intended for overlaying markers/labels on similar maps of Canada, using coordinates of 40.6-92.5 for latitude and 55.1-125.1 W for longitude.
Some of the related mapping procedures are:

Map for Canada geopolitical areas
Map parameters
top 91.1 latitude at top of map
bottom 41.3 latitude at bottom of map
left -125.1 longitude at map left edge
right -55.1 longitude at map right edge
skew 0.00005 skew to narrow longitudes
lat_skew 1.275 skew to arc latitudes at edges


All mapping templates use similar parameters (see Examples):

  • CanadaGeo - the first parameter is always the map name
  • AlternativeMap - name of image (omit "Image:")
  • caption=text - caption text along bottom of image
  • width=250 - for image width (omit "px")
  • label - movable label (can be padded " XX YY ")
  • label_size - percent from 0-200 (default: 95)
  • background - color of label (such as: darkorange or #4499DD)
  • position=right - (or left, top, bottom) position of label at marker
  • lat = 26.25 - for latitude 40.6-92.5 (higher towards top)
  • long= -75.3 - for longitude 55.1-125.1 W (higher towards right)
  • mark     - name of image for marker symbol (omit "Image:")
  • marksize - size of image for marker symbol (default: 8px, 1px=none)
  • lon_shift=-1 - longitude shift of center meridian on map
  • float=right (or left, center) - position of map formatted on page

Some common label background colors are: #CCCC55 for dim yellow,

  • #44EE44 for lime green, #BBBBBB for gray,
  • #44CCDD for light aqua, #DDDDDD for light gray (almost white),
  • PaleGreen for pale green, PaleTurquoise, DarkOrange, etc.
  • By default, the label is transparent overwriting the image.

For small lettering use label_size=80, for tiny words use 55. Note that the words in the label will wrap unless using "nbsp": DO NOT WRAP.

When specifying image "width=270" be sure to OMIT "px" (which causes the image to span the width of the screen) because "px" cannot (yet) be detected by the (new) MediaWiki language which processes those mapping templates.

See each specific mapping template for other parameters to pass.

Examples

Simple syntax
Churchill (CanadaGeo)
Churchill
Churchill
{{Location map polarx|CanadaGeo|lat= |long=- |caption={{subst:PAGENAME}} في [[كندا]]}}


Multiple labels
Vancouver (CanadaGeo)
Vancouver
Vancouver
Quebec City
Quebec City
Edmonton
Edmonton
Winnipeg
Winnipeg
Vancouver, Quebec, Edmonton & Winnipeg
{{Location map polarx
| CanadaGeo
| caption = Vancouver, Quebec,
      Edmonton & Winnipeg
| lon_shift = 4.1
| bottom = 41.3 | top = 91.1
| label=Vancouver
  | label-size=70
  | background = <!--aqua-->#44CCDD
  | position=top<! left/right/bottom >
  | lat = 49.25  <!--40.6 to 92.5 -->
  | long= -123.1 <!--55.1 to 125.1W-->
  | mark=Green_pog.svg
  | marksize=10 <! default 8, 1=none >
| label2=Quebec City | label2_size=70
  | bg2 = DarkOrange
  | pos2= bottom <!or right/left/top >
  | lat2= 46.80 | long2 = -71.38
  | mark2=Blue_pog.svg
  | mark2size=10<! marker size (8) >
| label3=Alert | label3_size=70
  | bg3 = PaleGreen | lat3_skew=1.3
  | pos3=right | skew3 = 0.0005
  | lat3= 82.46 | long3= -62.50
  | mark3=Blue_pog.svg
  | mark3size=8
| label3=Edmonton
  | lat3 = 53.57 | long3 = -113.42
| label4=Winnipeg | label4_size=70
  | bg4 = SkyBlue | lat4_skew=1.3
  | pos4 =left  | skew4 = 0.0005
  | lat4 = 49.88 | long4 = -97.13
  | mark4=Blue_pog.svg
  | mark4size=6
| label5=Churchill,_MB
  | lat5 = 58.76 | long5 = -94.12
  | bg5 = #77EE77 | lat5_skew=1.3
  | pos5 = top   | skew5 = 0.0005
  | mark5=Blue_pog.svg | mark5size=6
| width=430 <!--map width-->
| float=right <!--left/center--></nowiki>
}}
Quebec City (CanadaGeo)
Quebec City
Quebec City
Yellowknife -->
Yellowknife
Churchill,_MB -->
Churchill,_MB
Alert -->
Alert
ArcticCircle -->
ArcticCircle
Winnipeg -->
Winnipeg
Quebec east, Yellowknife in northwest, Churchill (center), Alert (top)
{{Location map polarx
| CanadaGeo
| width=320 <!--omit "px"-->
| lon_shift = 4.1
| bottom= 41.3 | top= 91.1
| label=Quebec City
  | label_size=70 |pos=right
  | bg = DarkOrange
  | lat_skew=1.3
  | lat=46.48 | long= -71.38
  | mark=Blue_pog.svg
  | marksize=10
  | markhigh=10
| label2=Yellowknife
  | label2_size=70
  | bg2=#DDDD44 | pos2=left
  | lat2_skew=1.3
  | lat2=62.45|long2=-114.40
  | mark2=Blue_pog.svg
  | mark2size=10<!default:8>
| label3=Churchill,_MB
  | label3_size=70
  | bg3=#77EE77
  | lat3_skew=1.3
  | pos3=right |skew3=0.00005
  | lat3=58.76 |long3= -94.12
  | mark3=Blue_pog.svg
  | mark3size=8
| label4=Alert
  | bg4=PaleGreen | pos4=right  | label4_size=70
  | skew4=0.00005 | lat4_skew=1.3
  | lat4=82.46 | long4= -62.50
  | mark4=Blue_pog.svg | mark4size=8
| label5=ArcticCircle
  | bg5=#99CCFF   | pos5=top  | label5_size=70
  | skew5=0.00005 | lat5_skew=1.3
  | lat5= 66.5 | long5= -90
  | mark5=Blue_pog.svg | mark5size=8
| float=right <!--left/center-->
| caption = Quebec east, Yellowknife in northwest,
            Churchill (center), Alert (top)
}}

Other options

It is possible to place markers/labels outside a map, by specifying latitude outside 38.4-95.5 or longitude coordinates beyond 55.1-125.1 W:

  • Over longitude= -55.1 might push a label off-map to the right;
  • Under longitude= -125.1 can push a label off-map to the left;
  • Over latitude= 95.5 will push a label off-map to the top.

For templates that restrict coordinates, expand the minutes field: lat_deg=89.0 but lat_min=120 yielding a combined 91 degrees (60 minutes = 1 degree).

See also