Extension:MultimediaViewer/zh

多媒体查看器在不需要在浏览器中加载外部页面、或是令人困扰的中间页的情况下，给那些想浏览全尺寸、或是接近全尺寸图片的用户们带来了不一样的体验.

安裝
首先，有时我们可能不需要多媒体查看器，考虑到这种情况，您可以安装. 如果您不安装，多媒体查看器则在任何地方都会被启用.

您还可以考虑安装. 虽然这不是个硬性要求，但是可以在浏览图片时提供更多有关信息.

-{zh-hans:配置; zh-hant:組態;}-

 * 若要启用还在公测中的功能，请将 设置为.
 * 决定是否默认将多媒体查看器启用给所有人，而则决定是否启用给匿名用户. They both default to .  can be used as a replacement for.
 * will improve performance when enabled, but can be fragile depending on how the wiki is set up (it will probably work fine if you use a 404 handler).


 * 强制下载

To ensure files are offered for download and not viewed in the user's browser following a click on the Download … button, the server has to be configured, except when using vagrant:

If the requested URL to an image directory contains the  query parameter, the  -header must be set to. This can be achieved in Apache and compatible servers using mod_rewrite and mod_headers in a  file. 亮面配置可参见此处.

Usage testing
First thing, before testing, is to make sure you're logged in and you have the preference enabled: Log in to the wiki and go to Special:Preferences, then visit the "Beta features" tab and check the appropriate box.

Next, go to a page that has a thumbnail on it. Try clicking on the image or on the "expand" icon near it. The lightbox should pop up and give you a bigger view of the image.

If you'd prefer, there's an exported test environment that you can use via Special:Import to quickly set up a suitable testing environment.

模板
多媒体查看器和上传向导需要多个模板来显示照片数据. 直接将此代码保存为xml文件，并导入至您的wiki即可.

