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

Generates list defined references for Canadian municipality tables.

Parameters
There are two named parameters:


 * g – group-name of bracketed notes in the table (optional; default: )
 * 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 header emits the reference definitions for the sources required by the header row.

For municipality types, dispcontrols conditional transclusion of sources that apply to a given municipality. For example, for cities (or c) references are only transcluded if they apply to a row corresponding to a municipality of  = 'City'. There are also group values for combinations of municipalities types, such as. Possible values for disp for municipalities:
 * or – displays references for all 'City' type rows
 * or – displays refs for type 'Town'
 * or – for type 'Village'
 * or – for type 'Summer village'
 * or – for type 'Specialized municipality'
 * or – for type 'Municipal district'
 * or – for type 'Improvement district'
 * or – for type 'Special area'
 * or – for type'Metis settlement'
 * – for types 'City', 'Town', 'Village' and 'Summer village'
 * – for types 'Municipal district', 'Improvement districts', and 'Special area'.

Example

 * Header content.
 * City content.
 * Town content.
 * Village content.
 * Summer village content.

References:

Notes:

Gives:


 * Header content.
 * City content.
 * Town content.
 * Village content.
 * Summer village content.

References:

Notes: