Help:Extension:FileImporter/zh



The and  extensions aim to make moving files from a local wiki to Wikimedia Commons easier. The new functionality allows to move files with all their original data intact, while documenting the move in the version history.

The provides a link to Wikimedia Commons on the local wiki and hands over a URL to the extension FileImporter. The is a Wikimedia Commons extension which imports the file including all data when all prerequisites are met. Technically, the files won't be "moved", but "copied".

FileImporter has been deployed to Wikimedia Commons in June 2018. To make use of it, you need to activate the FileExporter as a beta feature in your local wiki.

背景
FileImporter and FileExporter aim to fulfil a request from the German-speaking community's Technical Wishlist and are developed by WMDE's tech team. More information can be found on the main project page on Meta.

Step by step
You need to be logged in in order to use the feature.

How imported files can be found

 * In the revision history of a file, the import is shown as a null revision (i.e. an entry in the revision list that doesn’t actually change the page).
 * For the import, an upload log entry and an import log entry are created and associated with the null revision and with the importing user, and timestamped with the import date. Having both the null revision and the upload log entry is the default for uploads, although it leads to "doubled" entries on the history page, see this example file and its log entries.
 * For (old) imported file revisions, upload log entries  are created with the date and user of the original upload to make all file revisions appear in Commons' upload log.
 * Imports are tagged with the tag, so you can filter them in Recent Changes.

部署路线图

 * 2018年6月12日：导出至test.wikipedia.org
 * 文件导出器作为测试功能在mediawiki.org及test2.wikipedia.org提供.
 * （要测试导出，您也需要成为这些wiki上的自动确认用户. ）
 * 文件导入器在test.wikipedia.org提供


 * 2018年6月25日：导出至维基共享资源
 * 文件导出器作为测试功能在德语、波斯语和阿拉伯语维基百科上提供
 * 来自mediawiki.org的导出文件现在转交维基共享资源
 * 文件导入器在维基共享资源提供
 * 2018年7月11日：
 * 文件导出器作为测试功能在sourcewiki提供
 * 部署文件导出器测试功能至其他wiki：待定
 * 我们正在改进模板匹配（更多信息）

Links

 * Main project page on Meta
 * - extension manual
 * - 文件导入配置
 * - 扩展手册
 * tag/move-files-to-commons/ - Phabricator project
 * overview: How templates are matched with the FileImporter extension