anchor.diff:          e.g. http://server/wiki/Page.  Leave empty to use the main URL
           prefix, e.g. http://server/w/index.php?title=Page.
         '';
  +    };
  +
  +    enableUploads = mkOption {
  +      default = false;
  +      description = "Whether to enable file uploads.";
  +    };
  +
  +    uploadDir = mkOption {
  +      default = throw "You must specify `uploadDir'.";
  +      example = "/data/mediawiki-upload";
  +      description = "The directory that stores uploaded files.";
       };
   
       extraConfig = mkOption {
  
positive.code: 
    extraConfig =
      ''
        Alias ${config.urlPrefix} ${mediawikiRoot}
  
        <Directory ${mediawikiRoot}>
  
negative.code:           $wgArticlePath = "${config.articleUrlPrefix}/$1";
          ''}
  
          ${optionalString config.enableUploads ''
            $wgEnableUploads = true;
            $wgUploadDirectory = "${config.uploadDir}";
          ''}
  
          ${config.extraConfig}
        ?>
      '';
  