Reading/Web/Projects/Mobile Page Issues/zh

显示有关页面内容的消息的模板不会显示在移动维基媒体网站上. 这使读者不知道他们正在阅读的页面的可靠性. 从用户隐藏此信息可能会有问题. 在隐藏重要问题（例如考虑删除的恶作剧文章或文章）的情况下尤其如此.

读者网站团队希望改善移动网站上页面问题的处理方式. 目标是包括对问题本身的性质以及问题严重性的描述. 这些更改将帮助用户更好地判断他们正在阅读的页面的可靠性. 展示这些问题也可能使读者对维基媒体项目的工作方式感到好奇. 这可能会增加他们作为贡献者参与的可能性.

以下是这种改进看起来如何的一些例子. 欢迎反馈

介绍
当文章出现问题时，它们通常会在文章上方放置一个大的彩色框，通知读者和编辑手头的问题. 这些通知实际上是插入到文章内容中的特殊模板. 文章中的每个通知都有自己的模板，每个模板都使用名为 的元模板 （文章消息框）. Ambox使用名为Module:Message box的Lua模块. 其他MediaWiki名称空间（如分类和讨论页）也具有特定于其名称空间的通知. 这些通知已经存在了十多年，并且围绕它们的使用有许多惯例. 贡献者保留这些通知. 每个语言社区都可以自由地采用或发明自己的通知，特定于他们项目的需求. 例如，维基共享资源有许多许可通知，而维基词典使用完全不同的通知.

这些通知的范围和多样性使其难以标准化. 一个发生在2007年的英语维基百科上.

这种更新发生在现代移动网络甚至存在之前. 尽管维基媒体基金会后来努力将这些通知带入移动网络，但它们仍然不是非常适合移动设备. 作为起点，此提案将重点关注改进基于 的文章命名空间中的注意事项模板.

目前的移动版的“治疗方法”
在当前的移动维基媒体网站上，我们不会呈现整个 模板. 相反，我们会在文章标题下方显示一个带有“页面问题”文本的小灰色链接. 单击时，将显示包含问题列表的叠加层. 某些通知具有模板的“紧凑”版本的文本. 可用时，仅显示紧凑版本的文本.

限制
当前实现依赖于修改 模板生成的HTML. 对模板HTML的轻微更改可能会破坏移动设备上的此功能. 当前的实现不适用于所有wiki. 模板因语言而异. 例如，法语维基百科在2016年更新了他们的消息框. 他们现在使用与英语维基百科不同的模板. 这是他们的维护模块列表. 由于此更改，移动维基百科上不会显示法语警报.

有2016年英语维基百科的提案. 该提案认为，小的“页面问题”链接并未传达某些通知的重要性.

英语维基百科互助客栈的请求
2016年9月，社群批准在移动网站上公开页面问题的请求. 有明确的共识，一些警告模板应该在移动设备上可见.

""如果一篇文章是针对页面存废讨论并被标记为医疗资源不足的可能恶作剧，任何在计算机上访问该文章的读者都会被页面顶部的三个大红色和橙色框打开，其中一个带有警示停止标志. 如果一个读者在他们的手机上访问相同的恶作剧医疗文章……他们只是在文章标题下得到两个微小的灰色词页面问题……""

目的
该项目的目标是提高移动网络文章中对特定问题的认识. 我们将通过更改页面问题的视觉样式来实现此目的.

该团队将与社区合作，为样式模板提供指导. 这项工作将导致移动网站上问题的最佳格式化，而无需更改桌面上的格式.

该目标映射到读者年度计划的计划2，目标1. 使读者能够在阅读体验中评估文章的质量和可靠性.

关于严重性和简短描述的说明
我们只会显示包含“type”参数的模板的问题严重性. 关于类型参数的更多信息可以在每个项目和wiki的ambox模板页面上看到（这里是中文维基百科的页面）

同样，只有在模板本身提供简短描述时，才能使用简短描述.

工作流

 * 1) 用户访问包含页面问题的页面.
 * 2) 用户与“页面问题”元素交互.
 * 3) 将向用户发送有关页面问题的详细信息.

General
Mobile page issues will display the following:
 * 问题说明
 * 将在可能的情况下使用该问题的简短描述.
 * 如果没有简短说明，我们将显示长格式问题说明的开头.
 * 根据空间限制，短期和长期描述的问题长度将受到限制.
 * 问题严重性
 * 严重性将根据ambox类型设置如下：
 * 严重：type=speedy、type=delete
 * 中等：type=content
 * 低：type=style
 * 提醒：type=notice、type=move、type=protection
 * 所有其他模板将以正常严重性显示.
 * 每个严重性级别都将在页面中具有自定义外观和位置.
 * 如果问题包含指向其他页面的链接，则链接将被删除. 链接将显示在页面问题详细信息模式上.

单一问题

 * 对于具有单个问题的页面，严重性将从上面定义的模板派生.
 * 一个例子. 如果模板 的严重性级别为中，则文章将在中级显示单页问题. （example）.

Multiple issues

 * 问题严重性级别将来自各个问题的严重性级别.
 * 如果文章包含模板 ，则文章的问题级别将是可用的最高问题级别.
 * 例如，如果模板 的级别为高，则文章将出现高级别问题. （示例）.
 * 每个多个问题级别将在页面内获得唯一的副本，外观和位置.

已知问题
此项目的初始实施不会在各个部分中显示问题. 一旦完成初步更改，我们将回到此处.

页面问题模式的初始更新
首先，读者团队对页面问题模式进行了以下更改. 此更改发生在2018年3月下旬. 此更改的目标是公开有关页面问题本身的更多详细信息. 它还向读者提供有关如何解决这些问题的信息.

