Template talk:DescriptionCategories
Czech category does not work
Hello,
could someone please help me with this template and repair it so the cs categories are added again?
It was working before but then it have stopped.
Thank you.
Chrabros (talk) 07:46, 9 June 2015 (UTC)
Hi,
I tried to figure out how the template works and added what (I think) you were missing.
If I got it right, the template now does the following, depending on the <type>, <lang>, <group> and <key> tag values entered in the {ValueDescription} Template on the key/tag description page:
If type=key
- Check if a category named "Category:<Lang> key descriptions for group <group>" already exists, if so, add the page to it
- Else add the page to categories "Category:<Lang> key descriptions" and "Category:Key descriptions for group <group>"
If type=value
- Check if a category named "Category:<Lang> tag descriptions for <key>" already exists, if so, add the page to it
- Else add the page to categories "Category:<Lang> tag descriptions", "Category:<Lang> tag descriptions by value", "Category:Tag descriptions for key <key>" and "Category:Tag descriptions by value".
So, in the end, only the denomination of the Czech categories differ from those in the template
- "Category:Cs:Klíče:<key> for "Category:<Lang> tag descriptions for <key>" (if exists)
- "Category:Cs:Značky podle hodnoty" for "Category:Cs tag descriptions"
I agree that it's not neat to have English words in these descriptions, but I think that could be changed as well. What do you think?
Charel (talk) 22:22, 30 March 2016 (UTC)
Hi, it's me again
I have only just found and read the Wiki_Translation page, and I'm getting that this template does not at all comply with the "Category:<languagecode>:<Adapted title>" convention, which seems to be at least partly the reason why the czech categories are not recognised. So I'm gonna stop messing around with this template (didn't realise it was used on f***in 9000 pages) until I have solution to propose here on the talks page. Cheerio, Charel (talk) 16:05, 5 April 2016 (UTC)
Proposing a template rework
Hello,
as there are some issues with the actual DescriptionCategories template (mainly that
- it is not localisable due to hard-coded category names
- it puts very many localised pages in the main english namespace
- it runs contrary to the Wiki_Translation #Category naming convention),
and its structure does not seem to be widely used (the necessary subcategories have not been created, except those for Category:Tag descriptions, which were created by me only some days ago), I propose a rework of the template, which allows it to support localisation (again, as it seems?) and adds only the necessary categories.
The template proposition is located at User:Charel/Template:DescriptionCategoriesTest.
Please share your thoughts about it and ask questions where I'm not being clear :)Charel (talk) 22:35, 6 April 2016 (UTC)
- This seems a good idea and I am glad you are talking about what you’re doing. I see room for some more cross-language tracking categories to make it easier to search for discrepancies between settings that should be the same, for instance tags on nodes, not on nodes, nodes not specified. --Andrew (talk) 14:14, 17 April 2016 (UTC)
- Oh, well, I have to admit my primary concern was to have +/- clean categories per language (instead of one single overstuffed mainspace category). But I see your point... and I guess nodes aren't the only items such tagging categories could be useful for? But I think this might better be implemented in a different template? I mean, these would be rather "technical" categories that may need lots of different parameters, but no translation. Also, these should then be hidden categories, right?
- Another idea (though I don't know how it works unfortunately) might be to try and get those pages by a query (if possible?) That seems to be a quite powerful toy. Cheers, Charel (talk) 22:44, 18 April 2016 (UTC)
- For example,this http://wiki.openstreetmap.org/w/api.php?action=query&list=imageusage&iutitle=File:Osm%20element%20node.svg&iunamespace=208&iulimit=500
- gets you all dutch pages that use the image Osm element node.svg, which are just the Dutch pages for tags&keys used on nodes. It's not very beautiful, I agree, but it might serve the purposes? Charel (talk) 23:34, 18 April 2016 (UTC)
- You're wrong, the categories are localizable, just like other categories in this wiki. Many examples: look at Japanese for example. — Verdy_p (talk) 03:36, 15 March 2017 (UTC)
- Note: Localization is done in {{DescriptionCategoriesLang}}. Note that it uses conditional categorization, where some categories will be disabled by default. (this was made in order to not require all subcategories to be created in all languages, but also because of the need to prepare the work to unify some remaining inconsistant naming schemes: this requires cleanup and reviwing all existing categories that do not follow the proposed model; all those categories that can be "disabled" are still in alpha stage, requiring cleanup before filling tracking categories for many missing category pages). — Verdy_p (talk) 03:38, 15 March 2017 (UTC)
Category:Obsolete image file naming
@Maro21: A short communication would have been nice, Diff/2594173. For me the advantage was that only File:/file: would have to be handled in the templates and modules and not Image:/image: as well. I'm with you on the traffic issue. So I agree. --Chris2map (talk) 07:41, 10 September 2023 (UTC)