Difference between revisions of "Template:Canada provinces map/doc"
Jump to navigation
Jump to search
imported>117Avenue |
imported>Sawol m |
||
| Line 21: | Line 21: | ||
|map= | |map= | ||
|prefix = | |prefix = | ||
| − | |BC = British Columbia | + | |BC = British Columbia |
| − | |AB = Alberta | + | |AB = Alberta |
| − | |SK = Saskatchewan | + | |SK = Saskatchewan |
| − | |MB = Manitoba | + | |MB = Manitoba |
| − | |ON = Ontario | + | |ON = Ontario |
| − | |QC = Quebec | + | |QC = Quebec |
| − | |NB = New Brunswick | + | |NB = New Brunswick |
| − | |PE = Prince Edward Island | + | |PE = Prince Edward Island |
| − | |NS = Nova Scotia | + | |NS = Nova Scotia |
| − | |NL = Newfoundland and Labrador | + | |NL = Newfoundland and Labrador |
|YT = Yukon | |YT = Yukon | ||
| − | |NT = Northwest Territories | + | |NT = Northwest Territories |
| − | |NU = Nunavut | + | |NU = Nunavut |
|width = 220px | |width = 220px | ||
|border = <!-- none --> | |border = <!-- none --> | ||
| Line 92: | Line 92: | ||
<includeonly> | <includeonly> | ||
<!-- PLEASE ADD CATEGORIES BELOW THIS LINE, THANKS. --> | <!-- PLEASE ADD CATEGORIES BELOW THIS LINE, THANKS. --> | ||
| − | [[Category: | + | [[Category:Canada templates|Provinces map]] |
| − | [[Category:Dynamic map templates | + | [[Category:Dynamic map templates]] |
</includeonly> | </includeonly> | ||
Revision as of 06:48, 3 November 2016
| This is a documentation subpage for Template:Canada provinces map. It contains usage information, categories and other content that is not part of the original template page. |
Usage
Add {{Canada provinces map}} in articles pertaining provinces and territories of Canada.
Simple syntax:
{{Canada provinces map
|align = right
|map=
|prefix =
|width =
}}
A Canada provinces map with linked labels will be rendered.
Complete syntax:
{{Canada provinces map
|align = right
|map=
|prefix =
|BC = British Columbia
|AB = Alberta
|SK = Saskatchewan
|MB = Manitoba
|ON = Ontario
|QC = Quebec
|NB = New Brunswick
|PE = Prince Edward Island
|NS = Nova Scotia
|NL = Newfoundland and Labrador
|YT = Yukon
|NT = Northwest Territories
|NU = Nunavut
|width = 220px
|border = <!-- none -->
|caption =
}}
Parameters
The prefix and XY parameters are used to adjust the wikilinks for the provinces and territories.
| Parameter | Default | Usage |
|---|---|---|
align |
right |
Possible values are left, right, center, and none
|
map |
Canada-provinces layout.png |
Any image can be used, but be careful to make sure the labels are aligned with the provinces and territories |
prefix |
blank | text to use to prefix each link (for example, Geography of)
|
the |
blank | set to any non-blank value to change "Northwest Territories" to "the Northwest Territories" |
BC |
British Columbia |
name of an article (overrides the prefix parameter)
|
AB |
Alberta |
name of an article (overrides the prefix parameter)
|
SK |
Saskatchewan |
name of an article (overrides the prefix parameter)
|
MB |
Manitoba |
name of an article (overrides the prefix parameter)
|
ON |
Ontario |
name of an article (overrides the prefix parameter)
|
QC |
Quebec |
name of an article (overrides the prefix parameter)
|
NB |
New Brunswick |
name of an article (overrides the prefix parameter)
|
PE |
Prince Edward Island |
name of an article (overrides the prefix parameter)
|
NS |
Nova Scotia |
name of an article (overrides the prefix parameter)
|
NL |
Newfoundland and Labrador |
name of an article (overrides the prefix parameter)
|
YT |
Yukon |
name of an article (overrides the prefix parameter)
|
NT |
Northwest Territories |
name of an article (overrides the prefix parameter)
|
NU |
Nunavut |
name of an article (overrides the prefix parameter)
|
width |
280px |
|
border |
blank | set to none to remove the border (which is useful when there is no image, and the map is embedded in a table or sidebar)
|
caption |
blank | use to add a caption to the image |