Wikipedia:Landsbybrønden/Wikidata phase 2 (infoboxes) is here

Wikidata phase 2 (infoboxes) is here redigér

 

Sorry for writing in English. I hope someone can translate this. If you understand German better than English you can have a look at the announcement on de:Wikipedia:Kurier.

A while ago the first phase of Wikidata was enabled on this Wikipedia. This means you are getting the language links in each article from Wikidata. We have now enabled the second phase of Wikidata (infoboxes) here. We have already done this on the [first 11 Wikipedias] (it, he, hu, ru, tr, uk, uz, hr, bs, sr, sh) a month ago and two days ago on the English Wikipedia. Today all the remaining Wikipedias followed.

What does having phase 2 enabled here mean? You are now able to make use of the structured data that is available on Wikidata in your articles/infoboxes. It includes things like the symbol for a chemical element, the ISBN for a book or the top level domain of a country. (None of this will happen automatically. Someone will have to change the article or infobox template for this to happen!) The current state is just the beginning though. It will be extended based on feedback we get from you now.

How will this work? There are two ways to access the data:

  • Use a parser function like {{#property:p159}} in the wiki text of the article on Wikimedia Foundation. This will return “San Francisco” as that is the headquarter location of the non-profit.
  • For more complicated things you can use Lua. The documentation for this is here.

We are working on expanding the parser function so you can for example use {{#property:headquarter location}} instead of {{#property:p159}}. The complete plan for this is here.

Where can I test this? You can test it on test2 if you don't want to do it in an article here.

Where can I find more information and ask questions? We have collected the main questions in an FAQ for this deployment. Please ask questions you might have on the FAQ’s discussion page.

I want to be kept up to date about Wikidata To stay up-to-date on everything happening around Wikidata please subscribe to the newsletter that is delivered weekly to subscribed user’s talk pages.


We are excited about taking yet another step towards allowing all Wikipedias share structured data and collect and curate it together. --Lydia Pintscher 24. apr 2013, 21:05 (CEST)

Distributed via Global message delivery. (Wrong page? Fix here.)

Jeg har forsøgt mig lidt med Schleicher ASK 21 ... jeg forstår ikke helt, hvorfor designer kommer med som tekst (Rudolf Kaiser), mens producenten kommer med som item-kode (q565371). Der er ikke begge tilfælde om emne-egenskaber (item-properties), og ingen af dem findes (endnu) her på dansk. -- Poul G disk. 3. maj 2013, 12:11 (CEST)[svar]
Det som returneres med funktionen {{#property}} ved brug af egenskaber med datatypen "emne", er emnets etiket. Hvis der er ikke en etiket på dansk, fås i stedet blot q-nummeret. Jeg har netop tilføjet en dansk etiket til d:q565371, og den ses nu i artiklen Schleicher ASK 21. Det har ingen betydning i den forbindelse om vi har en artikel om emnet (producenten) eller ej, ligesom man heller ikke kan få et link til en evt. artikel ved brug af {{#property}}. Dertil kræves et Lua-modul. Der er nogle link til eksempler på sådanne moduler på d:Help:Phase 2 on Wikipedia. Byrial (diskussion) 3. maj 2013, 12:50 (CEST)[svar]
Jeg har nu sat [[ ]] om to properties. Det ser da ud til at virke og give links? --Palnatoke (diskussion) 3. maj 2013, 13:51 (CEST)[svar]
Ja, det giver links, men ikke nødvendigvis til det man ønsker at linke til. Artiklen for et emne har i mange tilfælde en anden titel end etiketten på Wikidata. Se nærmere om dette i forklaringen som stadig ligger i min sandkasse (Bruger:Byrial/sandkasse). Byrial (diskussion) 3. maj 2013, 13:58 (CEST)[svar]
Med andre ord: I dette konkrete eksempel virker det, men i andre tilfælde skal vi lege med parenteser eller noget mere kompliceret. Og der har du nok ret i at vi bør læse op på Lua. --Palnatoke (diskussion) 3. maj 2013, 14:27 (CEST)[svar]
Ja, en god start vil være en skabelon giver "[[artikeltitel|label]]" hvis vi har en artikel om emnet, og "label" hvis vi ikke har. Byrial (diskussion) 3. maj 2013, 14:56 (CEST)[svar]
Jeg importerede et lille modul fra engelsk, og brugte det direkte på Schleicher ASK 21 (dvs. uden af skabelon som mellemled), samt oprettede en voldsomt lille stub om fabrikanten der nu linkes til, men med brug af labelen som linktekst. Det er slet ikke så svært at komme i gang med. Byrial (diskussion) 3. maj 2013, 15:31 (CEST)[svar]