Help:扩展:媒体查看器

From mediawiki.org
This page is a translated version of the page Help:Extension:Media Viewer and the translation is 55% complete.
Outdated translations are marked like this.
PD 注意:當您編輯本頁面時,即同意以CC0協議授權您的貢獻。您可以在公有領域帮助页面找到更多信息。 PD
媒体查看器使您以更大尺寸查看图片,带给您身临其境的体验。

欢迎到媒体查看器的帮助页面,这是个用于维基媒体站点的新多媒体浏览工具。Special:MyLanguage/Extension:Media Viewer/About

本页中包含了该计划关键特性的常见问题。

什么是媒体查看器?

媒体查看器是致力于提高维基百科、维基共享资源和 MediaWiki 站点观看体验的新多媒体浏览工具。它能让您查看大图并显示作者、许可条款及其他元数据等信息。它还提供了用于共享、内嵌和下载媒体文件的一些工具。

该工具由维基媒体基金会中新多媒体项目组开发。要了解更多,请继续往下阅读或访问 MediaWiki.org 中的该产品页

为何需要媒体查看器?

媒体查看器致力于:

  • 改善读者的观看体验
  • make it easier to preview and browse images
  • provide a quick summary, with easy access to details
  • offer features such as enlarge, download, share and embed

媒体查看器提供给维基百科、维基共享资源和其他 MediaWiki 站点的用户:包含了读者、新编者和高级用户。创建该工具是为了带给临时用户更惊喜的媒体体验,让他们能逐步贡献、编辑或重用这些文件。

我如何使用媒体查看器?

媒体查看器可在任何维基媒体站点打开图片时启用,除了维基共享资源登录用户。您也可以通过点击文件描述页的“展开视图”打开。

Media Viewer is now enabled by default on all Wikimedia sites, but can be disabled by any user, as described below.

From a file description page , click on "Open in Media Viewer" below the image to view it with this tool.

媒体查看器如何运行?

当您点击条目中的缩略图时,会显示该图像的大图,提供了更好的仿真体验。媒体查看器会在您点击页面的右边使用‘灯箱视图’填充浏览器窗口。

From here, you can access a number of features:

  • read the image description
  • browse through related images if there are any
  • enlarge the image (or view it in full screen)
  • learn more about the image and its authors
  • get more details on the file page
  • share, embed or download the image
  • close Media Viewer
  • disable (or enable) Media Viewer

在下方了解更多有关此功能的东西。

如何绕过媒体查看器?

如果您要绕过媒体查看器直接访问文件描述页,只需在按下以下三种组合键之一时点击缩略图:

  • shift-click——在新窗口中打开文件描述页
  • contrl-click——在新标签页中打开页面
  • command-click——显示菜单选项

Note that mouse and keyboard shortcuts may vary depending on your browser and user configuration. For more information, check your browser support pages, such as these: Chrome, Firefox or Internet Explorer.

如何关闭该功能?

Media Viewer's new Disable feature

要禁用媒体查看器,在媒体查看器任何图片的右上角点击“cogs”图标,全屏控制下面的(见截图)。 然后点击“禁用媒体查看器”。 此后,图片将不再使用媒体查看器中打开了:点击缩略图将前往维基共享资源或其他文件库中的文件描述页。 这种禁用方法适用于注册用户(通过站点的参数设置)和未注册或匿名用户(通过保存在本地电脑中的文件)。

注意这个禁用功能只在您活跃的网站上工作:在维基共享资源禁用媒体查看器将不会在您所贡献的维基百科或其他姊妹项目上禁用。

如果您是注册用户,您还可以在选项中禁用媒体查看器:选择“外观”段,接着取消选中“文件”下的该选项:“□ 启用媒体文件查看器”。点击“保存”后,您的账户登录到该站点时则不会在媒体查看器中打开图像了。

注册用户也可以在自己的global.js文件中添加一行代码mw.config.set("wgMediaViewerOnClick", false);来禁用媒体查看器。

如果要重新启用媒体查看器,请参照下面的说明。

如何重新启用该功能?

