Last modified: 2007-03-15 21:42:54 UTC
Template {{tmp}} contains: Lorem {{<includeonly>subst:</includeonly>#if:{{{1|}}}|foo [[{{{1}}}]]|bar}} ipsum Calling {{subst:tmp|x}} gives (correct): Lorem foo _x_ ipsum (_x_ = x is hyperlink) Calling {{subst:tmp}} gives (incorrect): Lorem foo [[foo [[{{{1}}}]]]] ipsum Should give: Lorem bar ipsum
Two weird things: 1) It picked the true branch when the condition should have been false 2) The output was mangled in a bizarre fashion ({{{1}}} in the return string is replaced by the proper return string, literal "foo [[{{{1}}}]]", so we get literal "foo [[foo [[{{{1}}}]]]]")
*** This bug has been marked as a duplicate of 5678 ***