Forum:No Include Categories in Templates

Could someone please show me where I'm going wrong with http://levynlight.wikia.com/wiki/Template:Character. I don't see how to get the documentation to not add the categories to the Template page. Thanks, -Xick 08:13, August 13, 2010 (UTC)

Also any formatting tips on how to get the documentation to look more like the source code with the breaks and not have it run all into one line. -Xick 08:16, August 13, 2010 (UTC) -- 09:02, August 13, 2010 (UTC)
 * Either make it into a list, a table or use
 * You're using the template on the doc page and it's creating the category, obviously. Normally you can prevent categories (or any content for that matter) from being transcluded by using tags, but since the category link is embedded within the template, that's not easily possible. You could further complicate your template by creating an extra parameter that 'turns off' categorizing, but I think the easiest is to 'substitute' the template on the doc page and remove the category link manually. You have to 'resubstitute' it every time you change the template to keep the doc page up to date, but that isn't more than two minutes work. BramTalk/IGW 13:56, August 13, 2010 (UTC)


 * tags, not . -- 16:21, August 13, 2010 (UTC)


 * Instead of, you can do


 * This should only apply the category when the template is used in mainspace. -- ◄mendel► 19:51, August 13, 2010 (UTC)
 * That does work for the but  returns  the one square bracket just baffles me. FIXED can't have whitespace after value


 * How would I make that an if namespace is not Template? As I could also put that in the template:stub that this template references which would fix all the wrong categories on the template pages.
 * .png also returns .png.
 * Thanks Everyone for all your help so far-Xick 21:53, August 13, 2010 (UTC)