Template:Location map CanadaGeo/doc
From Wikipedia, the free encyclopedia
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:
- Template:Location_map_polarx - puts symbols/labels on an image with converging polar longitudes & arcing latitudes.
- Template:Location_map_many_polarx - puts up to 5 symbols/labels on an image, using polar longitudes/latitudes.
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.
[edit] Examples
- Simple sintax
{{Location map polarx|CanadaGeo|lat= |long=- |caption={{subst:PAGENAME}} in [[Canada]]}}
- Multiple labels
{{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> }}
{{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) }}
[edit] 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).
[edit] See also
- Template:Superimpose - to label an image without a border box
- Template:Location_map_USA - for mapping the "lower 48" states