用戶:Antigng/includes/Specials/SpecialPageinfo.php

<?php
class SpecialPageinfo extends RedirectSpecialPage {
	function __construct() {
		parent::__construct( 'Pageinfo' );
		$this->mAllowedRedirectParams = array();
	}

	function getRedirect( $subpage ) {
		if ( $subpage !== '' ) {
            $this->mAddedRedirectParams['action']='info';
			$this->mAddedRedirectParams['title'] = $subpage;
		}
               else {
			$this->addHelpLink( 'Help:Pageinfo' );
			throw new ErrorPageError( 'nopagetitle', 'nopagetext' );
		}

		return true;
	}
}