Hi! I succeed to reduce this special list on wp:fr to 1 559 templates. Not only by removing obsolete templates but using it in the documentation. The problem is that it is normal that some listed templates are unused (sandbox, testcases, substituted templates, preload…). I created a category on wp:fr including all exceptions (903 templates). It will be really helpful if a filtering option using a category is added to all Wikipedias. Many thanks.
@Niharika Hi ! First of all, sorry for answering so late but I’m really not familiar with Phabricator and this is the first time I'm posting a request.
Second, we already use this trick of using templates in a dummy page. The problem is that it cannot be used for most of the remaining templates I put in this category (sandbox, test cases, substituted templates, preload, KML code…). In addition, the advantage of using a category is that contrary to a dummy page or a whitelist it will be dynamic. No need of updating such a page.
Another trick I'm using each time it is possible is to use the template in its own documentation. Thousand of templates have been removed from this list this way.
As a workaround solution and if a category is not suitable, we could request a bot to periodically generate a whitelist from the category I created (and all sub-categories).
As a conclusion: Filtering options in all special lists would really improve all maintenance tasks.
If something is still not clear, do not hesitate to request me more information.
Thanks for more info, @FDo64. It will be hard to use categories to do this filtration on Special:UnusedTemplates because the query for UnusedTemplates runs on every project. Filtering by category would make it enwiki-specific. :(
However filtering out by category should be fairly easy to do in the bot code for BernsteinBot which generates that report on wiki. Maybe talk to its owner about it?
It would be possible to let the user specify in a form which category to excude. But as far as I know, MW should not implement recursive category querying for performance reasons. In this case, excluding a single category would be unuseful.
@Niharika, @Framawiki,@Louperivois: Hi ! I’m back today with a new idea, probably easiest to implement.
I’m currently working on Special:UnusedCategories and there is a magic word doing the same kind of job I’m requesting:
Could we envisage creating the following magic word?
Then, all templates containing this magic word should be filtered in the Special:Unusedtemplates page.