[Mediawiki-l] markup extensions: wiki links

Rob Church robchur at gmail.com
Sun May 28 13:10:32 UTC 2006


On 28/05/06, FreeAll Support <support at freeall.org> wrote:
> Hello all!
>
> I am currently making few markup extensions, and I noticed a problem:
>
> Let's say my extension tries to type the same word but in pink. Well, what I
> want is something like that:
>
> Writing: "<pinky>Bla Bla [[something]]</pinky>"
> Will give me "Bla Bla SOMETHING" where something is a link.
> What I get instead is "Bla Bla [[something]]" with no link.
>
> I should have seen it happening, but I still don't have a clue how to do it
> otherwise.

Your parser hook is passed a third argument; a reference to the
calling parser. Use it to parse wiki markup further before passing it
back out as HTML. Be careful that you don't end up causing recursion
when doing so.


Rob Church


More information about the MediaWiki-l mailing list