[Mediawiki-l] Passing variables to extensions

Jim Wilson wilson.jim.r at gmail.com
Wed May 9 16:10:50 UTC 2007


Well, it's a trade off.  You can have name/value pairs with a tag extension
-XOR- interpreted {{parameters}}.

Good luck!

-- Jim

On 5/9/07, Carlos Jorge Andrade <carlos.andrade at gmail.com> wrote:
>
> Yah, but the parameter passing is awfull as far as I can tell... no
> key/value.  :-)
>
> On May 9, 2007, at 4:05 PM, Jim Wilson wrote:
>
> > Not for extension tags like <myExtension> - but parser functions like
> > {{#myExtension}} can handle it just fine.
> >
> > -- Jim R. Wilson (jimbojw)
> >
> > On 5/9/07, Carlos Jorge Andrade <carlos.andrade at gmail.com> wrote:
> >>
> >> Hi,
> >>
> >> Is it possible to pass variables (http://meta.wikimedia.org/wiki/
> >> Help:Variable) to extensions ?
> >>
> >> For exemple...
> >>
> >> <myExtension snippet="Map" domain="domain.com"
> >> title="{{SUBPAGENAME}}" />
> >>
> >> How do I set the page title as a parameter ? Is there any other way
> >> of doing this ?
> >>
> >> _______________________________________________
> >> MediaWiki-l mailing list
> >> MediaWiki-l at lists.wikimedia.org
> >> http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
> >>
> > _______________________________________________
> > MediaWiki-l mailing list
> > MediaWiki-l at lists.wikimedia.org
> > http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at lists.wikimedia.org
> http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>


More information about the MediaWiki-l mailing list