Template talk:Year in country category
Appearance
(Redirected from Template talk:Year in country category/inner core)
This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||||||||||||||||||||||||
|
Malfunction
[edit]On Category:1687 in Siam, it seems to be categorising it to Category:1687 in. Any idea why? ― Qwerfjkltalk 17:28, 27 November 2021 (UTC)
- Pinging most recent contributor @BrownHairedGirl. ― Qwerfjkltalk 17:29, 27 November 2021 (UTC)
- @Qwerfjkl: because it was missing a parameter. Now fixed.[1]
- A quick peek at a similar category such as Category:1687 in Siam would have shown the difference. BrownHairedGirl (talk) • (contribs) 17:34, 27 November 2021 (UTC)
- @BrownHairedGirl Could an error/maintenance category be shown, instead of categorising incorrectly? ― Qwerfjkltalk 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#Parameters. BrownHairedGirl (talk) • (contribs) 18:22, 27 November 2021 (UTC)
- @BrownHairedGirl Could an error/maintenance category be shown, instead of categorising incorrectly? ― Qwerfjkltalk 17:37, 27 November 2021 (UTC)
- @BrownHairedGirl: I found no documentation for newname parameters, and added some, with an example (Category:1771 in Thailand) where these are now in use. – Fayenatic London 09:09, 25 January 2022 (UTC)
Some ideas for future improvements
[edit]Some ideas for future improvements:
- Use Wikidata to get the manually entered values:
- Use continent (P30), which also has multiple values for countries that span continents (see Turkey (Q43)).
- Use country (P17), which also has multiple values with start and end dates if wanted (see Wales (Q25)).
- 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)