Last modified: 2010-04-05 11:08:07 UTC
{{#if:a| #ee2222|CornFlowerBlue}} introduces a linebreak before outputting #ee2222, causing the formation of a numbered list, but {{#if:a|bogus|CornFlowerBlue}} does not output a linebreak.
Note, as work around, {{#if:a| #ee2222|CornFlowerBlue}} works fine. (  -> space before it gets interperted as css. This might be a duplicate Bug 12974 (that seems to be more to do with tables, but probably same underlying issue)
(In reply to comment #1) > Note, as work around, {{#if:a| #ee2222|CornFlowerBlue}} works fine. (  > -> space before it gets interperted as css. {{#if:a|<nowiki />#ee2222|CornFlowerBlue}} also works.
The usual behavior of the parser-function is to trim white- space from its input, so I'd speculate #*:; are deliberate exceptions to this, probably to _guarantee_ a line-break with the following input, which may be a more common case: List:{{#ifeq: {{{lang}}} | español | #Uno #Dos #Tres #Catorce }} Note: even without these symbols being a special case you could preserve the otherwise eaten line-break manually by putting "<nowiki />" at the end of the first line.
*** This bug has been marked as a duplicate of bug 12974 ***