[Mediawiki-l] Passing and dispalying interwiki links

Amruta Lonkar gtg808u at mail.gatech.edu
Thu Mar 23 22:22:32 UTC 2006


I am using the following code to create pages in a given namespace and am
passing some text as links, and i want them to be shown as links however the
mediawiki code is not parsing the <a href></a> tags. Is there some other wau
to do this?

function createWikiPage($pageTitle,$pageText,$refid)
$pageText = $pageText."<h1>".text."</h1>"."<a href=some http>".text."</a>";

	$dbw =& wfGetDB(DB_MASTER);

	//Process each message
	$title = new Title();
	$title = $title->newFromText($pageTitle,102);

	$article = new Article($title);
	$newid = $article->insertOn($dbw);

	$revision = new Revision(array('page' => $newid, 'text' =>
$pageText, 'user' => 0, 'user_text' =>"This page automatically created
by "._FILE_,'comment' => ''));
	$revid = $revision->insertOn($dbw);



More information about the MediaWiki-l mailing list