Jump to content

Extension:EnhancedUpload/zh

From mediawiki.org
This page is a translated version of the page Extension:EnhancedUpload and the translation is 4% complete.
MediaWiki扩展手册
EnhancedUpload
发行状态: 稳定版
描述 Provides a special page with the option to upload one or multiple files to the wiki
作者 Hallo Welt! GmbH
最新版本 5.0.0-alpha
兼容性政策 对于每个有长期支持的MediaWiki发行版本,扩展内都有对应的分支。
MediaWiki 1.35+
数据库更改
许可协议 僅限GNU通用公眾授權條款3.0
下載
  • $wgEnhancedUploadAllowMismatchedMimeTypes
  • $wgEnhancedUploadOverrideStandardUpload
  • $wgEnhancedUploadDragDropImagesAlignment
  • $wgEnhancedUploadDragDropImagesWidth
  • $wgEnhancedUploadDragDropImagesType
  • $wgEnhancedUploadDragDropImagesHeight
前往translatewiki.net翻譯EnhancedUpload扩展

This extension offers a number of file uploading improvements:

  • New special page EnhancedUpload
Special:EnhancedUpload introduces a streamlined, user-friendly media upload experience with support for drag-and-drop functionality and multiple file uploads.

The interface features a modern, clean layout, providing users with improved visual feedback and a more intuitive workflow.

  • Improved drag-and-drop uploading in VisualEditor
  • "New file" menu in edit toolbar

It also introduces the ‎<attachments /> tag that allows to maintain file lists on pages easily.

Installation

  • Install Extension:OOJSPlus and Extension:VisualEditor extensions first, since they are required.
  • 下载文件,并解压EnhancedUpload文件夹到extensions/目录中。
    开发者和代码贡献人员应改从Git安装此扩展,输入:
    cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/EnhancedUpload
    
  • 請新增下列代码到您的LocalSettings.php 文件的底部:
    wfLoadExtension( 'EnhancedUpload' );
    
  • Yes 完成 – 請导航至您的wiki上的Special:Version,以验证此扩展已成功安装。

Configuration

You can set some variables in the "LocalSettings.php" file:

Image alignment
$wgEnhancedUploadDragDropImagesAlignment = 'none'; (default = 'right')
Image width
$wgEnhancedUploadDragDropImagesWidth = '600px';
Image height
$wgEnhancedUploadDragDropImagesHeight = '600px';
Image type
$wgEnhancedUploadDragDropImagesType = 'frameless'; (default = 'thumb', other options 'frameless', 'frame', 'basic')
Allow mismatched mime types
$wgEnhancedUploadAllowMismatchedMimeType = 'true'; (default = 'false')

外部链接