Jump to content

User:Mathglot/sandbox/Templates/Alberta templates/Cpmrefs2/doc

From Wikipedia, the free encyclopedia

Generates list defined references for Canadian municipality tables.

Usage

[edit]

{{Mathglot/sandbox/Templates/Alberta templates/Cpmrefs2/doc|disp=type}}

Parameters

[edit]

There are two named parameters:

  • |g= – group-name of bracketed notes in the table (optional; default: n)
  • |disp= – conditional row transclusion type

Parameter |disp= may be used to control the emission of the list-defined references containing the content of the references linked from footnotes in the table header, or the table rows. The parameter controls references corresponding to the header row of the table, or the municipality rows in the table body

The value |disp=header emits the reference definitions for the sources required by the header row.

For municipality types, |disp=controls conditional transclusion of sources that apply to a given municipality type. For example, for |disp=cities (or |disp=c) references are only transcluded if they apply to a row corresponding to a municipality of type = 'City'. There are also group values for combinations of municipalities types, such as urban. Possible values for |disp= for municipalities:

  • cities or c – displays references for all 'City' type rows
  • towns or t – displays refs for type 'Town'
  • villages or v – for type 'Village'
  • summer villages or sv – for type 'Summer village'
  • specialized municipalities or sm – for type 'Specialized municipality'
  • municipal districts or md – for type 'Municipal district'
  • improvement districts or id – for type 'Improvement district'
  • special areas or sa – for type 'Special area'
  • Metis settlements or ms – for type'Metis settlement'
  • urban – for types 'City', 'Town', 'Village' and 'Summer village'
  • rural – for types 'Municipal district', 'Improvement districts', and 'Special area'.

Example

[edit]
* Header content.{{R|group=h|2016StatCan|2019MapL|BaseMap|CityPro}}
* City content.{{R|group=n|Beaumont|Calgary|Chestermere|Edmonton|Lloydminster|Wetaskiwin}}
* Town content.{{R|group=n|Athabasca|Blackfalds|Bonnyville|Drumheller|FortMacleod|Morinville|Nanton|PeaceRiver|StPaul<!--max:9-count-->}}{{R|g=n|name=Taber}}
* Village content.{{R|group=n|BitternLake|Delia|HayLakes|Ryley|SpringLake}}
* Summer village content.{{R|group=n|BurnstickLake|Kapasiwin}}

'''References:'''
{{Reflist |group=h|refs=
  {{Draft:cpmrefs2|g=h|disp=header}}
}}
'''Notes:'''
{{Reflist |group=n|refs=
  {{Draft:cpmrefs2|g=n|disp=urban}}
}}

Gives:

Expand for result.

References:

  1. ^ Cite error: The named reference 2016StatCan was invoked but never defined (see the help page).
  2. ^ Cite error: The named reference 2019MapL was invoked but never defined (see the help page).
  3. ^ Cite error: The named reference BaseMap was invoked but never defined (see the help page).
  4. ^ Cite error: The named reference CityPro was invoked but never defined (see the help page).

Notes:

  1. ^ Cite error: The named reference Beaumont was invoked but never defined (see the help page).
  2. ^ Cite error: The named reference Calgary was invoked but never defined (see the help page).
  3. ^ Cite error: The named reference Chestermere was invoked but never defined (see the help page).
  4. ^ Cite error: The named reference Edmonton was invoked but never defined (see the help page).
  5. ^ Cite error: The named reference Lloydminster was invoked but never defined (see the help page).
  6. ^ Cite error: The named reference Wetaskiwin was invoked but never defined (see the help page).
  7. ^ Cite error: The named reference Athabasca was invoked but never defined (see the help page).
  8. ^ Cite error: The named reference Blackfalds was invoked but never defined (see the help page).
  9. ^ Cite error: The named reference Bonnyville was invoked but never defined (see the help page).
  10. ^ Cite error: The named reference Drumheller was invoked but never defined (see the help page).
  11. ^ Cite error: The named reference FortMacleod was invoked but never defined (see the help page).
  12. ^ Cite error: The named reference Morinville was invoked but never defined (see the help page).
  13. ^ Cite error: The named reference Nanton was invoked but never defined (see the help page).
  14. ^ Cite error: The named reference PeaceRiver was invoked but never defined (see the help page).
  15. ^ Cite error: The named reference StPaul was invoked but never defined (see the help page).
  16. ^ Cite error: The named reference Taber was invoked but never defined (see the help page).
  17. ^ Cite error: The named reference BitternLake was invoked but never defined (see the help page).
  18. ^ Cite error: The named reference Delia was invoked but never defined (see the help page).
  19. ^ Cite error: The named reference HayLakes was invoked but never defined (see the help page).
  20. ^ Cite error: The named reference Ryley was invoked but never defined (see the help page).
  21. ^ Cite error: The named reference SpringLake was invoked but never defined (see the help page).
  22. ^ Cite error: The named reference BurnstickLake was invoked but never defined (see the help page).
  23. ^ Cite error: The named reference Kapasiwin was invoked but never defined (see the help page).

See also

[edit]