Template:Location map CanadaTerrain/doc
From Wikipedia, the free encyclopedia
This map definition, Template:Location_map_CanadaTerrain, is intended for overlaying markers/labels on similar terrain maps of Canada, as polar projections, using coordinates of 38.4-85.5 for latitude and 56.4-124.0 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 7 symbols/labels on an image, using polar longitudes/latitudes.
Map parameters | ||
top | 86.1 | latitude at top of map |
bottom | 38.4 | latitude at bottom of map |
left | -124.5 | longitude at map left edge |
right | -56.4 | longitude at map right edge |
skew | 0.090 | skew to narrow longitudes |
lat_skew | 1.274 | skew to arc latitudes at edges |
All mapping templates use similar parameters (see Examples):
-
CanadaTerrain - 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 38.4-85.5 (higher towards top)
long= -75.3 - for longitude 56.4-124.0 W (higher towards right)
mark - name of image for marker symbol (omit "Image:")
marksize - size of image for marker symbol (default: 8px, 1px=none)
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.
- WARNING: Having too much text in Template:Location_map_CanadaTerrain can kill mapping templates that use it, even inside "<noinclude>".
See each specific mapping template for other parameters to pass.
[edit] Examples
{{Location map polarx | CanadaTerrain | caption = Ottawa in Canada | width=270 <! omit "px" > | label=Ottawa | label-size=90 | background = #DDDD44 | position=right <!left/top/bottom> | lat = 45.42 <!range 38.4-85.5 > | long= -75.67 <!range -56.0-124.0> | mark=X_sheer_red_17.gif | marksize=17 <! default:8, 0=none> | float=right <! left/center > }}
{{Location map many polarx |CanadaTerrain |top =86.1 |bottom=38.4 |lon_shift=-.3 |label= Vancouver |bg=#44CCDD |pos =top |lat = 49.25 |long=-123.1 |marksize= 5 | label2=Alert |lat2 =82.46 |long2=-62.5 |bg2 =Orange |pos2=bottom |mark2size=5 | label3= Whitehorse |lat3 =60.72 |long3=-135. |pos3= top |mark3size=5 | label4= Winnipeg |bg4=SkyBlue |pos4=left |lat4 =49.88 |long4=-97.1 |mark4size=5 | label5=Halifax | lat5 = 44.67 | long5 = -63.61 | bg5 = #77EE77 | pos5 = top <!-- or bottom/left/right--> | label6=Churchill,_MB | lat6 = 58.76 | long6 = -94.12 | bg6 = #CCCC55 | lat6_skew=1.274 | pos6 = right | skew6=0.090 | mark6=X_sheer_red_17.gif | mark6size=17 | label7=Quebec City | lat7=46.80 | long7= -71.38 | lat7_skew=1.274 | caption = Vancouver, Whitehorse, Alert, Churchill, Winnipeg, Quebec & Halifax | mark =Green_pog.svg | label_size=75 | mark2=Green_pog.svg | label2_size=75 | mark3=Green_pog.svg | label3_size=78 | bg3=PaleGreen | mark4=Blue_pog.svg | label4_size=70 | mark5=Blue_pog.svg | mark5size=5 <! default=8 > | mark6=Blue_pog.svg | mark6size=5 |label6_size=75 | mark7=Blue_pog.svg | mark7size=5 | width=430 <!--map width--> | float=right <!--left/center--> }}
{{Location map polarx | CanadaTerrain | width=320 <!--omit "px"--> |label=Quebec City | skew=.09 | lat_skew=1.274 | label_size=75 | background=DarkOrange | position=right | lat=46.48 | long= -71.38 | mark=Green_pog.svg | marksize=10<!--width--> | markhigh=10 |label2=Yellowknife | skew2=.09 | lat2_skew=1.274 | label2_size=75 | bg2 = #DDDD44 | pos2=top | lat2= 62.45 | long2= -114.40 | mark2=Blue_pog.svg | mark2size=5 | float=right | caption = Quebec east, Yellowknife in northwest }}
[edit] Other options
It is possible to place markers/labels outside a map, by specifying latitude outside 38.4-85.5 or longitude coordinates beyond 56.0-124.0 W:
-
-
- Over longitude= -56.0 might push a label off-map to the right;
- Under longitude= -124.0 can push a label off-map to the left;
- Over latitude= 85.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