Media Viewer's new Enable feature

如果您关闭了媒体查看器并希望重新启用它,请打开您希望使用此工具的网站上任何文件的说明页面。 接着点击图像下方“启用媒体查看器”按钮旁的“cogs”图标:这将把图像在媒体查看器中打开同时打开“启用”面板(见截图)。 接着点击“启用媒体查看器”按钮 这种启用方法适用于注册用户(通过站点的参数设置)及未注册或匿名用户(通过保存在本地电脑的文件)。

Note that this Enable feature only works on the site where you activate it: enabling Media Viewer on Wikimedia Commons will not enable it on your home Wikipedia or other sister projects.

如果您是注册用户,您还可以在“选项”中重新启用媒体查看器:选择“外观”段并选中“文件”下的该选项:'[ ] 启用媒体文件查看器’,然后点击保存。以后您的账户登录到该站点时图像会再次在媒体查看器中打开。

我如何不启用媒体查看器就查看图片?

If you have turned off this feature but wish to view an image in Media Viewer without re-enabling the tool permanently, visit its file description page. Then click on the "Open in Media Viewer" button below that image: this will open it in Media Viewer, but only for that image at that time.

Note that you can sometimes open an image in Media Viewer without enabling that feature by clicking on a link that includes the Media Viewer parameters at the end of the URL (e.g.: '#mediaviewer/File:foo.jpg').

我如何关闭媒体查看器?

要关闭媒体查看器有多种方法:

  • 点击媒体查看器面板右上角的‘X’按钮(请参阅右边的缩略图)
  • 按下键盘的‘Esc’ 键

一些情况下,您还可以点击浏览器中的‘后退’按钮返回到链接媒体查看器中图像的页面。

我如何查看更多信息?

查看图像时,媒体查看器会在屏幕底部显示它的基本信息,包括文件名、作者或来源及许可信息。

Styling of the caption may be limited. The current markup is currently allowed: a, span, i, b, sup, sub.

往下滚动到'元数据面板'可以查看更多信息,包括图像说明、文件保存位置、上传者、创建或上传时间等。(您还可以按下键盘中的上下方向键看到该面板。)

如果您还要看更详细的信息,请点击到维基共享资源或其他文件库的链接来查看或编辑该文件说明页。

我如何通过一组图片浏览?

要浏览某个集合中所有图像,您可以使用下一个和前一个方向按钮,它们分别在媒体查看器中显示左边和右边的图像(请参阅右边的缩略图)。

A collection can include all the images in an article, a gallery or a category page. You can also use the left and right arrow keys on your keyboard for this feature.

我如何放大一张图片?

要放大一张图片,只要单击它即可。(注意:当您的鼠标悬停到图片时,鼠标指针会变成一个放大镜的图标。)

This will open the original image in its largest size, on Wikimedia Commons or the file repository site where it was first uploaded.

You can then use your browser zoom feature to examine details of the image, or right-click it to use this file in a variety of ways. In this view, the Media Viewer controls disappear completely, so you can interact the image directly.

如果要再次通过媒体查看器查看该图片,只要使用您浏览器的“返回”按钮即可。

如何全屏查看图像?

要以全屏模式查看图像,请点击媒体查看器面板右上角的全屏按钮(该图标带有两个反向箭头——请参阅右边的图标)。

这样会在整个屏幕中显示大图,而不仅是浏览器窗口。该全屏视图极其整洁,所以您的注意力可以不受干扰的完全放在图像上。这种模式中,您只会看到控制按钮、文件名及悬停在图像时才显示的作者、来源和许可信息。

要退出全屏模式,您可以点击相同按钮返回灯箱视图。(要退出媒体查看器,点击最关闭按钮 'X' 或按键盘的 'Esc' 键。)

我如何使用不同尺寸查看图片?

To view images in different sizes, click on the ‘Download’ button (the down arrow icon at the lower right corner of the screen). This opens the ‘Download' panel, with the original image size pre-selected.

To pick a different size, click the down arrow in the green Download button, and select the size that best fits your needs (e.g. Original, Small, Medium or Large).

