Hey, Somebody correct me if I'm wrong, but I believe the function you're looking for is
$title = Title::newFromText( 'AddArticle' ); $title->getLocalURL( array( 'action' => 'edit', 'preload' => 'Template:one' ) ); *--* *Tyler Romeo* Stevens Institute of Technology, Class of 2015 Major in Computer Science www.whizkidztech.com | [email protected] On Thu, Aug 2, 2012 at 8:06 PM, linuxlover <[email protected]>wrote: > hello, > > I'm reading Linker.php source. > > I want to take a wikitext like this [{{fullurl:{{PAGENAME}}| > action=edit}} Edit this page] > > edit it to get: > index.php?title=AddArticle&action=edit&preload=Template:one > > And then I'd like to get only the href content in a php variable. > > In Linker.php I have found a lot of private functions. > > Can you help me? > > I'm going to user $wgOut->redirect($url); for an internal link. > > regards, > ADM > > _______________________________________________ > Wikitech-l mailing list > [email protected] > https://lists.wikimedia.org/mailman/listinfo/wikitech-l > _______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l
