[Mediawiki-l] Get Mediawiki to read template variables within extension tags?

Romain GUILLOT guilrom at free.fr
Sat Jul 15 20:03:30 UTC 2006


Hi all, I think I can help you out
I hacked mediawiki parser.php (version 1.6.3) three monthes ago in order to
extend mediawiki extension behaviour for my personnal use.

My tweaks addressed two parsing issues :

- parser limitations regarding template arguments handling within extension
- parser not handling correctly some nested extensions cases
       
My hack is rather ugly, but it is working like a charm. (with the 1.6.3
version)

You can browse the code here :
<http://meta.wikimedia.org/wiki/User:Guilrom/ParserRGVersion>
http://meta.wikimedia.org/wiki/User:Guilrom/ParserRGVersion

Let me know if this is helpful !

Bests,
Romain GUILLOT
 <http://meta.wikimedia.org/wiki/User:Guilrom>
http://meta.wikimedia.org/wiki/User:Guilrom <
<http://meta.wikimedia.org/wiki/User:Guilrom/ParserRGVersion>
http://meta.wikimedia.org/wiki/User:Guilrom/ParserRGVersion>


----

Message: 2
Date: Fri, 14 Jul 2006 08:38:24 -0400
From: "Chris Earle" <cearle at cbltech.ca>
Subject: Re: [Mediawiki-l] Get Mediawiki to read template variables
withinextension tags?
To: mediawiki-l at wikimedia.org
Message-ID: <e98391$fqe$1 at sea.gmane.org>

> Hi all,

>i'm going to keep hunting around for a fix for this problem -- i have not
checked recent changelog entries to see if it is being >addressed, but in
the meantime, can someone point me in the direction of a fix? or something
about sending stuff to the >parser?

>I read this part of the extensions FAQ

>
<http://meta.wikimedia.org/wiki/MediaWiki_extensions_FAQ#Templates_with_exte
nsion_tags>
http://meta.wikimedia.org/wiki/MediaWiki_extensions_FAQ#Templates_with_exten
sion_tags < <http://meta.wikimedia.org/wiki/MediaWiki_extensions_FAQ>
http://meta.wikimedia.org/wiki/MediaWiki_extensions_FAQ>

>but there's no solution offered up.....

>Stumbled upon this when I whipped together a little extension for myself
only to find out it wouldn't work with the template >I'm using it in

>Thanks for any suggestions,

--

Chris






More information about the MediaWiki-l mailing list