> From: Platonides <[email protected]>
>
> Jan Steinman wrote:
>> I don't understand why this is happening, because it was my
>> impression
>> that the template parameter substitution happens before the extension
>> is invoked...
>
> Parameters don't work with tag extensions (<tags>). Call as {{#tag:
> sql2wiki | database=EcoReality | SELECT * FROM mw_user WHERE user_id =
> {{{1}}} }}
>
> http://www.mediawiki.org/wiki/Manual:Tag_extensions#Extensions_and_Templates
Beautiful! Thanks!
I had been to that page, but somehow overlooked the obvious admonition
that one cannot do what I wanted to do.
I did find that the named actual parameter had to be last for some
reason. It was being interpreted as SQL otherwise. So this is what
ended up working:
> {{#tag:
> sql2wiki | SELECT * FROM mw_user WHERE user_id =
> {{{1}}} | database=EcoReality }}
Thanks again for your help, Platonides!
:::: Monoculture is where the logic of nature collides with the logic
of economics; which logic will ultimately prevail can never be in
doubt. -- Michael Pollan ::::
:::: Jan Steinman, EcoReality http://www.EcoReality.org ::::
_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l