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