e.g.
UseModWiki | RecentChanges | Preferences
sub GetGotoBar { my ($id) = @_; my ($main); my (@links) = (); push(@links, &GetPageLink($HomePage)) if ($LogoUrl eq ""); if ($id =~ m|/|) { $main = $id; $main =~ s|/.*||; # Only the main page name (remove subpage) push(@links, &GetPageLink($main)); } push(@links, &GetPageLink($RCName)); push(@links, &GetPrefsLink()); push(@links, &GetRandomLink()) if (&GetParam("linkrandom", 0)); push(@links, $UserGotoBar) if ($UserGotoBar ne ''); return join(" | ", @links) . "<br>\n"; }