Template talk:Auto short description

Latest comment: 3 years ago by GhostInTheMachine in topic Sub-cat?

Sub-cat? edit

When an infobox is a wrapper for another infobox, and the inner one sets the short description, then the inner template should be listed in Category:Templates that generate short descriptions. Sadly, all of the wrapper templates get listed instead. In the case of the element templates (Category:Infobox element per element (0)), this adds more than all of the other "real" templates and we see way too many templates listed there.

Could we add a parameter to {{Auto short description}} so that {{Infobox element}}/doc can use {{Auto short description|Element}} to file each of the element templates in Category:Templates that generate short descriptions (Elements) instead? — GhostInTheMachine talk to me 17:42, 30 August 2020 (UTC)Reply

Adding a hardcoded category for a specific group is not something I'd like see. A |cat= parameter can be added which will add the value in |cat= instead of the default category. --Gonnym (talk) 19:11, 30 August 2020 (UTC)Reply
To keep the category names consistent, I had intended that the new parameter string would be appended to the current category name. So yes - I suspect that {{Auto short description|category=Element}} would be clearer. This would lead to adding Category:Templates that generate short descriptions (Elements) or maybe Category:Templates that generate short descriptions - Elements. (Having |category= as the full category name instead might be the more normal way.) — GhostInTheMachine talk to me 21:37, 30 August 2020 (UTC)Reply
Both of the above could work. Let me know which one you'd like. --Gonnym (talk) 23:41, 30 August 2020 (UTC)Reply

 Y The 125 chemical element infobox templates have now moved from Category:Templates that generate short descriptions into Category:Templates that generate short descriptions for chemical elementsGhostInTheMachine talk to me 17:50, 7 September 2020 (UTC)Reply