code: protected String linkToFile(File f) {
          String url = getWikiUrl(f.getAbsolutePath());
          if (url == null) {
              url = f.toURI().toString();
          }
          return String.format("<a href=\"%s\" target=\"_blank\">%s</a>", url, f.getName());
      }
docs: Creates a wiki link to a file.
  @param f file.
  @return link referencing the file.