Help:差异
外观
维基百科使用手册 |
在维基百科中可以比较一篇文章的两个不同修订版本之间的差异。 它可以在页面历史中点击“当前”或“先前”后看到或者在最近更改中使用。此外,在编辑冲突时也会出现。
在页面的两侧会显示两个版本的内容。老版本在左侧以黄色显示,而新版本在右侧以绿色显示。 被删除的内容会在老版本中以红色显示。每行上会显示出两个版本之间的差异。另外,框架上方的“第X行”可以帮助粗略地定位修订在全部代码中的位置。
在两个不同版本的上部会显示修订的时间,以及到该用户页以及用户对话页的链接。而且还有一个到用户贡献页的链接。对于管理员,在新版本一侧会显示一个回退链接,可以直接恢复到早期的版本。
另外,也会在用户名的下面显示两个版本的编辑摘要。
范例
以下例子展示了差异页顶部所显示的信息(部分链接被替换成相关帮助页面)。旧版本在左侧,新版本在右侧。
<blockq
在2003年8月3日 (日) 22:32所做的修订版本 (编辑) Tim Starling (讨论 | 贡献) |
在2003年8月3日 (日) 00:10所做的修订版本 (编辑) (撤销) | ||
Line 8: | Line 8: | ||
For sysops, a [[en:Wikipedia:revert|rollback]] button is shown allowing them to revert from the new version to the old one. | For sysops, a [[en:Wikipedia:revert|rollback]] button is shown allowing them to revert from the new version to the old one. | ||
- | This is only shown when viewing the diff between the current version and the one immediately preceding it. | + | This is only shown when viewing the diff between the recent version of a page and the last version by an author other than the one of the most current version. |
This example shows the top of the diff page, with links the described above. | This example shows the top of the diff page, with links the described above. | ||
Line 25: | Line 25: | ||
</table> | </table> | ||
+ | [[MediaWiki User's Guide]] | ||
+ |
闊度
差異表格之下會顯示被比較版本中最近的完整版本,可以在参数设置中设置显示与否。