Help:Extension:FileImporter/zh



The FileImporter and FileExporter 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 FileExporter provides a link to Wikimedia Commons on the local wiki and hands over a URL to the extension FileImporter. The FileImporter 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 on June 25, 2018. To make use of it, you need to activate the FileExporter in your local wiki, provided as a beta feature on first wikis on June 25, 2018.

背景

 * 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.

用法
Enabling the FileExporter: To enable the FileExporter on a local wiki, you have to be logged in and tick the checkbox for FileExporter on the beta-features preferences page. You don't have to activate the FileImporter on Wikimedia Commons.

Template Matching: Support needed
Based on the configuration file of the source wiki, the FileImporter checks the local file's templates and then processes the file accordingly. This page documents what the FileImporter does and how the configuration files work. The configuration files are based on the CommonsHelper2 tool. They should be maintained by the communities. Please have a look at them and update them if needed.

部署路线图

 * 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
 * FileImporter extension manual
 * FileImporter configurations
 * FileExporter extension manual
 * Phabricator project
 * overview: How templates are matched with the FileImporter extension