Last modified: 2007-10-02 10:42:24 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T12062, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 10062 - Template queries not rendering tables, templates, parser functions
Template queries not rendering tables, templates, parser functions
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
PC Windows Server 2003
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on: 7051
Blocks:
  Show dependency treegraph
 
Reported: 2007-05-29 15:23 UTC by Neil Davies
Modified: 2007-10-02 10:42 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Neil Davies 2007-05-29 15:23:29 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;'>&nbsp;&nbsp;</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}}
Comment 1 Jesse (Pathoschild) 2007-06-27 03:52:27 UTC
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;'>&nbsp;&nbsp;</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. 
Comment 2 Neil Davies 2007-09-27 18:29:32 UTC
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
Comment 3 Neil Davies 2007-09-27 18:29:57 UTC
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
Comment 4 Markus Krötzsch 2007-10-02 10:40:43 UTC
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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links