功能预览
读者团队希望了解提高移动网站上页面问题的认知度和突出性的效果，特别是读者对页面的感知质量和可靠性. 我们的目标是帮助读者更好地衡量他们正在阅读的文章的可靠性和质量. 我们的假设是让他们更多地了解页面问题将有助于实现这一目标.

我们想回答以下问题：

页面问题通知的新处理是否会提高读者对页面问题的认识？ '''How do users feel about being informed of page issues? How does awareness of page issues affect their perception of Wikipedia?''' Additional research questions:
 * 定性研究：
 * 读者是否注意到新的页面问题处理比目前的处理更多？
 * 读者是否注意到新版本的B版（标题）比版本A（没有标题）更多？
 * 读者是否注意到位于引导段落之后的页面问题通知比它们位于页面顶部更多？
 * 定量研究：
 * 基于新问题处理（从文章页面到问题模式）的点击率是否有所增加？
 * 问题的严重性与点击率之间是否存在相关性？
 * Qualitative research:
 * RQ1 - Do page issues make sense to readers?
 * RQ2 - Do readers care about page issues? Do they find them useful? Important?
 * RQ3 - Are readers familiar with page issues already? Have they seen them on other articles?
 * RQ4 - Do readers understand how page issues work? In other words, how they appear on a page?
 * RQ5 - Does becoming aware of page issues change readers’ perception of Wikipedia?
 * How do readers form opinions about the quality and reliability of Wikipedia pages in general?
 * Do readers care more about issues considered by Wikipedia to be of higher severity than issues considered to be of lower severity?
 * What feedback loops (if any) get activated as a result of increased awareness of page issues? For example, do mobile edits increase with page issues as referrer? Does the new issue treatment changes affect issue removal rates?

Technical challenges
The technical challenges of improving Ambox templates have a few areas of concern. To summarize, templates are inconsistent.

The output of is inconsistent in many ways. There is no consistent machine-readable way of extracting the template content.
 * across languages
 * across different types of templates
 * location inside the article

Areas of concern

 * Text length
 * The length of many Ambox messages are very long and not suitable for mobile devices.
 * Desktop specific HTML
 * Templates using make heavy use of tables for layout, which doesn't work on mobile.
 * Language specific HTML
 * The HTML output is different across languages, making it nearly impossible to consistently extract the message content and repurpose it for mobile.

Proposed technical solutions
Use the TemplateStyles extension to create mobile friendly template CSS

To be discussed for future iteration.

Use Page Content Service to display page issues

https://phabricator.wikimedia.org/T172002

Modify MobileFrontend/Minerva CSS to accomodate existing template markup

This solution would work within the existing template structure and probably only on English Wikipedia.

<Many templates contain a CSS class that marks text as. Using CSS, we could hide this extra text and only present users with the "summary" text. This is the same text that is currently presented in the page issues overlay. Many templates, notably deletion templates, do not have this CSS class. The issue of text length would have to be addressed on a per template basis.

Here is a demo of what modifying the CSS might look like.

Add structured HTML attributes to Ambox templates

This solution requires modifying templates.

As mentioned before, the HTML produced by the templates varies. It can change at any time and in any language. We shouldn't hinder these changes, but make sure that contributors can adapt them to new contexts, such as mobile.

Adding semantic attributes to the HTML could provide us with the necessary "hooks" to extract the Ambox content. We could then present it in an appropriate way on mobile. We could provide a standard set of attributes that template editors can insert into their templates. This would work regardless of the template used or language. These attributes could be "machine readable" which means they can be parsed or extracted. For example like the Page Content Service for consumption by the mobile apps. These semantic attributes would be invisible to readers. They would not effect the appearance of existing templates.

Semantic HTML attributes fall into the category of "microformats". The idea is to extend HTML with the ability to express very specific types of data, in a way that is machine readable. We could extend the Ambox HTML with attributes to identify the templates as "message boxes" with various properties. These properties could include things like priority, date, and actionable steps. This information could then be parsed. Consumers could include the mobile site and apps. Also presented to end-users in a mobile friendly fashion.

We could create our own standard, but there already exists a W3C recommended specification called RDFa. RDFa standardizes on how to use attributes to add rich meta-data to HTML.

RDFa defines rich data structures as "vocabularies" or sets of properties that define an data structure. We can define a custom vocabulary that describes the properties of a "message box", and use those properties in the HTML attributes.

As an example, RDFa uses HTML attributes such as,  ,  , and. The following example shows how to add them to templates.

Inventory of mobile-friendly page issues
The changes proposed above will improve most page issue templates. Two kinds of templates will receive specialized treatment. One are templates with defined short descriptions (those that contain text marked as "hide when compact"). The other kind are templates with defined ambox type. These templates will display the shorter more mobile-friendly form of the text. They will include visual indicators for the severity of the issue.

Hide when compact
To determine coverage for these changes we performed an inventory of templates. We looked at templates that contain text marked "hide when compact". The following were our results. Further documented in T189132.

Method

An extensive inventory of "page issue" templates was taken across a variety of languages using the MediaWiki API and this script. The script parses templates that belong to a specific category. For example, on English Wikipedia it parses all the templates that are members of the category Category:Article message templates. The templates are then rendered in an HTML table with CSS added to see which can be made compact or not. A sum of the compact templates is also generated.

Disclaimer

This method works for languages that actually have a category for all "page issues". Not all languages do, some only have more specific categories. Only the top-ten Wikipedias were used in this report.