Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

MediaWiki Developer's Handbook/Special Pages

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

This will show you how to create a special page. MySpecialPage.php <?php if (!defined("MEDIAWIKI")) { die("not a valid entry point!"); } $wgExtensionCredits['specialpage'][] = array ( 'name' => 'My Special Page!', 'author' => 'Me', 'url' => 'http://en.wikibooks.org/', 'description' => 'A cool special page', 'version' => '1.2.3', ); $wgAutoloadClasses['MySpecialPage'] = $dir . "MySpecialPage_body.php"; $wgSpecialPages['MySpecialPage'] = 'MySpecialPage.php';<?php if (!defined("MEDIAWIKI")) { die("not a valid entry point!"); } $wgExtensionCredits['specialpage'][] = array ( 'name' => 'My Special Page!', 'author' => 'Me', 'url' => 'http://en.wikibooks.org/', 'description' => 'A cool special page', 'version' => '1.2.3', ); $wgAutoloadClasses['MySpecialPage'] = $dir . "MySpecialPage_body.php"; $wgSpecialPages['MySpecialPage'] = 'MySpecialPage.php'; This is the special page itself. It should say something like Hello! "Your lucky number is 3"! {{:HandbookHandboHandbookHandbookHand