Manual:Hooks/SpecialPageExecuteBeforePage

Details

 * $specialpage: The SpecialPage being executed
 * $parameters: Any parameter passed to the page (i.e. /wiki/index.php/SpecialAllpages/Foo. Foo is the parameter)
 * $function: The function called to execute the special page (??)