Template talk:Year in country category

Malfunction
On Category:1687 in Siam, it seems to be categorising it to. Any idea why? &#8213; Qwerfjkl  talk  17:28, 27 November 2021 (UTC)
 * Pinging most recent contributor @BrownHairedGirl. &#8213; Qwerfjkl  talk  17:29, 27 November 2021 (UTC)
 * @Qwerfjkl: because it was missing a parameter. Now fixed.
 * A quick peek at a similar category such as Category:1687 in Siam would have shown the difference.  Brown HairedGirl  (talk) • (contribs) 17:34, 27 November 2021 (UTC)
 * @BrownHairedGirl Could an error/maintenance category be shown, instead of categorising incorrectly? &#8213; Qwerfjkl  talk  17:37, 27 November 2021 (UTC)
 * @Qwerfjkl: Possibly. But I have in mind a major rewrite of the template, which  won't be able to get around to for another few months, and until then I don't want to dive into the old code.
 * Meanwhile, editors can try RTFMing, at Template:Year in country category.   Brown HairedGirl  (talk) • (contribs) 18:22, 27 November 2021 (UTC)
 * I found no documentation for newname parameters, and added some, with an example (Category:1771 in Thailand) where these are now in use. – Fayenatic  L ondon 09:09, 25 January 2022 (UTC)

Some ideas for future improvements
Some ideas for future improvements:


 * 1) Use Wikidata to get the manually entered values:
 * 2) Use, which also has multiple values for countries that span continents (see ).
 * 3) Use, which also has multiple values with start and end dates if wanted (see ).
 * 4) Use regex to extract the country name from the category title, just like the year is extracted.

These changes would basically mean that the template could be use as Year in country category without any parameters. Gonnym (talk) 12:43, 18 April 2022 (UTC)