Jonathan Nowacki wrote:
errr... I mean how do I fix the code so it processes
internal links?
What about this?
>> function efExampleParserFunction_Render(
&$parser, $param1 = '', $param2 =
>> '' ) {
>> # The parser function itself
>> # The input parameters are wikitext with templates expanded
>> # The output should be wikitext too
if (substr($param1, 0, 7) !=
"http://")
return "[[$param1|$param2]] - ";
else
>> return "[$param1 $param2] -
";
>> }
Everything not starting with http:// is considered an internal link.
Note this won't handle other protocols (https://, ftp:// nor will you be
able to internally link using your extension to pages beginning with http://