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:
- Template text
- 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 [[Category:bar]]
then I get 1. foo
1. regular text 2. ...
This is because the generated html now ends the list tag for the template text:
<ol><li> foo </li></ol> <p><br /> </p> <ol><li> Regular text </li> <li> ... </li></ol>
(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.