User:Mathglot/sandbox/Templates/Alberta templates/Cpmrefs2/doc
This is a documentation subpage for User:Mathglot/sandbox/Templates/Alberta templates/Cpmrefs2. It may contain usage information, categories and other content that is not part of the original user template page. |
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
orc
– displays references for all 'City' type rowstowns
ort
– displays refs for type 'Town'villages
orv
– for type 'Village'summer villages
orsv
– for type 'Summer village'specialized municipalities
orsm
– for type 'Specialized municipality'municipal districts
ormd
– for type 'Municipal district'improvement districts
orid
– for type 'Improvement district'special areas
orsa
– for type 'Special area'Metis settlements
orms
– 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:
Notes:
|