Difference between revisions of "Template:Canada provinces map"
Jump to navigation
Jump to search
(←Replaced content with 'The map above can be used in many ways; -To locate places and cardinal points -To use as a template for personal use. You could use the map for other purposes...') |
imported>Boccobrock m (Reverted edits by 64.228.36.146 to last version by PrimeHunter (HG)) |
||
| Line 1: | Line 1: | ||
| − | + | <div style="position: relative; width:{{#ifeq:{{{width|}}}||280px|{{{width}}}}}; float:right; border:none;"> | |
| − | - | + | <div style="position: relative;"> |
| − | - | + | <div style="position: absolute; font-size:smaller; left: 10.7%; top: 65.4%; padding: 0;">'''{{#ifeq:{{{BC|}}}||[[British Columbia|BC]]|[[{{{BC}}}|BC]]}}'''</div> |
| − | + | <div style="position: absolute; font-size:smaller; left: 21.4%; top: 58.9%; padding: 0;">'''{{#ifeq:{{{AB|}}}||[[Alberta|AB]]|[[{{{AB}}}|AB]]}}'''</div> | |
| − | + | <div style="position: absolute; font-size:smaller; left: 30.4%; top: 69.8%; padding: 0;">'''{{#ifeq:{{{SK|}}}||[[Saskatchewan|SK]]|[[{{{SK}}}|SK]]}}'''</div> | |
| + | <div style="position: absolute; font-size:smaller; left: 38.6%; top: 61%; padding: 0;">'''{{#ifeq:{{{MB|}}}||[[Manitoba|MB]]|[[{{{MB}}}|MB]]}}'''</div> | ||
| + | <div style="position: absolute; font-size:smaller; left: 50%; top: 71.9%; padding: 0;">'''{{#ifeq:{{{ON|}}}||[[Ontario|ON]]|[[{{{ON}}}|ON]]}}'''</div> | ||
| + | <div style="position: absolute; font-size:smaller; left: 66.1%; top: 61%; padding: 0;">'''{{#ifeq:{{{QC|}}}||[[Quebec|QC]]|[[{{{QC}}}|QC]]}}'''</div> | ||
| + | <div style="position: absolute; font-size:smaller; left: 78.6%; top: 75%; padding: 0;">'''{{#ifeq:{{{NB|}}}||[[New Brunswick|NB]]|[[{{{NB}}}|NB]]}}'''</div> | ||
| + | <div style="position: absolute; font-size:smaller; left: 83.9%; top: 69.8%; padding: 0;">'''{{#ifeq:{{{PE|}}}||[[Prince Edward Island|PE]]|[[{{{PE}}}|PE]]}}'''</div> | ||
| + | <div style="position: absolute; font-size:smaller; left: 86.8%; top: 75%; padding: 0;">'''{{#ifeq:{{{NS|}}}||[[Nova Scotia|NS]]|[[{{{NS}}}|NS]]}}'''</div> | ||
| + | <div style="position: absolute; font-size:smaller; left: 89.3%; top: 61.9%; padding: 0;">'''{{#ifeq:{{{NL|}}}||[[Newfoundland and Labrador|NL]]|[[{{{NL}}}|NL]]}}'''</div> | ||
| + | <div style="position: absolute; font-size:smaller; left: 9%; top: 34.9%; padding: 0;">'''{{#ifeq:{{{YT|}}}||{{#ifeq:{{{YU|}}}||[[Yukon|YT]]|[[{{{YU}}}|YT]]}}|[[{{{YT}}}|YT]]}}'''</div> | ||
| + | <div style="position: absolute; font-size:smaller; left: 21.4%; top: 39.2%; padding: 0;">'''{{#ifeq:{{{NT|}}}||[[Northwest Territories|NT]]|[[{{{NT}}}|NT]]}}'''</div> | ||
| + | <div style="position: absolute; font-size:smaller; left: 39.3%; top: 40.5%; padding: 0;">'''{{#ifeq:{{{NU|}}}||[[Nunavut|NU]]|[[{{{NU}}}|NU]]}}'''</div> | ||
| + | [[Image:{{#ifeq:{{{Map|}}}||Canada-provinces layout.png|{{{Map}}}}}|{{#ifeq:{{{width|}}}||280px|{{{width}}}}}|Canadian Provinces and Territories]]</div> | ||
| + | </div><noinclude> | ||
| + | <!-- | ||
| + | PLEASE DO NOT ADD DOCUMENTATION/CATEGORIES/INTERWIKIS HERE | ||
| + | --> | ||
| + | {{Template doc}} | ||
| + | <!-- | ||
| + | MAKE ADDITIONS TO THE /doc SUBPAGE INSTEAD, THANKS | ||
| + | --> | ||
| + | </noinclude> | ||
Revision as of 21:53, 30 September 2008
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. |
