public static String getUploadTextCommons(PFile file, Settings settings) {
      String desc = "=={{int:filedesc}}==\n{{Information"
          + "\n|description = " + file.getComponent(Elem.DESC)
          + "\n|date = " + file.getComponent(Elem.DATE);

      if(settings.author.equals("own")) desc += "\n|source = {{own}}\n|author = [[user:" + settings.username + "|]]";
      else desc += "\n|source = " + settings.source + "\n|author = " + settings.author;

      desc += "\n|permission = " + settings.permission + "\n|other_versions = \n}}";
      if (file.coor != null) {
        desc += "\n{{Location dec|" + file.coor.getLat() + "|" + file.coor.getLon();
        if(!file.coor.getHeading().isEmpty())
          desc += "|heading:" + file.coor.getHeading();
        desc += "}}";
      }

      desc += "\n\n=={{int:license-header}}==\n";

      desc += settings.getLicenseString();
      if(!settings.extraText.isEmpty()) desc += "\n" + settings.extraText;

      desc += getUploadCategories(file.getComponent(Elem.CATS), settings.categories); //categories
      return desc;
    };