[Mediawiki-l] special pages with sub pages arguments
Ittay Dror
ittayd at qlusters.com
Wed Jan 24 10:16:04 UTC 2007
I want to write a special page that accepts several parameters, and can also be included in other pages.
normally, to include, one will write '{{:Special:MySpecialPage/param1/param2}}' and my code will use '/' as parameters separator.
however, what if param1 is a path to a subpage? then, it contains '/'.
and why use '/' for parameters anyway? why not the normal template syntax of '{{:Special:MySpecialPage|param1|param2}}'?
i changed my code to handle this: in Parser.php, find the call of capturePath and add a second argument: 'self::createAssocArgs($args)' add it to the function declaration and also SpecialPage::executePath and SpecialPage::execute. this will allow a mix of both forms ('/' or '|' as separators)
what do you think?
ittay
--
===================================
Ittay Dror,
Chief architect,
R&D, Qlusters Inc.
ittayd at qlusters.com
+972-3-6081994 Fax: +972-3-6081841
www.openqrm.org - Data Center Provisioning
More information about the MediaWiki-l
mailing list