Then click on 'View in browser' below the green button to open the file at that size, in a separate tab.

我如何下载图像?

要下载图像,点击“使用此图像”按钮(屏幕右下角有个弯箭头图标),然后点击“下载”。这将让您浏览器触发下载行为,从而弹出下载器(例如迅雷)。有些浏览器也在鼠标停在图片时额外出现下载按钮。

To download an image in a different size, click the down arrow in the green Download button, where you can pick the size that best fits your needs (e.g. Original, Small, Medium or Large). Then click the green button again to download that image size. You can also preview any of these sizes, before you download: click on 'View in browser' below the green button to open the file at the selected size.

请在下载使用前检查文件的许可条款,确保允许该用途。 同时请根据这些条款的要求包括到所有必须的贡献者和链接:这些贡献者包含在内嵌面板中,您可从那里复制并用于别处。 点击标签以获取完整许可,您可以复制和粘贴纯文本或HTML。

如何分享图像?

要分享媒体查看器中的图像,请点击'分享/使用该文件'按钮(屏幕右下部的弯曲箭头图标)。 此时会显示到所选图像的链接,您可以将其复制并粘贴到其他地方。 注意,目前点击该链接会在该文件存放页面的媒体查看器中打开图像(如维基共享资源),而不是在您看到图像的条目中。

如何把图像嵌入到其他页面?

要使用其他 wiki 页或其他站点上的图像,请点击'使用该文件'按钮(屏幕右下部的弯曲箭头图标),接着点击'嵌入'选项卡。此时会显示用以嵌入所选图像的代码,您可以复制并粘贴到其他页面的代码中。

要添加图像到 wiki 页面,请选择‘WikiText’。要添加到标准网页,请选择‘HTML’。必要的属性和许可信息包含在 HTML 代码及相应链接中。

大小选择工具可让您选取适合页面的最佳大小。注意,您还可以改变代码中图像的高度和宽度。

请在嵌入图像前检查文件的许可条款,确保允许该用途。同时,请根据这些条款的说明包含所有必须的贡献者和链接。

我如何判断图像能否重新使用?

您在媒体查看器中看到的许多图像都可自由使用,只要提供归属权同时遵从许可条款。 For example, some images are licensed under Creative Commons terms (e.g. CC BY or CC BY-SA). Others are public domain or available under some other license.

要弄明白这些许可条款的含义,只需点击图像标题旁的许可链接。这时一般会在元数据面板中显示该许可的详细内容,不过有时会进入文件存放站点的描述页,这里可以进一步了解。 In some cases, it will show you the license details on the Creative Commons site. In other cases, it will show the license in the metadata panel -- or it will go to the file description page on the repository site, where you can learn more.

如果某图像使用特别的许可条款或要求特别荣誉或权限,则在图像标题旁会出现‘查看条款’链接。点击后会显示许可的细节和作者或来源的特殊要求。

我如何编辑、调整或讨论某个图像?

要编辑、调整或讨论图像,您需要到其存放处(如维基共享资源)的文件描述页面。

您可以通过以下按钮之一进行此操作:

  • 若已登录,则点击‘文件页’图标(屏幕右边靠下的特殊图标,通常在维基共享资源)。
  • 若未登录,请点击‘更多细节’(或‘了解更多’)链接(图像下元数据面板中的右列)。

A site icon in the 'More details' button shows whether it links to Wikimedia Commons or another file repository (indicated with a 'W' logo).

我如何从wiki文本连接至一个图片?

要链接至一张图片以通过媒体查看器打开,您可以使用如下wiki文本代码:

