From: Tim Starling tstarling@wikimedia.org
On 05/11/13 07:38, Jan Steinman wrote:
But doing this: xxx {{#ifeq:"0 "|"{{#tag:sql2wikiInline|SELECT count(*) FROM s_product_harvest h INNER JOIN mw_user u ON h.who1 = u.user_id WHERE u.user_name = '{{{1}}}'|database=EcoReality}}"|no harvests|some harvests}} xxx
#tag generates an opaque placeholder, you can't compare it to things with #ifeq. It would work if your sql2wikiInline extension provided a proper parser function interface, instead of using #tag.
You've got my attention.
Can you point me to a starting point for figuring this out? (I find crawling through MediaWiki documentation to be an "opaque placeholder." :-)
It can be used as "<sql2wikiInline>...</sql2wikiInline>", but I think you're saying if it could be used as "{{#sql2wikiInline:..." it would work.
:::: Giving society cheap, abundant energy at this point would be the equivalent of giving an idiot child a machine gun. -- Paul Ehrlich :::: Jan Steinman, EcoReality Co-op ::::