Difference between revisions of "Template:Location/CA"

From Geohashing
imported>Fippe
(New Template)
 
Line 3: Line 3:
 
Using [[wikipedia:ISO 3166-2:CA|ISO 3166-2]] abbreviations, you may also tag the province/territory that the expedition took place in. Those abbreviations correspond to the abbreviations used by Canada Post and [[wikipedia:Canadian Internet Registration Authority|CIRA]], with the exception of <code>YK</code> being used for Yukon by CIRA and <code>YT</code> being used by others. Both <code>YK</code> and <code>YT</code> can be used with this template.
 
Using [[wikipedia:ISO 3166-2:CA|ISO 3166-2]] abbreviations, you may also tag the province/territory that the expedition took place in. Those abbreviations correspond to the abbreviations used by Canada Post and [[wikipedia:Canadian Internet Registration Authority|CIRA]], with the exception of <code>YK</code> being used for Yukon by CIRA and <code>YT</code> being used by others. Both <code>YK</code> and <code>YT</code> can be used with this template.
  
If the category link appears red, do not worry and create the category. Make sure that it is included in the appropriate parent category, for instance, [[:Category:Expeditions in Yukon]] is a subcategory of [[:Category:Expeditions in Canada]]. The subcategories should be sorted in by their respective code.
+
You can also tag a more local subdivision inside of all provinces and territories except for Yukon and Manitoba, because for them OpenStreetMap does not have data yet. The type of subdivision varies, it may be called a Regional District, a County or something else. Some of them have [http://www.statoids.com/yca.html HASC codes], use them in that case. For other subdivisions without HASC codes, this template establishes codes of its own.
 +
 
 +
If the category link appears red, do not worry and create the category. Make sure that it is included in the appropriate parent category, for instance, [[:Category:Expeditions in the Metro Vancouver Regional District]] is a subcategory of [[:Category:Expeditions in British Columbia]] which is a subcategory of [[:Category:Expeditions in Canada]]. The subcategories should be sorted in by their respective code.
  
 
==Examples==
 
==Examples==
 
*<code><nowiki>{{location|CA}}</nowiki></code>: {{location/CA}}
 
*<code><nowiki>{{location|CA}}</nowiki></code>: {{location/CA}}
 
*<code><nowiki>{{location|CA|ON}}</nowiki></code>: {{location/CA|ON}}
 
*<code><nowiki>{{location|CA|ON}}</nowiki></code>: {{location/CA|ON}}
 +
*<code><nowiki>{{location|CA|ON|TO}}</nowiki></code>: {{location/CA|ON|TO}}
 
*<code><nowiki>{{location|CA|QC}}</nowiki></code>: {{location/CA|QC}}
 
*<code><nowiki>{{location|CA|QC}}</nowiki></code>: {{location/CA|QC}}
 +
*<code><nowiki>{{location|CA|QC|06}}</nowiki></code>: {{location/CA|QC|06}}
 +
*<code><nowiki>{{location|CA|BC}}</nowiki></code>: {{location/CA|BC}}
 +
*<code><nowiki>{{location|CA|BC|MV}}</nowiki></code>: {{location/CA|BC|MV}}
 
*<code><nowiki>{{location|CA|YT}}</nowiki></code>: {{location/CA|YT}}
 
*<code><nowiki>{{location|CA|YT}}</nowiki></code>: {{location/CA|YT}}
 
*<code><nowiki>{{location|CA|YK}}</nowiki></code>: {{location/CA|YK}}
 
*<code><nowiki>{{location|CA|YK}}</nowiki></code>: {{location/CA|YK}}
Line 14: Line 20:
 
[[Category:Location templates|CA]]</noinclude><includeonly>{{#switch:{{{1}}}
 
[[Category:Location templates|CA]]</noinclude><includeonly>{{#switch:{{{1}}}
 
|#default=Canada
 
|#default=Canada
|AB=Alberta
+
|AB={{#switch:{{{2}}}
|BC=British Columbia
+
    |#default=Alberta
 +
    |AC=the Municipal District of Acadia
 +
    |AN=Lac Ste. Anne County
 +
    |AT=Athabasca County
 +
    |BA=the County of Barrhead
 +
    |BE=Beaver County, Alberta
 +
    |BI=Lac La Biche County
 +
    |BL=Big Lakes County
 +
    |BN=the Municipal District of Bighorn
 +
    |BO=the Municipal District of Bonnyville
 +
    |BR=Brazeau County
 +
    |BS=Birch Hills County
 +
    |CA=Calgary
 +
    |CH=Clear Hills County
 +
    |CL=Clearwater County, Alberta
 +
    |CM=Camrose County
 +
    |CN=Cardston County
 +
    |CR=Crowsnest Pass, Alberta
 +
    |CY=Cypress County
 +
    |DR=Drumheller
 +
    |ED=Edmonton
 +
    |EI=Elk Island National Park
 +
    |FH=Foothills County
 +
    |FM=the County of Forty Mile
 +
    |FS=Flagstaff County
 +
    |FV=the Municipal District of Fairview
 +
    |GP=the County of Grande Prairie
 +
    |GV=the Municipal District of Greenview
 +
    |ID9=Improvement District No. 9
 +
    |ID12=Improvement District No. 12
 +
    |ID24=Improvement District No. 24
 +
    |ID349=Improvement District No. 349
 +
    |JA=Jasper, Alberta
 +
    |KA=the Kananaskis Improvement District
 +
    |KN=Kneehill County
 +
    |LB=Lethbridge County
 +
    |LC=Lacombe County
 +
    |LD=Leduc County
 +
    |LM=Lamont County
 +
    |LS=the Municipal District of Lesser Slave River
 +
    |MA=Mackenzie County
 +
    |MI=the County of Minburn
 +
    |MV=Mountain View County
 +
    |NE=the County of Newell
 +
    |NL=the County of Northern Lights
 +
    |NS=Northern Sunrise County
 +
    |OP=the Municipal District of Opportunity
 +
    |PC=the Municipal District of Pincher Creek
 +
    |PE=the Municipal District of Peace
 +
    |PL=Parkland County
 +
    |PO=Ponoka County
 +
    |PR=the Municipal District of Provost
 +
    |PT=the County of Paintearth
 +
    |RA=the Municipal District of Ranchland
 +
    |RD=Red Deer County
 +
    |RV=Rocky View County
 +
    |SA2=Special Area No. 2
 +
    |SA3=Special Area No. 3
 +
    |SA4=Special Area No. 4
 +
    |SA=Strathcona County
 +
    |SD=Starland County
 +
    |SE=the County of Stettler
 +
    |SH=Saddle Hills County
 +
    |SL=Smoky Lake County
 +
    |SM=the Municipal District of Smoky River
 +
    |SP=the County of St. Paul
 +
    |SR=the Municipal District of Spirit River
 +
    |SU=Sturgeon County
 +
    |TA=the Municipal District of Taber
 +
    |TD=Thorhild County
 +
    |TH=the County of Two Hills
 +
    |VE=the County of Vermilion River
 +
    |VU=Vulcan County
 +
    |WB=the Regional Municipality of Wood Buffalo
 +
    |WC=the Municipal District of Willow Creek
 +
    |WE=the County of Wetaskiwin
 +
    |WH=Wheatland County, Alberta
 +
    |WK=Westlock County
 +
    |WL=Waterton Lakes National Park
 +
    |WO=Woodlands County
 +
    |WR=the County of Warner
 +
    |WT=the Municipal District of Wainwright
 +
    |WW=Willmore Wilderness Park
 +
    |YH=Yellowhead County
 +
}}
 +
|BC={{#switch:{{{2}}}
 +
    |#default=British Columbia
 +
    |AC=the Alberni-Clayoquot Regional District
 +
    |BN=the Regional District of Bulkley-Nechako
 +
    |CC=the Central Coast Regional District
 +
    |CK=the Regional District of Central Kootenay
 +
    |CM=the Comox Valley Regional District
 +
    |CO=the Regional District of Central Okanagan
 +
    |CP=the Capital Regional District
 +
    |CR=the Cariboo Regional District
 +
    |CS=the Columbia-Shuswap Regional District
 +
    |CV=the Cowichan Valley Regional District
 +
    |EK=the Regional District of East Kootenay
 +
    |FF=the Regional District of Fraser-Fort George
 +
    |FV=the Fraser Valley Regional District
 +
    |KB=the Regional District of Kootenay Boundary
 +
    |KS=the Regional District of Kitimat-Stikine
 +
    |MV=the Metro Vancouver Regional District
 +
    |MW=the Regional District of Mount Waddington
 +
    |NA=the Regional District of Nanaimo
 +
    |NC=the North Coast Regional District
 +
    |NO=the Regional District of North Okanagan
 +
    |NR=the Northern Rockies Regional Municipality
 +
    |OS=the Regional District of Okanagan-Similkameen
 +
    |PC=the Peace River Regional District
 +
    |QA=the qathet Regional District
 +
    |SC=the Sunshine Coast Regional District
 +
    |SL=the Squamish-Lillooet Regional District
 +
    |SR=the Strathcona Regional District
 +
    |ST=the Stikine Region
 +
    |TN=the Thompson-Nicola Regional District
 +
}}
 
|MB=Manitoba
 
|MB=Manitoba
|NB=New Brunswick
+
|NB={{#switch:{{{2}}}
|NL=Newfoundland and Labrador
+
    |#default=New Brunswick
|NS=Nova Scotia
+
    |AL=Albert County, New Brunswick
|NT=the Northwest Territories
+
    |CA=Carleton County, New Brunswick
|NU=Nunavut
+
    |CH=Charlotte County, New Brunswick
|ON=Ontario
+
    |GL=Gloucester County, New Brunswick
|PE=Prince Edward Island
+
    |KE=Kent County, New Brunswick
|QC=Québec
+
    |KI=Kings County, New Brunswick
|SK=Saskatchewan
+
    |MA=Madawaska County, New Brunswick
 +
    |NO=Northumberland County, New Brunswick
 +
    |QU=Queens County, New Brunswick
 +
    |RE=Restigouche County, New Brunswick
 +
    |SJ=Saint John County, New Brunswick
 +
    |SU=Sunbury County, New Brunswick
 +
    |VI=Victoria County, New Brunswick
 +
    |WE=Westmorland County, New Brunswick
 +
    |YO=York County, New Brunswick
 +
}}
 +
|NL={{#switch:{{{2}}}
 +
    |#default=Newfoundland and Labrador
 +
    |L=Labrador
 +
    |N=Newfoundland
 +
}}
 +
|NS={{#switch:{{{2}}}
 +
    |#default=Nova Scotia
 +
    |AG=Antigonish County, Nova Scotia
 +
    |AP=Annapolis County, Nova Scotia
 +
    |CB=Cape Breton County, Nova Scotia
 +
    |CO=Colchester County, Nova Scotia
 +
    |CU=Cumberland County, Nova Scotia
 +
    |DI=Digby County, Nova Scotia
 +
    |GU=Guysborough County, Nova Scotia
 +
    |HL=Halifax County, Nova Scotia
 +
    |HN=Hants County, Nova Scotia
 +
    |IN=Inverness County, Nova Scotia
 +
    |KI=Kings County, Nova Scotia
 +
    |LU=Lunenburg County, Nova Scotia
 +
    |PI=Pictou County, Nova Scotia
 +
    |QU=Queens County, Nova Scotia
 +
    |RI=Richmond County, Nova Scotia
 +
    |SH=Shelburne County, Nova Scotia
 +
    |VI=Victoria County, Nova Scotia
 +
    |YA=Yarmouth County, Nova Scotia
 +
}}
 +
|NT={{#switch:{{{2}}}
 +
    |#default=the Northwest Territories
 +
    |BE=the Behchokǫ̀ Region
 +
    |DE=the Dehcho Region
 +
    |IN=the Inuvik Region
 +
    |NS=the North Slave Region
 +
    |SA=the Sahtu Region
 +
    |SS=the South Slave Region
 +
}}
 +
|NU={{#switch:{{{2}}}
 +
    |#default=Nunavut
 +
    |KT=the Kitikmeot Region
 +
    |KV=the Kivalliq Region
 +
    |QK=the Qikiqtaaluk Region
 +
}}
 +
|ON={{#switch:{{{2}}}
 +
    |#default=Ontario
 +
    |AL=Algoma District
 +
    |BC=Bruce County
 +
    |BN=County of Brant
 +
    |CK=Chatham-Kent
 +
    |CO=Cochrane District
 +
    |DF=Dufferin County
 +
    |DR=the Regional Municipality of Durham
 +
    |EL=Elgin County
 +
    |ES=Essex County, Ontario
 +
    |FR=Frontenac County
 +
    |GR=Grey County
 +
    |HB=Haliburton County
 +
    |HD=Haldimand County
 +
    |HM=Hamilton, Ontario
 +
    |HS=Hastings County
 +
    |HT=the Regional Municipality of Halton
 +
    |HU=Huron County, Ontario
 +
    |KL=Kawartha Lakes
 +
    |KR=Kenora District
 +
    |LA=Lennox and Addington County
 +
    |LG=Leeds and Grenville
 +
    |LM=Lambton County
 +
    |LN=Lanark County
 +
    |MA=Manitoulin District
 +
    |MI=Middlesex County, Ontario
 +
    |MU=the District Municipality of Muskoka
 +
    |NF=Norfolk County, Ontario
 +
    |NG=the Regional Municipality of Niagara
 +
    |NP=Nipissing District
 +
    |NU=Northumberland County, Ontario
 +
    |OT=Ottawa
 +
    |OX=Oxford County, Ontario
 +
    |PB=Peterborough County
 +
    |PE=Prince Edward County, Ontario
 +
    |PL=the Regional Municipality of Peel
 +
    |PR=Prescott and Russell
 +
    |PS=Parry Sound District
 +
    |PT=Perth County, Ontario
 +
    |RE=Renfrew County
 +
    |RR=Rainy River District
 +
    |SC=Simcoe County
 +
    |SD=Stormont, Dundas and Glengarry
 +
    |SU=Sudbury District
 +
    |TB=Thunder Bay District
 +
    |TI=Timiskaming District
 +
    |TO=Toronto
 +
    |WL=Wellington County, Ontario
 +
    |WT=the Regional Municipality of Waterloo
 +
    |YO=the Regional Municipality of York
 +
}}
 +
|PE={{#switch:{{{2}}}
 +
    |#default=Prince Edward Island
 +
    |KI=Kings County, Prince Edward Island
 +
    |PR=Prince County, Prince Edward Island
 +
    |QU=Queens County, Prince Edward Island
 +
}}
 +
|QC={{#switch:{{{2}}}
 +
    |#default=Québec
 +
    |01=Bas-Saint-Laurent
 +
    |02=Saguenay–Lac-Saint-Jean
 +
    |03=Capitale-Nationale
 +
    |04=Mauricie
 +
    |05=Estrie
 +
    |06=Région de Montréal
 +
    |07=Outaouais
 +
    |08=Abitibi-Témiscamingue
 +
    |09=Côte-Nord
 +
    |10=Nord-du-Québec
 +
    |11=Gaspésie–Îles-de-la-Madeleine
 +
    |12=Chaudière-Appalaches
 +
    |13=Laval, Quebec
 +
    |14=Lanaudière
 +
    |15=Laurentides
 +
    |16=Montérégie
 +
    |17=Centre-du-Québec
 +
}}
 +
|SK={{#switch:{{{2}}}
 +
    |#default=Saskatchewan
 +
    |1=the Estevan Census Division
 +
    |2=the Weyburn Census Division
 +
    |3=the Assiniboia Census Division
 +
    |4=the Maple Creek Census Division
 +
    |5=the Melville Census Division
 +
    |6=the Regina Census Division
 +
    |7=the Moose Jaw Census Division
 +
    |8=the Swift Current Census Division
 +
    |9=the Yorkton Census Division
 +
    |10=the Wynyard Census Division
 +
    |11=the Saskatoon Census Division
 +
    |12=the Battleford Census Division
 +
    |13=the Kindersley Census Division
 +
    |14=the Melfort Census Division
 +
    |15=the Prince Albert Census Division
 +
    |16=the North Battleford Census Division
 +
    |17=the Lloydminster Census Division
 +
    |18=the Northern Saskatchewan Administration District
 +
}}
 
|YT|YK=Yukon
 
|YT|YK=Yukon
 
}}</includeonly>
 
}}</includeonly>

Revision as of 22:14, 9 August 2020

Use {{location|CA}} to tag expeditions that took place in Canada. It will add Category:Expeditions in Canada to the expedition.

Using ISO 3166-2 abbreviations, you may also tag the province/territory that the expedition took place in. Those abbreviations correspond to the abbreviations used by Canada Post and CIRA, with the exception of YK being used for Yukon by CIRA and YT being used by others. Both YK and YT can be used with this template.

You can also tag a more local subdivision inside of all provinces and territories except for Yukon and Manitoba, because for them OpenStreetMap does not have data yet. The type of subdivision varies, it may be called a Regional District, a County or something else. Some of them have HASC codes, use them in that case. For other subdivisions without HASC codes, this template establishes codes of its own.

If the category link appears red, do not worry and create the category. Make sure that it is included in the appropriate parent category, for instance, Category:Expeditions in the Metro Vancouver Regional District is a subcategory of Category:Expeditions in British Columbia which is a subcategory of Category:Expeditions in Canada. The subcategories should be sorted in by their respective code.

Examples

  • {{location|CA}}: Canada
  • {{location|CA|ON}}: Ontario
  • {{location|CA|ON|TO}}: Toronto
  • {{location|CA|QC}}: Québec
  • {{location|CA|QC|06}}: Région de Montréal
  • {{location|CA|BC}}: British Columbia
  • {{location|CA|BC|MV}}: the Metro Vancouver Regional District
  • {{location|CA|YT}}: Yukon
  • {{location|CA|YK}}: Yukon