[{{fullurl:PAGE NAME}}#mediaviewer/{{urlencode:File:FILE NAME|wiki}} 链接文本]

Clicking on this link will open the linked image in Media Viewer, as an overlay covering the linked page.

如何为无关图像禁用媒体查看器?

有时媒体查看器显示图像会让用户感到困扰,包括与页面主题无关的元数据(如小图标、标记)。当这些不是条目内容的一部分时,我们希望编者禁止这些图像显示在媒体查看器中。

  • 注意,该方法仅应用于标记不是条目内容一部分的那些元素:注释、管理目标、导航链接和媒体控制等。此时我们不推荐使用 link=| 来禁用图像的媒体查看器,因为这会阻止用户访问该图像重要的归属和许可信息。将来还可以通过其他方法让图像不显示在媒体查看器中。

Please only use this method to mark elements in articles that are considered not to be part of the proper content of the article: annotations, maintenance templates, navigation links, media controls, etc. Media Viewer is not the only tool that ignores content marked as metadata.

  • For other images that are not 'metadata' files, but do not display properly in Media Viewer (e.g. maps or diagrams with unreadable labels, small icons, flags): you can disable Media Viewer for these files by adding this "noviewer" class inside their image tag:
    [[File:Foo.jpg|class=noviewer]]
  • For images that are used to link to another document, using the |link= image parameter, you don't need to do anything; Media Viewer will ignore such images automatically.

媒体查看器支持哪些平台?

媒体查看器可工作于个人电脑的大多数现代浏览器中:Chrome、Firefox 和 Safari 的最新稳定版,和 IE9 及更高版本。 At this time, Media Viewer does not work on IE8 and below, and it is disabled for mobile devices (a simple media viewer is now provided for mobile devices, but lacks most of the features of the desktop version). In future releases, we plan to provide a mobile version of Media Viewer, as well as wider browser support on desktop platforms.

媒体查看器支持哪些文件格式?

在该首发版中,它支持广泛的图像文件格式(如 JPEG、GIF、PNG、TIFF 和 SVG),将来会增加对 PDF、音频、视频及其他文件格式的支持。

如何报告技术问题?

我们很欢迎社群反馈的技术问题。如果您遇到了,请点此在Phabricator提交错误报告。

您也可以提交报告至该讨论页,包括您使用的浏览器和操作系统的相关信息和截图。:)

在提交错误前,请确信在bugzilla没有相同问题被报告。如果它已被修复,您也可以在 MediaWiki.org 测试——新功能会在此测试几周后发布。

如何讨论该工具的新功能?

我们期望知道您对媒体查看器的看法并希望您能参与此处讨论

在媒体查看器开发期间全球数以万计的用户帮忙测试。这里是他们热心帮助提升该工具的反馈一览。其中许多建议已经在我们[$url 当前计划周期]中已经实现。

哪里有媒体查看器的技术信息?

关于此工具的更多技术信息,请参阅以下两个位于MediaWiki.org的扩展页面: MultimediaViewer , CommonsMetadata

媒体查看器何时测试和发布的?

Media Viewer was tested extensively for about nine months by tens of thousands of beta users around the world, starting in November 2013, as part of the Beta Features program. This allowed users to enable Media Viewer long before it was released on their sites, by clicking on the small 'Beta' link next to 'Preferences' in their personal menu.

We also conducted rigorous usability studies throughout development, such as this recent usability test -- and ran extensive user surveys with over 18,000 responses in 8 different languages. Additional community suggestions were collected through this widely promoted community consultation on many large wikis around the world, as well as as our regular talk page.

媒体查看器v0.2版已面向全世界的维基人发布,并已部署在很多大wiki中。全域部署应该会在2014年6月中旬完成。注意,如下所述不需要的用户可选择关闭。 Local deployments took place on different sites every week, through the middle of June 2014, when this feature was enabled by default on all wikis hosted by the Wikimedia Foundation. We then asked for more community feedback and did another round of improvements based on new suggestions, as outlined above.

更多信息请参阅此发布计划页面

媒体查看器预计将添加哪些新功能?

目前没有计划为媒体查看器添加的新功能。

在2014年秋季,多媒体开发团队开发了非常多的新改进,基于可用性调查社群反馈

Here are the improvements that were released in November 2014, to make Media Viewer easier to use by readers and casual editors, our primary target users for this tool:

为了准备好下一版,我们期望了解您对这些功能的看法。如果您有提升该工具的建议,请在此讨论页中告知我们