User blog comment:Ducksoup/Why Wikia Evolves/@comment-24473195-20150619235105/@comment-24473195-20150620165812

I took it out because that was a simple example of how a if statement could be converted to lua. Generally speaking you'd write the extra code in the function itself. In fact that code I wrote makes the "{{#if" parser function redundant, and unnecessary. But for the purposes of discussion you can have your regular module:

Then have in a template (e.g. Template:if) : {{#invoke:if|main}}

Then all you need to do is use it: {{if|{{{luarocks|}}}|true=yes it does|false=no it doesn't}} or {{if|{{{luarocks|}}}|yes it does|no it doesn't}} or in Imamadmad's template: {{if|{{{1}}}|{{{2}}}|{{{1}}}}}

This will do the same thing as the parser functions, in fact it does more (it can even do more), and doesn't need the "#" sign. It can even be coded to avoid the {{{1}}} or {{{2}}}

The point is that except for specific scenarios, people can even create their own "parser functions" without any need to request it from staff, or beg someone. There are certain use-cases that haven't been implemented in scribunto itself, but that's more of a lack of interest from MediaWiki and Wikia rather than a seriously problematic technical issue.

Most people who defend parserfunctions are those who don't really understand how lua can almost seamlessly replace them.

P.S. You have a syntax error in your Template:if.