Changes

Pywikibot 6.4.0
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
{{Module:Location map/data/doc
|image=
|examples=
Some common label background colors are: <small>#</small>CCCC55 for <span style="color:#CCCC55">'''dim yellow'''</span>,
::* <small>#</small>44EE44 for <span style="color:#44EE44">'''lime green'''</span>, <small>#</small>BBBBBB for <span style="color:#BBBBBB">'''gray'''</span>,
::* <small>#</small>44CCDD for <span style="color:#44CCDD">'''light aqua'''</span>, <small>#</small>DDDDDD for <span style="color:#DDDDDD">'''light gray'''</span> (almost white),
::* PaleGreen for <span style="color:PaleGreen">'''pale green'''</span>, <span style="color:PaleTurquoise">'''PaleTurquoise'''</span>, <span style="color:DarkOrange">'''DarkOrange'''</span>, 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": <small>DO&amp;nbsp;NOT&amp;nbsp;WRAP</small>.

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 "&lt;noinclude>".

See each specific mapping template for other parameters to pass.

=== Simple example ===
<!-- -------------------------------------- Show Ottawa -->
{{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
}}
<!--don't use "<code>" which will hide underscores in text-->
<pre>{{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
}}
</pre>
{{clear}}
=== Location map many ===
<!-- ---------Show 6: Vancou./Whitehorse/Alert/Chrhl/Winpg/Halfx-->
{{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-->
}}
<!--don't use "<code>" which will hide underscores in text-->
<pre>{{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-->
}}
</pre>
{{clear}}

<!-- --------------------------------- Quebec / Yellowknife -->
{{Location map
| CanadaTerrain
| width=320 <!--omit "px"-->
|label=Quebec&nbsp;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
}}
<!--don't use "<code>" which will hide underscores in text-->
<pre>{{Location map
| CanadaTerrain
| width=320 <!--omit "px"-->
|label=Quebec&nbsp;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
}}
</pre>
{{clear}}

| see also =
* [[Module:Location map/data/Canada]]
}}
<includeonly>
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Maps of Canada]]
[[Category:Canada location map templates|Canada Terrain]]
</includeonly>