Module:Location map/data/CanadaTerrain
name | Canada | ||
---|---|---|---|
x | 51.3688770752693 - 2.08993734501698*($1 - 89.1948328371273)*sin(0.0146738856952723*($2 - ($2 > 0)*360 + 88.6496582505060)) | ||
y | -6.11618556585059 - 2.08993734501698*($1 - 89.1948328371273)*cos(0.0146738856952723*($2 - ($2 > 0)*360 + 88.6496582505060)) | ||
image | Canada topo.jpg
| ||
Module:Location map/data/CanadaTerrain is a location map definition used to overlay markers and labels on an equirectangular projection map of Canada. 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 "CanadaTerrain":
{{Location map|CanadaTerrain |...}}
{{Location map many|CanadaTerrain |...}}
{{Location map+|CanadaTerrain |...}}
{{Location map~|CanadaTerrain |...}}
Map definition
name = Canada
- Name used in the default map caption
image = Canada topo.jpg
- The default map image, without "Image:" or "File:"
x = 51.3688770752693 - 2.08993734501698*($1 - 89.1948328371273)*sin(0.0146738856952723*($2 - ($2 > 0)*360 + 88.6496582505060))
- An expression to calculate a location on the map via its longitude; evaluates as 0 along the left edge and 100 along the right edge
y = -6.11618556585059 - 2.08993734501698*($1 - 89.1948328371273)*cos(0.0146738856952723*($2 - ($2 > 0)*360 + 88.6496582505060))
- An expression to calculate a location on the map via its latitude; evaluates as 0 along the top edge and 100 along the bottom edge
Examples using location map templates
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.
Simple example
{{Location map | CanadaTerrain | caption = Ottawa in Canada | width=270 | label=Ottawa | label-size=90 | background = #DDDD44 | position=right | lat = 45.42 | long= -75.67 | mark=X_sheer_red_17.gif | marksize=17 | float=right }}
Location map many
{{Location map many |CanadaTerrain |top =86.1 |bottom=38.4 |lon_shift=-.3 |label= Vancouver |bg=#44CCDD |pos =top |lat = 49.25 |long=-123.1 |mark=Green_pog.svg |label_size=75 |marksize= 5 | label2=Alert |lat2 =82.50 |long2=-62.34 |bg2 =Orange |pos2=bottom |mark2=Green_pog.svg |label2_size=75 |mark2size=5 | label3= Whitehorse |lat3 =60.72 |long3=-135.05 |pos3= top |mark3=Green_pog.svg |label3_size=78 |bg3=PaleGreen |mark3size=5 | label4= Winnipeg |bg4=SkyBlue |pos4=left |lat4 =49.90 |long4=-97.14 |mark4=Blue_pog.svg |label4_size=70 |mark4size=5 | label5=Halifax | lat5 = 44.85 | long5 = -63.20 | bg5 = #77EE77 | pos5 = top | mark5=Blue_pog.svg | mark5size=5 | label6=Churchill,_MB | lat6 = 58.76 | long6 = -94.17 | bg6 = #CCCC55 | pos6 = right | mark6=Blue_pog.svg | mark6size=5 |label6_size=75 | label7=Quebec City | lat7=46.82 | long7= -71.38 | mark7=Blue_pog.svg | mark7size=5 | caption = Vancouver, Whitehorse, Alert, Churchill, Winnipeg, Quebec & Halifax | width=430 <!--map width--> | float=right <!--left/center--> }}
{{Location map | CanadaTerrain | width=320 <!--omit "px"--> |label=Quebec City | label_size=75 | background=DarkOrange | position=right | lat=46.48 | long= -71.38 | mark=Green_pog.svg | marksize=10 |label2=Yellowknife | 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 }}
See also
- Location map templates
- Template:Location map, to display one mark and label using latitude and longitude
- Template:Location map many, to display up to nine marks and labels
- Template:Location map+, to display an unlimited number of marks and labels
- Infobox templates incorporating (passing values to) the Location map template
- Template:Infobox aerial lift line
- Template:Infobox airport — alternative map support: relief (via pushpin_relief) and AlternativeMap (via pushpin_image)
- Template:Infobox ancient site — alternative map support: relief
- Template:Infobox artwork
- Template:Infobox Australian road
- Template:Infobox body of water
- Template:Infobox bridge
- Template:Infobox building — alternative map support: relief
- Template:Infobox business park
- Template:Infobox casino
- Template:Infobox castrum — alternative map support: relief (via map_relief)
- Template:Infobox cave — alternative map support: relief
- Template:Infobox cemetery
- Template:Infobox civil conflict
- Template:Infobox climbing area
- Template:Infobox climbing route — alternative map support: relief
- Template:Infobox church — alternative map support: relief
- Template:Infobox concentration camp
- Template:Infobox convention center
- Template:Infobox cycling championship
- Template:Infobox dam — alternative map support: relief
- Template:Infobox desalination plant
- Template:Infobox earthquakes in date
- Template:Infobox Egyptian tomb
- Template:Infobox factory
- Template:Infobox fault
- Template:Infobox forest — alternative map support: relief
- Template:Infobox glacier — alternative map support: relief (displays relief image unless map_relief=0)
- Template:Infobox golf facility — alternative map support: relief
- Template:Infobox Hindu temple
- Template:Infobox historic site — alternative map support: relief (via map_relief)
- Template:Infobox Holocaust event
- Template:Infobox hospital — alternative map support: relief
- Template:Infobox hut — alternative map support: relief
- Template:Infobox islands — alternative map support: relief
- Template:Infobox landform
- Template:Infobox lighthouse — alternative map support: relief
- Template:Infobox military conflict — alternative map support: relief (via map_relief)
- Template:Infobox military installation — alternative map support: relief (via map_relief)
- Template:Infobox military operation
- Template:Infobox mill building
- Template:Infobox mine
- Template:Infobox mining
- Template:Infobox monastery
- Template:Infobox monument
- Template:Infobox motorway services
- Template:Infobox mountain — alternative map support: relief (displays relief image unless map_relief=0)
- Template:Infobox mountain pass — alternative map support: relief (displays relief image unless map_relief=0)
- Template:Infobox museum — alternative map support: relief (via map_relief)
- Template:Infobox New York City Subway station
- Template:Infobox New Zealand suburb
- Template:Infobox observatory
- Template:Infobox oil field — alternative map support: relief
- Template:Infobox oil refinery — alternative map support: relief
- Template:Infobox park — alternative map support: relief
- Template:Infobox port
- Template:Infobox power station — alternative map support: relief
- Template:Infobox prison
- Template:Infobox protected area — alternative map support: relief
- Template:Infobox pyramid
- Template:Infobox reactor
- Template:Infobox religious building — alternative map support: relief
- Template:Infobox residential college
- Template:Infobox restaurant
- Template:Infobox river
- Template:Infobox Russian inhabited locality
- Template:Infobox school
- Template:Infobox Scottish island
- Template:Infobox sedimentary basin
- Template:Infobox settlement — alternative map support: relief (via pushpin_relief) and AlternativeMap (via pushpin_image)
- Template:Infobox ski area
- Template:Infobox Spanish missions in the Americas
- Template:Infobox sports rivalry
- Template:Infobox spring — alternative map support: relief
- Template:Infobox station
- Template:Infobox street
- Template:Infobox superfund
- Template:Infobox terrestrial impact site
- Template:Infobox transmitter
- Template:Infobox tunnel
- Template:Infobox valley — alternative map support: relief
- Template:Infobox waterfall — alternative map support: relief
- Template:Infobox waterlock
- Template:Infobox UNESCO World Heritage Site — alternative map support: relief
- Template:Infobox university
- Template:Infobox urban feature
- Template:Infobox venue
- Template:Infobox wildfire
- Template:Infobox WorldScouting
return {
name = 'Canada',
image = 'Canada topo.jpg',
x = '51.3688770752693 - 2.08993734501698*($1 - 89.1948328371273)*sin(0.0146738856952723*($2 - ($2 > 0)*360 + 88.6496582505060))',
y = '-6.11618556585059 - 2.08993734501698*($1 - 89.1948328371273)*cos(0.0146738856952723*($2 - ($2 > 0)*360 + 88.6496582505060))'
}