قالب:Location map CanadaGeo/doc
من ويكيبيديا، الموسوعة encyclopedia
This map definition, Template:Location_map_CanadaGeo, is intended for overlaying markers/labels on similar maps of كندا, using coordinates of 40.6-92.5 for عرض جغرافي and 55.1-125.1 W for طول جغرافي.
Some of the related mapping procedures are:
- قالب:خريطة مواقع - puts symbols/labels on an image with converging polar longitudes & arcing latitudes.
- قالب:Location map many - puts up to 5 symbols/labels on an image, using polar longitudes/latitudes.
![](http://upload.wikimedia.org/wikipedia/commons/thumb/3/36/Canada_geopolitical_map_trim.jpg/640px-Canada_geopolitical_map_trim.jpg)
Map parameters | ||
x | 43.337724969237172 - 2.056739941370653*({{{2}}} - 90.076056288799123)*sin(0.014911471311070*({{{3}}} - ({{{3}}} > 0)*360 + 94.820677904662404)) | formula for x coordinate |
y | 0.309016119058895 - 2.056739941370653*({{{2}}} - 90.076056288799123)*cos(0.014911471311070*({{{3}}} - ({{{3}}} > 0)*360 + 94.820677904662404)) | formula for y coordinate |
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)
- 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.