#42 Discuss w/ upstream #mediawiki why {{#if parser function fails
Closed: Fixed None Opened 15 years ago by jlaska.

From ticket#29, it appears that the {{#if...}} parser function is not working on our wiki. Need to figure out why.

For example, see https://publictest6.fedoraproject.org/wiki/Template:Testresult2
{{{
{{#if: {{{1|}}} |<ref>{{bz{{!}}{{{1}}}}}</ref>}}
}}}


This fails because of upstream mediawiki bug https://bugzilla.wikimedia.org/show_bug.cgi?id=2257

I have fixed the template [https://fedoraproject.org/wiki/Template:Result Template:Result] to work around the problem for now. Basically, I needed to change the ref tags from ...

{{{
<ref>{{{1}}}</ref>
}}}

to ...

{{{
{{#tag:ref|{{{1}}} }}
}}}

Log in to comment on this ticket.

Metadata