Thread:Project:Support desk/Using a template in an ordered/unordered list breaks if the template is categorized.

I have a problem using templates in lists. I am by no means a power user or wiki guru, so perhaps I am doing something fundamentally wrong. But here's the deal:

I can define a template and then include that template in a simple ordered or unordered list, like this:


 * 1) regular text
 * 1) regular text

so if my Template:template_text has "foo" then I get

1. foo 2. regular text 3. ...

BUT if Template:template_text contains category code, the list breaks. E.g.,

Template:template_text foo

then I get 1. foo

1. regular text 2. ...

This is because the generated html now ends the list tag for the template text:  foo 

 Regular text   ...  (It also sticks in the paragraph and break tags to be even more annoying).

I've tried the tag but that doesn't help.

It's not the end of the world but unless I'm doing something stupid this seems like an annoying bug, as it prevents me from putting my text fragments in categories, which is a really nice thing.