Wikipedia:維基數據

(由Wikipedia:Wikidata跳轉過嚟)

維基數據英文Wikidata)係一個開放而互相幫手嘅數據庫,亦係一個維基計劃,旨在將維基百科而今嘅數據項目(Infobox 系列模,跨語言鏈接,地方、人數據咁),擺入俾電腦認得嘅數據庫結構之中,以便為人工智能提供真嘅參考數據,以至利用呢啲數據嚟搞維基百科嘅文章自動創造同維修。

截至2013年2月,維基數據計劃正將獨立文章嘅跨語言連結搬到中央數據庫,方便處理。

編輯
 
Phase 1 of Wikidata: Links to all languages from one central point
 
Before Wikidata: Interlanguage links between all languages

Each Wikipedia page with an entry in Wikidata uses the language links stored there to populate the language links that show in the left column. Traditional interwiki links in a page's wiki-text are still recognized, and simply override the information for that language (if any) from Wikidata.

If the article is linked to from Wikidata, then it will display all links listed there, in addition to any links entered in the article wiki-text. In the case of a conflict, or intentional difference, between a local link and a Wikidata link for a given language, the local link will be displayed; the Wikidata links for all other languages will still display.

If the article is not yet linked to from Wikidata, then it will display whatever links are in the article wiki-text, as before. In some cases, there may be a Wikidata item that corresponds to the article, but the English Wikipedia article has not yet been associated with it. In the course of routine maintenance at Wikidata, these instances will be fixed.

編輯

Wikipedia:Wikidata/Wikidatans

New articles

編輯
  • Q1. I've just created an article on XEN; I know there is already an article on the Swahili Wikipedia on the same subject called XSW. How do I create an Interwiki link?
    Go to XSW. On the left, there should be a list of interwiki links followed by a pen icon. Click on pen, this will take you to the Wikidata page (item) for XSW. Go to the bottom of the item, click on "add", fill in in the opened cases the language code (for example, "en" for English) and the name of the article you created (XEN). Then click on "save". You are done.
    If the pen does not show up, go to Wikidata.
    In the main panel (in Vector interface, on the left) locate "Item by title".
    Click on "Item by title".
    On the resulting page, fill in the language code (for example, "sw" for Swahili) and the name of the page on the corresponding Wikipedia (XSW). Then click on "Search".
    If the item already exists, go to the bottom of the item, click on "add", fill in in the opened cases the language code (en for English) and the name of the article you created (XEN). Then click on "save". You are done.
    If the item does not exist, create it by clicking on "create the item", filling in its name (XEN) and (preferably) a description of the item. Then add to the item the interlanguage links, as described above.
    If you are planning to add interlanguage links often, you may want to switch on the gadget "slurpInterwiki", available in your Wikidata gadgets. Once the gadget is on, and you are on the item page, click on "Import interwiki" on the menu on the left.
    At least for some time, the old way of adding interlanguage links (just adding them to the Wikipedia pages) will still work, but most likely fewer bots will be checking new articles, and the time until the links propagate to other articles will be longer.
編輯
 
The link to edit the Wikidata page, in grey, on the Vector skin.
  • Q3. I've just noticed that article ZEN is linked to the wrong article XSW on the German|French|Swahili Wikipedia. How do I correct this?
    In the interwiki links section of the article ZEN click on the pen below the interwiki links. This will take you to the Wikidata item for ZEN. Check that it indeed is the Swahili article, not the English one, that is wrong.
    On the "List of pages linked to this item" section of the item on Wikidata, find the Swahili entry for XSW.
    Click on the "edit" button next to the entry and click "remove". (Note: JavaScript must be enabled.)
    Repeat this with other erroneous entries.
    If the pen does not show up on the English Wikipedia, the item has not yet been added to Wikidata. Then act as in Q1 above.
    If the Swahili entry on Wikidata is correct, then the incorrect link is probably in the English article. Edit the article to remove it and the Wikidata entry will be used.

More than one interwiki family

編輯
  • Q4. I've just noticed that the articles en:YEN, de:YDE and fr:YFR are linked together, and that cs:YCS and hu:YHU are linked together. Actually all five articles are on the same subject. How do I locate and merge their entries on Wikidata?
    You can find their entries as shown in Q1 above – in this case, you could try d:Special:ItemByTitle/en/YEN and d:Special:ItemByTitle/cs/YCS; if those don't work, try searching for all the other Wikipedias' titles, as in some cases it's possible that an item has been created for one title, but not the article it's linked to.
    If you find two items, then remove all the links from one (generally the one with the higher Q number, but it's okay to use the other one if it has many fewer linked articles), add them to the second one, and request deletion of the now empty item.
    If you find one item, simply add the links to the relevant articles.
    If you find no items, then just create an item for all five articles, as explained in Q1 above.
  • Q4A. I discovered that the articles en:YEN and de:YDE are about the same subject, but they are not linked together. What should I do?
    First, check that the Wikidata entry YEN exists, locating it as detailed in Q1 above;
    If is does, go to the bottom of the entry (where the links are stored), and try adding YDE: add the language (de for German) and the name (YDE);
    If it gets added, you are done;
    If it gives an error (a pink box), click on the error box. It would typically say that YDE has been already used by the Wikidata item Qxxx. In this case, you need to merge them. Act as in Q4 above.
    If the Wikidata entry YEN exists, check the entry for YDE. If id does exist, go there and add en:YEN as detailed above;
    If it does not, create a new entry and add there en:YEN and de:YDE.
編輯
  • Q5. In the article which has its Wikidata entry, and the links were removed by the bot longtime ago, someone added a Swahili interwiki link. What should I do?
    Check that the Swahili article exists and is on the same topic;
    If it does, consider it as a request to add the Swahili link to Wikidata, act as in Q1.
    If it does not exist, delete the link.

Persistent conflicts

編輯
  • Q6 I'm trying to do all this, but I keep on running into conflicts with other wikis.
    Just go over to Wikipedia talk:Wikidata#Interwiki conflicts and bring it up. It'll be handled as fast as possible, or forwarded to d:WD:IWC if it requires attention from other Wikipedias.
    If you need help for any other reason, feel free to contact any of the users in the box at the top of this section, or to go to #wikimedia-wikidata 連過去.

編輯

Local interlanguage links in Wikipedia pages can be safely removed if the local list and the Wikidata list match. Understand that unexplained removal of interlanguage links could appear to be vandalism. To avoid being reverted, leave an edit summary when removing local links, preferably linking to this page.

In general, it is best to remove interwiki links in Wikipedia articles once they are associated with Wikidata. (You can tell that the page is "associated" with Wikidata by the presence of the "Edit links" text below the language list.) This is because whatever interwiki links are left over will always override the more current information that Wikidata endeavors to provide. Page sizes also decrease noticeably when long lists of interwikis are removed. However, you should not remove links if you have not verified that they have been copied to Wikidata. This task is now done by a bot (Addbot), so you don't need to do this manually on most pages.

編輯

Bot operators using the pywiki framework should upgrade to a minimum of pyrev:11073. Bot operators using bots editing interwikis using other frameworks or methods should stop running their bot until they have fixed their code to avoid changing interwikis. See Wikipedia:Bot_owners'_noticeboard/Archive_8#Wikidata.

編輯

Below are methods which can be used to change the links in a more automatic fashion, which decreases the chance that you will make an error while transferring the links:

  • You may want to add the following JavaScript to your common.js page, which will allow you, when editing a page (in edit mode), to click a "remove interwikis" button, which will remove all interlanguage links that have been copied to Wikidata:
    mw.loader.load('//www.wikidata.org/w/index.php?title=User:Yair_rand/checksitelinks.js&action=raw&ctype=text/javascript');
    
 
To use Checksitelinks (once installed), click to edit an article, then go to the dropdown menu. (In the MonoBook skin, the tab simply appears at the top of the page, to the right of "unwatch".)
 
A screenshot of the slurpInterwiki interface. The button to initiate it, "Import interwiki", can be seen in the bottom left corner of the screen, along with several other gadget-generated buttons.
  • slurpInterwiki is a Wikidata gadget which can be used to semi-automatically pull in new links from the article. See the Wikidata gadgets panel.
編輯

The following method is the basic way to edit an interlanguage link:

  1. Go to the Wikidata item. There are two manual methods to do this:
    • Click the grey "edit links" link at the bottom of the "Languages" bar
    • Go to d:Special:ItemByTitle and search for your page
  2. Compare the links with the article's
  3. Edit the links in Wikidata. This should be straightforward; each interlanguage wiki link has an [edit] next to it. Click that link exposes several forms:
    • The first is for the language code
    • The second is for the languages' link
    • Where the [edit] link was should now appear three options: save, remove, and cancel.
      • Save is used when you have completely finished changing the information in the entry
      • Remove completely removes the entry from the database
      • Cancel cancels the interaction with the interface
  4. Add any missing links in Wikidata if appropriate. This can be done by going to the bottom of the interlanguage wiki link list and clicking on "add link". This exposes mostly the same forms as a normal edit.
  5. Once all links are accounted for, preview a version of the article on Wikipedia with all interlanguage links removed, and compare it to the current version of the article. Look to see if there are any differences between the rendered text. If there are not, they may be removed safely. If there are differences, you should either not remove the links that differ, or, better yet, return to editing Wikidata, and then remove them from the article.

If you encounter any interwiki conflicts (most notably situations where you get an error message informing you that a link you've tried to add is already in use on another item), you can raise the issue at Wikipedia talk:Wikidata#Interwiki conflicts or d:Wikidata:Interwiki conflicts, though if you can think of a way to resolve it yourself, by all means please do.

If you run into any confusion in the process of transferring links from Wikipedia to Wikidata, feel free to drop by at d:Wikidata:Project chat or ask for advice on IRC at #wikimedia-wikidata 連過去.

編輯

Article status indicators

編輯

Good Articles and Featured Articles on other Wikipedias are indicated by a star beside the language link. This star is generated by a template. Since Wikidata does not store this information, these templates should not be removed. The corresponding language link itself may be removed. Wikidata has a planned future feature called "badges" that would allow Wikidata to handle article status indicators (see Wikidata:Help:Sitelinks#Badges).

編輯

Sometimes an interlanguage link includes an anchor, which is a link to a section of an article. The anchor is represented by the "#" character (e.g. [[fr:Analyse de survie#Fonction de survie]]). Such a link is used when the linked Wikipedia does not have an exactly corresponding article, but has an article that deals in part with the same subject. Wikidata's language links do not support anchors by design, so language links with anchors must be retained on Wikipedia if desired. For an example, see the end of the wikitext in the article Survival function: Wikidata is providing all of the language links—via d:Q2915096—except for the one to the French Wikipedia, which, since it is a section link, is instead listed locally in the article itself.

編輯

An individual article can completely suppress Wikidata links by using the {{noexternallanglinks}} magic word. The magic word also supports suppression of only specific languages, in the form "{{noexternallanglinks:es|fr|it}}", which would suppress the Spanish, French, and Italian links.

編輯

The Wikidata community agreed in an RFC that all namespaces of Wikipedia projects other than "User" and "Special" are eligible for storage on Wikidata. This means that interwiki links for categories, templates, and Wikipedia policy pages can also be stored in Wikidata and removed locally if effected by both communities. For an example of a Wikidata item referring to the Wikipedia namespace, see item Q4167836, which refers to Wikipedia:Categories.

編輯

Inline interlanguage links (those of the format [[:<language>:<article>]]) continue to work as before and have not been changed by Wikidata. For instance, you can link the German version of this information page without in any way affecting its interlanguage links, here or on Wikidata. (Just remember to start with a colon!)

Recent changes

編輯

Changes on Wikidata that relate to articles on this Wikipedia will show up in Recent Changes if the option is enabled by the user. See Special:Preferences#mw-prefsection-rc.

Infoboxes (Phase 2)

編輯

Wikidata holds information in many languages that can be re-used on Wikipedias, particularly in infoboxes. The choice to use this information is left entirely to the Wikipedia community itself—future changes to the wiki software will only provide an option to retrieve information from Wikidata if desired. (For example, some wiki-text may ask for the atomic number of a chemical element, or the population of a country.) Wikidata will support citations for all data. This phase of the Wikidata project is a large one, and while parts of it are underway on Wikidata, other parts are still in development. See m:Wikidata/Deployment Questions#When will this be deployed on my Wikipedia?.

It is envisioned that articles will be able to incorporate facts from the corresponding Wikidata page using a {{#property:}} syntax, described at meta:Wikidata/Notes/Inclusion syntax. Such transclusions will have to be added inline to articles explicitly on a page-by-page or template-by-template basis, either manually or by bots, and will not be attached automatically to articles in the way that Phase 1 interwiki links are.

See also Wikipedia:Requests for comment/Wikidata Phase 2.

Workflow

編輯

/Workflow describes some issues with the Wikidata phase II workflow.

Infoboxes that use it

編輯

See also

編輯
Wikidata templates and modules
編輯