User:Mathglot/sandbox/Templates/Alberta templates/Municipalities of Alberta/row/doc

Generates a single wikitable row with thirteen cells containing data about one Canadian municipality.

Usage

edit

{{MuniABrow|prov=Alberta|loc=Banff|type=Town|reg=Alberta's Rockies|cdiv=15|rn=Improvement District No. 9|inc=January 1, 1990|csiz=7|mpop=8875|mpy=2017|pop2=7851|pop1=7584|area=4.77|disp=towns}}

{{MuniABrow|Banff|Town|Alberta's Rockies|15|Improvement District No. 9|January 1, 1990|7|8875|2017|7851|7584|4.77|disp=t}}

Parameters

edit

This template has twelve required positional parameters with named aliases, and four optional named parameters (sample values are for Banff):

Positional

edit
  • |1= or |loc= – municipality (e.g., 'Banff')
  • |2= or |type= – municipality type (e.g., 'Town'; others include: 'City', 'Village', 'Summer village')
  • |3= or |reg= – region (e.g. 'Alberta's Rockies')
  • |4= or |cdiv= – census division (e.g., '15')
  • |5= or |rn= – rural neighbouring municipality (e.g., Improvement District No. 9 (Banff))
  • |6= or |inc= – incorporation date (e.g., 'January 1, 1990')
  • |7= or |csiz= – council size (a number; e.g., '7')
  • |8= or |mpop= – latest population from the most recent municipal census, if any (no punct.; e.g., '8875')
  • |9= or |mpy= – year municipal census was conducted, if any (e.g., '2017')
  • |10= or |pop2= – latest population from federal census (no punct.; e.g., '7851')
  • |11= or |pop1= – previous population from federal census (no punct.; e.g., '7584')
  • |12= or |area= – area (in km sq., with decimal point as needed; e.g., '4.77')

If any positional param is used, such as the first one for the municipality name, then all twelve must be used positionally. I.e., you can't use |loc= for municipality, and then switch to positional param '2' for 'type' and the others. Either all positional, or all named for the first twelve. This means for example, that params like mpop and mpy may be left out if they have empty values and the transclusion is via all named parameters, but if positional parameters are used, then all the params must be present, even if they have no value; in this case, there will be no value between adjacent vertical bars (a space may be used if desired). E.g., if a row has no value for optional params mpop and mpy, then positional params 7 – 11 might look like this (sample data is for Alberta Beach): ...|5| | |1018|865|.... If named params are used in that situation, they can just be left out, and "empty" params are not required.

Named

edit

There are six optional named parameters. The first three modify the target article or display string in the column one link (see 'Name' in § Table cells below):

  • |prov= – province (default: 'Alberta')
  • |comm-link= – replaces the target article for the community/municipality
  • |suffix= – appends an unlinked text string to the linked municipality name in column one (see below)

Two parameters are available for adding references to the population figures in columns nine and ten:

  • |pop2-ref= – reference for |10= (or |pop2=; latest population)
  • |pop1-ref= – reference for |11= (or |pop1=; previous population)

The disp parameter determines which municipalities are included in the table: |disp= – controls conditional display of a row depending on its type. For example, for |disp=cities (or |disp=c) the row is only displayed if its type is 'City'. Possible values for |disp=:

  • cities or c – displays a given row, only if it has type 'City'
  • towns or t – if type = 'Town'
  • villages or v – if type = 'Village'
  • summer villages or sv – if type = 'Summer village'
  • specialized municipalities or sm – if type = 'Specialized municipality'
  • municipal districts or md – if type = 'Municipal district'
  • improvement districts or id – if type = 'Improvement district'
  • special areas or sa – if type = 'Special area'
  • Metis settlements or ms – if type = 'Metis settlement'
  • urban – if type is is any of 'City', 'Town', 'Village' or 'Summer village'
  • rural – if |type= is any of 'Municipal district', 'Improvement districts', or 'Special area'.

Any or all of the four optional parameters may be used regardless whether positional or named parameters are used for the first twelve.

Table cells

edit

The template generates a single wikitable row with thirteen columns. The content of the cells in the table row are a function of the parameters, mostly a copy (or a formatted copy) of a parameter, sometimes a function of multiple parameters. The content of the cells, in left-to-right column order are (sample values are from Airdrie, Alberta):

  1. Name – the linked name of the Municipality, plus any unlinked suffix. Made up of the required |loc= (or alias param 1), and the province (from |prov=) linked by default as: MunicipalityName + + ProvinceName and piped to the municipality name; e.g., '[[Airdrie, Alberta|Airdrie]]'). May be modified using |comm-link= and |suffix=.
  2. Status – whether the municipality is a town, city, village, parish, district, and so on. A copy of |type=; e.g., 'City', 'Town', etc.
  3. Region – see Regions of Alberta; from |reg=, and linked to the region article, piped as needed; e.g., [[Calgary Metropolitan Region|Calgary Metro]]. If the term 'Metropolitan Region' is the last part of the name, it is abbreviated to 'Metro'.
  4. CD – Census division – from |cdiv= and linked to the division article, e.g. [[Division No. 6, Alberta|6]]
  5. Neighbouring municipality – from |rn= and linked, e.g. [[Rocky View County]]
  6. Incorporation date – from |inc= (e.g. 'January 1, 1985')
  7. Council size – from |csiz= (e.g. '7')
  8. Municipal census pop. and year – from |mpop= and |mpy=, e.g., '70,564 (2019)'; empty for municipalities that do not have a local census.
  9. Population (year) – the recent population figure (default year: 2016); formatted copy of param |pop2= with optional reference from |pop2-ref=.
  10. Population (year) – older population figure (default year: 2011); formatted copy of param |pop1= with optional reference from |pop1-ref=.
  11. Change – change in population; a positive value indicates rising population; calculated from |pop2= and |pop1=.
  12. Land area km2 – Area of the municipality in square kilometers; copied from |area=.
  13. Population density km2 – Population density in square kilometers; calculated from |pop2= and |area= parameters.

Example

edit
{{Municipalities of Alberta/header|caption=Sample list of village, city, summer village, and town in AB}}
{{Municipalities of Alberta/header|caption=Sample of village, city, summer village, and town in AB}}
{{Municipalities of Alberta/row|Acme|Village|Southern Alberta|5|Kneehill County|July 7, 1910|5|||653|653|2.48|t=v|disp=urban}}
{{Municipalities of Alberta/row|Airdrie|City|Calgary Metropolitan Region|6|Rocky View County|January 1, 1985|7|70564|2019|61581|43271|84.57|t=c|r=Airdrie|disp=urban}}
{{Municipalities of Alberta/row|Argentia Beach|Summer village|Central Alberta|11|Wetaskiwin No. 10, County of|January 1, 1967|3|||27|15|0.73|t=sv|disp=u}}
{{Municipalities of Alberta/row|Athabasca|Town|Northern Alberta|13|Athabasca County|September 19, 1911|7|||2965|2990|17.65|t=t|disp=u}}
{{Municipalities of Alberta/footerb|disp=u}}
Tabular result for this example
Sample list of village, city, summer village, and town in AB
Name
[1]
Status
[1]
Region
CD
[2]
Rural
neighbour
[3]
Incorporated
(current
status)
[4]
Cllrs
[4]
Muni.
census
pop.
(year)
[5]
2016 Census of Population[2]
Pop.
(2016)
Pop.
(2011)
Change
(%)
Land
area
(km2)
Pop.
density
(per km2)

Acme Village Southern 5 Kneehill County July 7, 1910 5   653 653 0.0% 2.48 263.3
Airdrie[a] City Calgary Metro 6 Rocky View County January 1, 1985 7 70,564
(2019)
61,581 43,271 +42.3% 84.57 728.2
Argentia Beach Summer village Central 11 Wetaskiwin No. 10, County of January 1, 1967 3   27 15 +80.0% 0.73 37.0
Athabasca Town Northern 13 Athabasca County September 19, 1911 7   2,965 2,990 −0.8% 17.65 168.0
Total cities 2,837,511 2,488,211 +14.0% 2,465.94 1,150.7
Total towns 453,775 420,051 +8.0% 1,246.10 364.2
Total villages 35,878 35,268 +1.7% 152.54 235.2
Total summer villages 5,176 4,586 +12.9% 40.79 126.9
Total urban municipalities 3,332,340 2,948,566 +13.0% 3,905.37 853.3
Province of Alberta 4,067,175 3,645,257 +11.6% 640,330.46 6.4

See also

edit

Notes

edit
  1. ^ Cite error: The named reference Airdrie was invoked but never defined (see the help page).

References

  1. ^ a b "2024 Municipal Codes" (PDF). Alberta Municipal Affairs. June 3, 2024. Retrieved June 14, 2024.
  2. ^ a b "Population and dwelling counts, for Canada, provinces and territories, census divisions and census subdivisions (municipalities), 2016 and 2011 censuses – 100% data (Alberta)". Statistics Canada. February 7, 2018. Retrieved January 20, 2022.
  3. ^ 2021 Provincial Base Map: Municipalities (PDF) (Map). Alberta Environment and Parks. July 26, 2021. Retrieved January 20, 2022.
  4. ^ a b "Municipal Profiles Summary Reports: Cities" (PDF). Alberta Municipal Affairs. January 14, 2022. Retrieved January 20, 2022.
  5. ^ "2019 Municipal Affairs Population List" (PDF). Alberta Municipal Affairs. December 2019. ISBN 978-1-4601-4623-1. Retrieved January 20, 2022.