Last modified: 2007-10-02 10:42:24 UTC
I created a template for use in an inline query template If I create it like this: |- |{{{1}}}|<span style='background-color:{{{2}}};border:1px black solid;width:40px;'> </span> The table is not rendered correctly Likewise if I use a template within this template or if I use parser functions like the one listed below: {{#ifeq: {{{2| }}}|Test|No|Yes}}
This works correctly for me (see substituted test: <http://meta.wikimedia.org/w/index.php?title=User:Pathoschild/Sandbox&diff=615025>). The problem may be that you didn't provide default values, so your browser will (for example) stumble over "{{{2}}}" as a background color. This might work better: |- |{{{1| }}}|<span style='background-color:{{{2|inherit}}};border:1px black solid;width:40px;'> </span> I've closed this bug report for now; please contact me at [[m:user talk:Pathoschild]] if you need help with wiki syntax, or reopen this bug if correcting your syntax doesn't work.
Creating a template consisting of {{#ifeq: {{{2| }}}|Test|No|Yes}} and then using this in an inline query renders {{#ifeq: {{{2| }}}|Test|No|Yes}} on the page and does not parse it
In the case of parser functions, the problem is that the parserfunctions do not register themselves for anything butthe mian parser. To render templates, SMW uses an auxilliary parser object. There is a quckfix for the issue, see http://ontoworld.org/wiki/Template:Asktest