Difference between revisions of "Template:CanadaByProvinceCatNav/doc"

From blackwiki
Jump to navigation Jump to search
imported>BrownHairedGirl
imported>BrownHairedGirl
Line 28: Line 28:
 
* [[:Category:CanadaByProvinceCatNav with over 5 grey links]] (population: {{PAGESINCATEGORY|CanadaByProvinceCatNav with over 5 grey links}})
 
* [[:Category:CanadaByProvinceCatNav with over 5 grey links]] (population: {{PAGESINCATEGORY|CanadaByProvinceCatNav with over 5 grey links}})
 
* [[:Category:CanadaByProvinceCatNav with 10 or more grey links]] (population: {{PAGESINCATEGORY|CanadaByProvinceCatNav with 10 or more grey links}})
 
* [[:Category:CanadaByProvinceCatNav with 10 or more grey links]] (population: {{PAGESINCATEGORY|CanadaByProvinceCatNav with 10 or more grey links}})
:TOTAL {{formatnum:{{#expr: {{PAGESINCATEGORY|CanadaByProvinceCatNav on invalid category|R}} + {{PAGESINCATEGORY|CanadaByProvinceCatNav with no grey links|R}} + {{PAGESINCATEGORY|CanadaByProvinceCatNav with fewer than 5 grey links|R}} + {{PAGESINCATEGORY|CanadaByProvinceCatNav with over 5 grey links|R}} + {{PAGESINCATEGORY|CanadaByProvinceCatNav with 10 or more grey links|R}} }} }}
+
* [[:Category:CanadaByProvinceCatNav with all grey links]] (population: {{PAGESINCATEGORY|CanadaByProvinceCatNav with all grey links}})
 +
:TOTAL {{formatnum:{{#expr: {{PAGESINCATEGORY|CanadaByProvinceCatNav on invalid category|R}} + {{PAGESINCATEGORY|CanadaByProvinceCatNav with no grey links|R}} + {{PAGESINCATEGORY|CanadaByProvinceCatNav with fewer than 5 grey links|R}} + {{PAGESINCATEGORY|CanadaByProvinceCatNav with over 5 grey links|R}} + {{PAGESINCATEGORY|CanadaByProvinceCatNav with 10 or more grey links|R}} + {{PAGESINCATEGORY|CanadaByProvinceCatNav with all grey links|R}} }} }}
  
 
{{Purge|''Purge this page to update those counts.''}}
 
{{Purge|''Purge this page to update those counts.''}}

Revision as of 14:30, 26 September 2019

A category navigation template, designed to be used on any by-province-or-territory category for any of the 13 current Provinces and territories of Canada.

It creates a navbox with links to identically-named categories for other counties.

So, on Category:History of Quebec, it creates links to Category:History of Alberta, Category:History of British Columbia etc.

Non-existent categories are not linked. Instead, they are listed in grey.

Usage

{{CanadaByProvinceCatNav}}

No parameters are available.

Examples

See the template in use on e.g.

[list to follow]

Errors

If the template is used on a category whose name does not include a valid province or territory of Canada, then an error message is displayed, and no navbox is built.

Tracking categories

TOTAL Expression error: Unrecognized punctuation character "[".

Script error: No such module "Purge".

Development

This template was adapted in Seprember 2019 from {{AllIrelandByCountyCatNav}}, which began as a proposal at WP:WikiProject Ireland/CatNavProposal. The idea was refined through discussion at WT:WikiProject Ireland/CatNavProposal, and deployed in May 2018 after a 15-day trial on 150 pages.

See also

[list to follow]