Forum:How do you make a categorizing template not appear in said category?

This page is in Dynamic mode, so anything linking from a category is on the page. It is making it seem as if the templates require attention of a contributor but they do not, I wanted to know how to make them not appear there. -- Bunai82 (talk) 03:14, June 29, 2011 (UTC)


 * When you transclude a template in it's documentation section, the categories from that template are transcluded onto the page along with it. Thus, by putting  on Template:Delete, you add   to the page, which makes it show up on Gaiapedia:Work List. You can fix that by adding a parameter to each of those templates that stops the categories from being added altogether, and using that parameter on the examples in the documentation.


 * You can call that parameter something like  . Then, when  , or  , that instance of the template will not get listed in the category. For an example of how to do it, look at the coding of Template:Dmbox. You’ll see that the categorization works like this:

 {{#switch:{{{type|}}} {{cat handler | main = | nocat = {{{nocat|}}} | page = {{{page|}}} }} {{cat handler | main = | template = | other = | nocat = {{{nocat|}}} | page = {{{page|}}} }}
 * setindex =
 * disambig
 * #default =
 * Good luck! — Spike  Toronto  12:54, June 29, 2011 (UTC)


 * Since you're using dpl on that page, you can simply add  as another dpl parameter to the queries. But for more transparency, putting categories to be transcluded within   tags in the templates seems like the best idea. Adding an additional template parameter, just to exclude categories from being transcluded, seems a bit excessive to me. — Sovq 13:03, June 29, 2011 (UTC)


 * I don’t think the  tags will prevent it from happening. The whole point of   tags is that it not place the actual template page in the category. But, if the template is transcluded into the documentation page, and the documentation page is transcluded at the bottom of the template page itself, then both will get categorized. However, the   sounds like a winner! —  Spike  Toronto  13:14, June 29, 2011 (UTC)


 * Most of the templates listed on the maintenance page don't have a documentation page, so  will work just fine. For the ones that have a doc page and indeed use the template on it I find adding   or a similar   workaround more suitable. I just don't see the point of adding a parameter which won't be used in the majority of the articles. The RTE for example, will add a spot to fill the parameter in its template editor, which might lead to users filling it with all sorts of irrelevant info out of confusion.


 * The dpl parameter solution has a flaw though - if you'd want to tag a template page with one of these maintenance templates, then the tagged template won't appear in the results, due to being in the template namespace itself, which is excluded from the query. That can be dealt with by specifying the query more precisely though, just requires a bit more work. — Sovq 13:28, June 29, 2011 (UTC)


 * Thanks, I'll test out the suggestions -- Bunai82 (talk) 15:23, June 29, 2011 (UTC)

If you want an easy way to not let the template add itself when it's called in its documentation is to put the category as a default value of a parameter, for example (delete template): {{{category|}}} So when you will call the template you have to simply add a random value like, while by default the category will be added. {{User:Leviathan_89/sig2|time=20:49|day=29|month=June|year=2011}}