Manual:$wgUseInstantCommons/zh

用法
将以下内容添加到以启用InstantCommons：

详情
Setting this configuration parameter to  enables InstantCommons, which allows to automatically use in the local wiki images hosted in Wikimedia Commons.

This configuration parameter's setting is a shorthand for the following setting to :

注释
Enabling this configuration parameter does not avoid any usage of disk space on the server running the local wiki. Until MediaWiki 1.26, this setting did indeed generate thumbs on the local disk for caching purposes. In case the dimensions of the original file on Wikimedia Commons are exceeded when embedding the file on a page in the local wiki, the file will in its original size be put onto the local disk.

Since MediaWiki 1.27,  hotlinks images from Commons by default instead of downloading originals and thumbnailing them locally. This allows wikis to save on CPU and bandwidth while reducing time to first byte for pages, even without a thumbnail handler. However, the downside can be that pages can load slowly if they haven't loaded in the past 12 hours. For example, if you have 100 InstantCommons images on a page, your wiki will make 400 API requests to the Commons API at page load time and the first byte of the page won't be returned for about 30 seconds. This behavior is logged as bug T190576, but in the meantime, you may prefer to override the default  and   by creating your own   entry, or maybe not use foreign file repositories at all and instead copy images from Commons to your own wiki using.

有关调整的配置参数 ，请参见文档.

参见

 * Manual:Configuring file uploads (mainly for local uploads)
 * (to configure multiple file repositories)