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
On 24/01/07, Ittay Dror ittayd@qlusters.com wrote:
what do you think?
Why do we care what you do to your copy of MediaWiki?
Or do mean, how do we feel about arbitrarily breaking the syntax for includable special pages?
Rob Church
mediawiki-l@lists.wikimedia.org