Optionally qualifies SubPages with $MainPage, handles FreeLinks and returns the &ScriptLink for the $id.
Given input:
$id
Returns results:
Since &GetPageLinkText does the same - only with a second parameter, this could be refactored to
sub GetPageLink { my ($id) = @_; my $name = $id;
return &GetPageLinkText($id, $name); }
or is there any significant semantical difference?