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
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 | tylerromeo@gmail.com
On Thu, Aug 2, 2012 at 8:06 PM, linuxlover linuxloverstaff@gmail.comwrote:
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 Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
wikitech-l@lists.wikimedia.org