Template talk:Canada by province category navigation

Is there an equivalent CatNav template for U.S. States and European countries?

edit

I am looking for something like Template:Europe topic, Template:European topic or Template:Topic (Europe), but as compact as Template:CanadaByProvinceCatNav so it is suitable for category use. Iketsi (talk) 03:21, 12 February 2020 (UTC)Reply

When "provincial" or "territorial" are in the category title

edit

This template doesn't work correctly when the category name contains the word "provincial" or "territorial". In this case the provincial ones link to each other and so do the territorial ones, but there is no linking between the provinces and the territories (because of the difference in title). Examples:

Can the template code be modified to work correctly in these cases? Set theorist (talk) 18:45, 16 May 2022 (UTC)Reply

Calling @BrownHairedGirl, you wrote the original code; do you know how to fix this problem? I know how to write templates, but modules confuse me. —Arctic Gnome (talkcontribs) 15:23, 9 June 2023 (UTC)Reply
Thanks for the ping, @Arctic.gnome.
@Set theorist I am reviewing this, and making some tests. I hope to give a substantive reply within 24 hours. BrownHairedGirl (talk) • (contribs) 19:24, 9 June 2023 (UTC)Reply
I have a few technical issues to resolve, which may take a few days. But in the meantime, I did some scoping.
This Petscan search for Ontario categories gives some pointers to the number of such sets. It returns 32 hits, some of which may be false positives (i.e. not part of a set), but if all of them are valid full sets, that would mean that 460 categories are involved. In reality I expect the total to be about half that, 'cos some won't be sets, and not all the sets will be full sets (see e.g. how a similar search for Yukon gives only 7 hits). BrownHairedGirl (talk) • (contribs) 02:11, 10 June 2023 (UTC)Reply
Update. @Set theorist & @Arctic.gnome as a first step, I have enabled support for {{Category redirect}}s (with kind help from @Pppery).
For a test case, I created Category:Yukon provincial electoral districts as a redirect to Category:Yukon territorial electoral districts. As a result, the navbox on Category:Ontario provincial electoral districts now links to Yukon.
My initial thought had been that support for {{Category redirect}}s would be sufficient, I reckoned that this was probably an edge case could be resolved with a few dozen redirects. But my scoping tests (see above) indicate this this would need a few hundred redirects, which would be ugly and laborious. So sometime in the next few days, I will try to find time to implement direct support of the territorial/provincial variation. BrownHairedGirl (talk) • (contribs) 11:54, 12 June 2023 (UTC)Reply

Template-protected edit request on 21 August 2024

edit

On or about line 429, please change "Candian" to "Canadian" to correct the existing typo. WP:TYPO ShoneBrooks (talk) 17:26, 21 August 2024 (UTC) ShoneBrooks (talk) 17:26, 21 August 2024 (UTC)Reply

  Completed. P.I. Ellsworth , ed. put'er there 19:40, 21 August 2024 (UTC)Reply