Ævar Arnfjörð Bjarmason wrote:
On 11/20/05, Magnus Manske magnus.manske@web.de wrote:
Ævar Arnfjörð Bjarmason wrote:
In the current parser that would not be possible, you can't pass template arguments to extensions. Also, if it's inline it's likelier to get updated.
Funny, last time I checked on my citation feature it worked quite well. That has been a few weeks ago, though.
When you make a template at Template:Extension with the contents: """
<hook> arg = {{{1}}} </hook> """
and call it at a page with {{Extension|myarg}} the output is:
""" arg = {{{1}}} """
I.e. the {{{1}}} is not interpolated, calling the parser on it won't work either as you'll be dealing with a new instance of the parser which won't replace those variables because as far as it's concerned it hasn't been called with any.
Now, your idea of having a template wrap it as {{attribute|rain|...}} would presumably require a template at Template:Attribute with contents like:
"""
<attr> weather = {{{1}}} .... </attr> """
And as I've demonstrated that doesn't work, so what exactly did work the last time you checked it?
Damn, I distinctly remember I ported the fix for this, based on something I found on bugzilla.
Maybe someone turned it off again because of unpleasant side effects? I'll keep you posted if I can find it again.
Magnus