Difference between revisions of "Template:CanadaByProvinceCatNav/doc"

From blackwiki
Jump to navigation Jump to search
imported>BrownHairedGirl
(If there are no navigable links, the navbox will not be displayed)
imported>BrownHairedGirl
(→‎Examples: add list)
Line 19: Line 19:
 
== Examples ==
 
== Examples ==
 
See the template in use on e.g.
 
See the template in use on e.g.
 +
{{div col|colwidth=21em|gap=2.5em}}
 +
* [[:Category:Prince Edward Island]]
 +
* [[:Category:Referendums in Quebec]]
 +
* [[:Category:Death in Saskatchewan]]
 +
* [[:Category:Landforms of Ontario]]
 +
* [[:Category:Churches in Nunavut]]
 +
* [[:Category:History of Manitoba]]
 +
* [[:Category:Culture of Alberta]]
 +
* [[:Category:Museums in Yukon]]
 +
* [[:Category:Fjords of British Columbia]]
 +
* [[:Category:People murdered in Nova Scotia]]
 +
* [[:Category:Bus transport in New Brunswick]]
 +
* [[:Category:Newfoundland and Labrador-related lists]]
 +
* [[:Category:Writers from the Northwest Territories]]
 +
{{div col end}}
  
[list to follow]
 
 
== Errors ==
 
== 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.
 
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.

Revision as of 11:44, 28 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 provinces and territories.

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, i.e. greyed out.

If there are no navigable links, the navbox will not be displayed.

Usage

{{CanadaByProvinceCatNav}}

No parameters are available.

Examples

See the template in use on e.g.

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]