Difference between revisions of "Template:Canada provinces map"
Jump to navigation
Jump to search
imported>Frietjes |
imported>Frietjes |
||
| Line 16: | Line 16: | ||
<div style="position: absolute; font-size: 88%; left: 86.8%; top: 75%; padding: 0;">'''{{#if:{{{NS|}}}|[[{{{NS}}}|NS]]|[[{{{prefix|}}} Nova Scotia|NS]]}}'''</div> | <div style="position: absolute; font-size: 88%; left: 86.8%; top: 75%; padding: 0;">'''{{#if:{{{NS|}}}|[[{{{NS}}}|NS]]|[[{{{prefix|}}} Nova Scotia|NS]]}}'''</div> | ||
<div style="position: absolute; font-size: 88%; left: 89.3%; top: 61.9%; padding: 0;">'''{{#if:{{{NL|}}}|[[{{{NL}}}|NL]]|[[{{{prefix|}}} Newfoundland and Labrador|NL]]}}'''</div> | <div style="position: absolute; font-size: 88%; left: 89.3%; top: 61.9%; padding: 0;">'''{{#if:{{{NL|}}}|[[{{{NL}}}|NL]]|[[{{{prefix|}}} Newfoundland and Labrador|NL]]}}'''</div> | ||
| − | <div style="position: absolute; font-size: 88%; left: 9%; top: 34.9%; padding: 0;">'''{{#if:{{{YT|{{{YU|}}}}}}|[[{{{YT| | + | <div style="position: absolute; font-size: 88%; left: 9%; top: 34.9%; padding: 0;">'''{{#if:{{{YT|{{{YU|}}}}}}|[[{{{YT|{{{YU}}}}}}|YT]]|[[{{{prefix|}}} Yukon|YT]]}}'''</div> |
<div style="position: absolute; font-size: 88%; left: 21.4%; top: 39.2%; padding: 0;">'''{{#if:{{{NT|}}}|[[{{{NT}}}|NT]]|[[{{{prefix|}}} {{#if:{{{the|}}}|the}} Northwest Territories|NT]]}}'''</div> | <div style="position: absolute; font-size: 88%; left: 21.4%; top: 39.2%; padding: 0;">'''{{#if:{{{NT|}}}|[[{{{NT}}}|NT]]|[[{{{prefix|}}} {{#if:{{{the|}}}|the}} Northwest Territories|NT]]}}'''</div> | ||
<div style="position: absolute; font-size: 88%; left: 39.3%; top: 40.5%; padding: 0;">'''{{#if:{{{NU|}}}|[[{{{NU}}}|NU]]|[[{{{prefix|}}} Nunavut|NU]]}}'''</div> | <div style="position: absolute; font-size: 88%; left: 39.3%; top: 40.5%; padding: 0;">'''{{#if:{{{NU|}}}|[[{{{NU}}}|NU]]|[[{{{prefix|}}} Nunavut|NU]]}}'''</div> | ||
Revision as of 14:59, 16 April 2014
<div class="thumbinner" style="width:Expression error: Unexpected < operator.px"><div style="position: relative; width:Script error: No such module "If empty".;">
[[File:Script error: No such module "If empty".|Script error: No such module "If empty".|link=|Canadian Provinces and Territories]]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
|
|SK = Saskatchewan
|MB = Manitoba
|
|
|NB = New Brunswick
|PE = Prince Edward Island
|NS = Nova Scotia
|NL = Newfoundland and Labrador
|
|
|
|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)
|
BC |
British Columbia |
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)
|
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)
|
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 |
See also
| The above documentation is transcluded from Template:Canada provinces map/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |