This page is a translated version of the page Help:Merge and the translation is 59% complete.

当同一主题,概念或对象上的两个或更多项目存在于Wikidata中时,会执行合并。合并是一个多步骤过程,首先要求将有关项目的集合数据集中在一个页面中(接收项目),最后将廢棄页面重定向到接收项目。

通过将網站連結陳述移动到一个项目,然后重定向廢棄的項目。使用合并小工具來自动合并會更容易处理。

本指南介绍如何通过激活偏好設定中的合并小工具以及其他一些方式。

如果您对合并条目有疑问,您随时可以到互助客栈页面提出。

检查确认

确认被合并的项是对应着同一个主题、概念或物件。那些项可能存在着细微的差异,而因此需要多个项的存在。

例子

en:tree → de:Baum(德语“树木”)
可以合并? Y
原因:这些条目描述的是同一对象(“树木”),所以应该合并至一个(多语言)项(tree (Q10884))中
en:tree → de:Eichen(德语“行道树”)
可以合并? Y
原因:这些条目描述的对象近似,但是存在些微的差异,所以应继续保持为两个不同的项:tree (Q10884)Quercus (Q12004)
Miller (姓) → Miller (消歧义页)
可以合并? Y
原因:尽管有些消歧义页包括姓,此二者仍为不同概念,因此应继续保持为两个不同的项:Miller (Q1605060)Miller (Q304896)

If you are unsure (for example, due to difficulty translating different languages), or come across items with sitelinks that appear to be inconsistent, it is best to bring up the problem at interwiki conflicts.

自动化合并

 
Enabling the Merge gadget
 
使用合并小工具,第一步
 
使用合并小工具,第二步

有两种方法实现自动化合并:Merge小工具或“合并两项”特殊页面。

Please bear in mind, that while automated merges will be terminated if an interwiki conflict is found, you should still always check that the items are the same since the tools simply perform merging that you select to be done. Special:MergeItems can resolve conflicts that are merely due to redirects.

合并小工具

Merge.js是由Ebrahim开发的帮助移动站点链接、标签、声明、别称、以及报表引用的小工具

使用后,它将以自动生成的原因自动提请删除或者直接删除项(仅限管理员)。‎要启用此功能,请打开首选项、‎‎‎‎选择小工具‎‎‎‎,选中“合并”框,然后点击“保存”按钮。要使用它,请打开收件人或过时的项目,转到‎‎顶部‎‎栏‎‎中的‎‎下拉菜单‎‎ ‎‎ ‎‎ ‎‎(‎‎在‎‎默认‎‎皮肤中,‎‎它位于‎‎“搜索”的‎‎左侧‎‎),选择“合并...”,然后在合并向导中输入其他项目的ID。完成后单击“合并”。‎

Special:MergeItems

Special:MergeItems can be used to trigger a merge of two items where all labels, descriptions, aliases, sitelinks and statements are moved. Enter the Q#### (not item label) in the fields specifying which is the recipient item ("The ID to merge to") and which is the obsolete item ("The ID to merge from").

若你在使用特殊页面时需要帮助,请使用Wikidata:Project chat

Special:MergeLexemes

Special:MergeLexemes can be used to trigger a merge of two lexemes if (only if) the lemma, the language and the lexical category are identical. If one of them isn't identical, it may be that this can be corrected first.

Enter the L#### in the fields specifying which is the recipient lexeme ("The ID to merge to") and which is the obsolete lexeme ("The id to merge from").

QuickStatements

The QuickStatements 2 (Q29032512) tool, and its predecessor, QuickStatements (Q20084080) allow users to merge a series of items. See the instructions.

标记为重复

If two items can't be merged because of two different articles at a Wikipedia, these can be marked for merging with markasduplicate.js.

The script also adds instance of (P31) = Wikimedia duplicated page (Q17362920) to the redundant item.

手动合并:逐步解释

Items to be merged with sitelink conflicts

If there is a sitelink conflict, items can't be merged as only one link per site is possible.

Until the two pages at the site (e.g. articles at English language Wikipedia) are merged, two items have to be kept at Wikidata.

  1. One of the two items should be marked with instance of (P31)Wikimedia duplicated page (Q17362920) and qualifier of (P642)the other (main) item. Usually the more recent item should be marked. Wikidata:Database reports/Identified duplicates lists all such items.
  2. Statements, other sitelinks and labels/descriptions can be moved from the redundant item to the main item.
  3. Once the articles at the site are merged, the two items can be merged and instance of (P31)Wikimedia duplicated page (Q17362920) deleted.

Note the tool Mark as duplicate above.

If the sitelink conflict is due to an article and a redirect pointing to the same article, the redirect can be removed and the items merged.

Dealing with items where both have a Wikipedia link to the same Wikipedia

A Wikidata item can only have one Wikipedia link so it's not possible to re-add both links after merging. If one link is to a redirect and the other is to a proper Wikipedia article, then remove the link to the redirect and merge. If, however, both links are to proper Wikipedia articles, you should not leave any of those Wikipedia articles without a linked Wikidata item. Sometimes that means moving the Wikipedia link to a more appropriate item. Other times it means asking in Wikipedia for the articles to be merged when they are duplicates. If Wikipedia doesn't merge their articles, we don't merge the items here on Wikidata.

我在哪里可以找到合并的项?

现在你已知道如何合并,你能在维基数据上有可能的重复被创立/列出的各个地方使用你的新技能。这些地方包括:

维基数据游戏
制作成小游戏界面的维基媒体工具,非常方便用户判断两项是否应该合并
User:Ivan A. Krestinin/To merge
基于相似的页面标题字符串的合并候选列表
Projectmerge
基于重复网站链接名的合并候选列表
CommonsmergeUniquemerge
基于两项相同的属性值的合并候选列表

Bene's Lonely Items tool

finds items containing only one sitelink to a Wikimedia site (which therefore may need to be merged with other items linked to different Wikimedia language versions of the same page)
不在其他语言
依指定分类列出链入维基百科A语言版条目但未链入维基百科B语言版的项

Constraint violations

summary of constraint violations for properties; in particular, "Unique value" violations may indicate a duplication

Wikidata:True duplicates

list of items having at least one sitelink which is due to a bug used in another item
Wikidata:Database reports/identical birth and death dates:基于date of birth (P569)date of death (P570)

Wikidata:Database reports/Identified duplicates

items with Wikimedia duplicated page (Q17362920) waiting for Wikipedia to merge

Wikidata:VIAF/cluster/linking to multiple Wikidata items

items which, according to VIAF (see VIAF ID (P214)), are related to the same person - VIAF may sometimes be wrong

Other pages and projects in the Category:Merge candidates

请随意添加更多有用页面,或删除不再活跃的页面!

取消合并

取消错误合并只需几步:

  1. Go to the history page of the item onto which the merge has been done and restore the revision just before the merge.
  2. Go to the history page of the merged item and restore the revision just before the merge.

The order is important (especially if the item has sitelinks) because articles can be linked to at most one item. So they should first be deleted on the item which got all the linked before they could be restored on the other one.

Some bots (KrBot for example) are known to replace the redirected items in statements with their target redirects a certain period of time (24 hours for KrBot) after the merge. The next step is to ping bot owners (like Ivan A. Krestinin) so they can run the code to cancel the merge if that period of time passed and some bot did the substitution, so that the statements can be restored with the right item. KrBot creates edit groups when fixing redirects, which may be reverted en masse using the EditGroups tool.

On a closely related topic, the help page Help:Split an item will help you if the item has not been merged but if statements on two topics are mixed-up on a unique item for some reason. It has guidelines on how to divide the statements on two items without re-entering the information by hand.

参见

相关的帮助页面参见:

额外的信息和指引参见: