Help:站点链接

From Wikidata
Jump to: navigation, search
This page is a translated version of the page Help:Sitelinks and the translation is 68% complete.

Outdated translations are marked like this.
Other languages:
العربية • ‎বাংলা • ‎català • ‎čeština • ‎dansk • ‎Deutsch • ‎Deutsch (Sie-Form)‎ • ‎dolnoserbski • ‎Ελληνικά • ‎English • ‎Esperanto • ‎español • ‎فارسی • ‎suomi • ‎føroyskt • ‎français • ‎Frysk • ‎ગુજરાતી • ‎हिन्दी • ‎hornjoserbsce • ‎Հայերեն • ‎Bahasa Indonesia • ‎italiano • ‎日本語 • ‎ქართული • ‎Ripoarisch • ‎Kurdî • ‎latviešu • ‎македонски • ‎മലയാളം • ‎norsk bokmål • ‎नेपाली • ‎Nederlands • ‎occitan • ‎polski • ‎português • ‎português do Brasil • ‎русский • ‎Scots • ‎српски / srpski • ‎svenska • ‎தமிழ் • ‎తెలుగు • ‎Türkçe • ‎українська • ‎中文


维基数据截图 - 添加新网站链接

站点连接(也称跨Wiki连接)是包含站点和标题的特殊连接,维基数据里每一项独立的站点连接都对应着一个诸如维基百科、维基文库和维基导游等其它维基媒体站点的页面。

语言独立原则[edit]

维基数据出现前:各语言间的跨语言链接
维基数据出现后:从一个中心点连接所有语言

用途[edit]

用法[edit]

一般来说,每一个项都应该有在一个在维基百科、维基导游、维基文库、维基语录和维基共享资源,等维基媒体项目上的页面(可是,这规定也有例外)。有着至少一个站点连接可确保项可以符合维基数据的关注度要求。再者,站点连接更能够确保项代表的只有一个概念;每当一个维基媒体页面能够与多个维基数据上的项连接起来,这些项应该被合并

Sitelinks serve as a replacement for a previous system of interlanguage links that was used to link from a page in one language on a Wikimedia site to an equivalent page in another language, for example the English Wikipedia page on Paris to the French Wikipedia page on Paris. These interlanguage links used to be stored locally on each Wikimedia site and maintained separately in each language so that if the name of a page on one Wikimedia site changed, then the other Wikimedia sites in each language would need to have their links updated to reflect the changes. Sitelinks thereby improve upon this system by having everything centralized in Wikidata.

Linking to Wikimedia site pages[edit]

维基数据当前支持维基百科、维基语录、维基文库、维基导游和维基共享资源的站点连接(其他维基媒体项目将逐步加入)。中文维基百科的站点id是“zhwiki”、中文维基语录的是“zhwikiquote”以及共享资源的是“commonswiki”。

Sitelinks are for linking items to standalone pages that already exist on Wikimedia sites. Wikidata sitelinks do not support anchors (links to a specific section of a page). Anchors are preceded by the "#" character on Wikimedia sites.

For example, a sitelink for the item for The Beatles (Q1299) should only link to the Wikipedia page on The Beatles (http://en.wikipedia.org/wiki/The_Beatles) — and not any sections of that page, such as http://en.wikipedia.org/wiki/The_Beatles#Discography. Moreover, it's not possible for any item on Wikidata to link to just the Discography section of The Beatles page because this would require an anchor link. However, it would be possible to link a different item, The Beatles discography (Q829965) to a different Wikipedia page (i.e. one that is completely devoted to The Beatles discography, such as http://en.wikipedia.org/wiki/The_Beatles_discography).

It is, however, possible to maintain sitelinks for anchors outside of Wikidata and locally on Wikimedia sites. Please see Interlanguage links with anchors section for more on this.

Note that you can only add a particular sitelink to one item on Wikidata. You will see an error message when attempting to add a new sitelink if that link has already been added to another item page. If you receive an error message but believe the item you are editing is the most appropriate one for a sitelink, you may need to merge two items. Please consult Help:Merge or visit Wikidata:Interwiki conflicts to report a conflict and ask for others to look at the situation. Another solution can be using Interlanguage links with anchors-for example the English Wikipedia redirect "Planform (aeronautics)" (redirecting to English Wikipedia page "Wing configuration"). The page "Wing configuration" already has a Wikidata item page wing configuration (Q2992500), so using the redirect as a sitelink for no label (Q2643782) is essentialy linking to English Wikipedia page "Wing configuration" from two item pages, which is not allowed. This can be solved as described in the relevant section.

语言[edit]

超过200种语言的站点链接可被加入到维基媒体基金会网站。加入站点链接至一项时,您需要输入维基媒体基金会站点的语言代码和站点代码,然后输入标题。您只可以在对应语言版本存在站点并且页面存在时加入。

徽章

徽章用于标记储存在维基数据的优良条目和特色条目右侧以及这些条目的站点连接前方。

名字空间[edit]

维基数据社群在一次评论请求中认可除“用户”外所有维基媒体项目名字空间的页面可被维基数据收录。这意味着除维基百科条目、维基文库文章和维基共享资源文件的站点链接外,分类、模板和帮助页面的站点链接也可被维基数据收录。例如Wikimedia category (Q4167836),它涉及了名字空间,连接至w:zh:Wikipedia:分类q:zh:Help:分类voy:zh:Wikivoyage:分类

Note that only when adding a sitelink for a page that is outside of a Wikimedia site's main namespace you need to keep the namespace in the page title.

例如:

维基数据项:Wikimedia category (Q4167836)
作为站点连接加入的维基语录页面:http://zh.wikiquote.org/wiki/Help:分类
作为“语言代码”加入的维基媒体站点:中文 zhwikiquote
作为“连接页面”加入的页面标题:Help:分类

维基数据项:Joan of Arc (Q7226)
作为站点连接加入的维基语录页面: http://zh.wikiquote.org/wiki/%E8%81%96%E5%A5%B3%E8%B2%9E%E5%BE%B7
作为"语言代码"加入的维基媒体站点:中文 zhwikiquote
作为"连接页面"加入的页面标题:聖女貞德

使用其他维基媒体站点的站点链接的指引[edit]

管理维基数据连接[edit]

中文维基百科的编辑者创建了本页面的本地化版本。许多信息对于其他维基媒体项目而言同样有用。

隐藏维基数据连接[edit]

An individual page on a Wikimedia site can completely suppress Wikidata sitelinks by using the {{noexternallanglinks}} magic word. The magic word also supports suppression of sitelinks from only specific languages, for example, "{{noexternallanglinks:es|fr|it}}" would suppress only the Spanish, French, and Italian links. Neither of these uses prevents Wikidata from listing all sitelinks of an item.

与锚点相关的过渡环节[edit]

“语言”(维基数据站点连接)在维基媒体页面上重点圈出的截图

In the previous system of interlanguage links, an anchor link was used when a Wikimedia site did not have an exact match in another language for a corresponding page, but did have a page that dealt in part with the same subject. As discussed above, Wikidata does not support anchors as sitelinks, so interlanguage links with anchors must be retained locally on the Wikimedia sites (not Wikidata) if desired.

An example of this in practice comes from the English Wikipedia page on "survival function". An equivalent page on "survival function" also exists on the Spanish Wikipedia and Sudanese Wikipedia, but there is no equivalent page for it on the French Wikipedia (instead, there is only a section of a page, Analyse de survie#Fonction de survie, that covers the concept). While the "Languages" section on the left side menu of the survival function page on English Wikipedia displays links for all languages, only the Spanish and Sudanese ones are provided by Wikidata via the item page for survival function (Q2915096). Since the link for French Wikipedia is an anchor, it is instead listed locally on the English Wikipedia in the wikitext itself.

讨论页[edit]

当要将维基数据讨论页连接到其它维基媒体计划时,就应当在Wiki标记语言里使用前置码。例如,你想要将某一讨论页连接到mediawiki.org上关于JSON格式的文档,你就能这样写 [[mediawikiwiki:Wikibase/DataModel/JSON]] 然后呈现的出来的将会是 mediawikiwiki:Wikibase/DataModel/JSON

可以使用的前置码一览表可在Special:Interwiki里找到。

参见[edit]

相关的帮助页面参见:

额外的信息和指引参见: