[Mediawiki-l] Extensions and wiki variables

Dori slowpoke at gmail.com
Sun Feb 6 15:24:49 UTC 2005


On Sun, 06 Feb 2005 00:24:15 -0600, =James Birkholz=
<j.birchwood at verizon.net> wrote:
> 
> I want to enclose a MW variable in extension tags and have the value passed
> to the extension.
> For example, <myExtension>{{PAGENAME}}</myExtension> to pass the name of
> the article to the php function hooked to "myExtension".
> 
> Is there a way to do it? As is, the text "{{PAGENAME}}" is passed. I assume
> that the extension handling code would have to be modified to allow
> variables to be parsed, instead of passing the entire contents between the
> extensions markup tags.

If you're writing an extension, why bother with passing the name of
the page that way instead of getting it directly?

-- 
[[en:User:Dori]]



More information about the MediaWiki-l mailing list