Thread:User talk:CodeCat/small problem/reply (5)

It is probably easy to do with Lua. You can write a small module (Module:User:SemperBlotto or a subpage of that) that checks for the 4th parameter, and if it ends in -es, returns a category, otherwise returns nothing. If you add that module to and do a null edit on all transclusions of that template, the category will be filled with all the entries you need.