扩展:批量上传

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Extension:MultiUpload and the translation is 84% complete.

Other languages:
English • ‎dansk • ‎español • ‎polski • ‎português do Brasil • ‎русский • ‎العربية • ‎मराठी • ‎বাংলা • ‎中文 • ‎日本語
MediaWiki扩展手册
OOjs UI icon advanced.svg
MultiUpload
发布状态: 未维护
MultiUpload Screenshot - Ghost.png
实现 Special page
描述 允许使用者同时上传多个文件
作者 Lee Worden(最初由Travis Derouin
最新版本 3.1 (2017-01-28)
MediaWiki 1.28+
数据更新
许可协议 GNU General Public License 2.0 or later
下载
README
参数

  • $wgMultiUploadInitialNumberOfImportRows
  • $wgMultiUploadTempDir
翻译MultiUpload扩展如果在translatewiki.net可用
检查使用和版本矩阵。
问题 开放的工作 · 报告错误

批量上传扩展允许用户同时上传多个文件。它还能解压压缩包文件(.zip.tar.tar.gz以及.tgz),允许在包中发现的文件被上传到维基。

安装

  • 下载文件,并将其放置在您extensions/文件夹中的MultiUpload目录内。
  • 将下列代码放置在您的LocalSettings.php的底部:
    wfLoadExtension( 'MultiUpload' );
    
  • Yes 完成 – 在您的wiki上导航至Special:Version,以验证扩展已成功安装。
为了是此扩展正常启用,你必须要使你的wiki允许上传,详见手册:文件上传配置

选项

创建链接至扩展

在侧边栏

通过编辑MediaWiki:Sidebar增加一行使得在侧边栏添加一个链接:

** Special:MultiUpload|multiupload ("upload files")

** Special:MultiUpload|multiupload-toolbox ("Upload multiple files").
In both examples of adding links to this extension in MediaWiki:Sidebar, if only "multipleupload" or "multipleupload-toolbox" shows in the sidebar, you may have to navigate in your wiki to "MediaWiki:Multipleupload" or "MediaWiki:Multipleupload-toolbox" and create the pages with the messages that are already shown.

在侧边栏中将“上传文件”替换为批量上传

In the LocalSettings.php file, right below the last require_once line add:

$wgUploadNavigationUrl = "{$wgScriptPath}/index.php?title=Special:MultiUpload";

消息

You can change the messages of this extension through pages of MediaWiki namespace starting with multipleupload. For example, [[MediaWiki:Multiupload-text]] is the message displayed on MultipleUpload special page.

其他信息:

  • multiupload-submit
  • multiupload-uploadedto
  • multiupload-row-name-base
  • multiupload-unpack-button
  • multiupload-notify-ok
  • multiupload-upload-package-error
  • multiupload-unpack-error
  • multiupload-http-error
  • multiupload-file-unpacked-from

參見