Suggested changes to wikidata template

+15 votes
176 views

After a lot of activity in WikiTree-WikiData connections, I came up with a way to make the connection between the sites on WikiTree. We already have a template https://www.wikitree.com/wiki/Template:Wikidata.

It is used like {{Wikidata|Q1234}} to display a link to Wikidata. You can add Wikipedia language as the second unnamed parameter like {{Wikidata|Q1234|enwiki}} and a link to associated wikipedia article will be displayed. Until now enwiki was a default, but since we now have Wikidata items without Wikipedia articles enwiki is no longer a default (I will change that soon). To display a wikipedia link, you have to add the language. 

That works for any page not just for people.

Now to the suggested change: To distinguish between the links to the person, relatives and other things, I will add the sameas parameter with the similar functionality as on the FindAGrave template. You will be able to add:

  • {{Wikidata|Q1234|sameas=yes}} or {{Wikidata|Q1234|enwiki|sameas=yes}} That would mean that item Q1234 represents the same person as the profile. I would automatically connect the pages on wikidata even if the data doesn't match. It would be done each week after the dump.
  • {{Wikidata|Q1234|sameas=no}} or {{Wikidata|Q1234|enwiki|sameas=no}} That would mean I will ignore the link. It is a link to a relative or anything else.
  • Without sameas parameter, I would do the existing logic to check if Q1234 item is a person and enough data matches between a profile and wikidata item.
in The Tree House by Aleš Trtnik G2G6 Pilot (566k points)
I did the suggested changes. It will take some time to make the automation for the sameas connectivity.

2 Answers

+5 votes

Exciting news, Aleš! Thanks for this change and everything you do!

On the Wikipedia side, I created a template for WikiTree.

{{WikiTree}} 

As long as there is a matching WikiTree Person ID in Wikidata it will display:

*The Genealogy of _____ at WikiTree

by Azure Robinson G2G6 Pilot (207k points)
+5 votes
I recently added the wikidata template to some Dutch profiles, where I wanted to have a link to both the Dutch wikipedia article and the English one, so I coded the template twice:

* {{Wikidata|Q1394760|nlwiki}}
* {{Wikidata|Q1394760|enwiki}}

I have no problem with that unless a suggestion will be introduced saying something like "Duplicate Wikidata-item".

Alternative would be to allow multiple language identifiers, like

* {{Wikidata|Q1394760|nlwiki|enwiki}}
by Jan Terink G2G6 Pilot (254k points)
I don't think I will ever check for duplicated wikidata items.
OK, thanks Aleš.

Related questions

+18 votes
6 answers
+18 votes
5 answers
415 views asked Nov 9, 2019 in The Tree House by Aleš Trtnik G2G6 Pilot (566k points)
+9 votes
0 answers
211 views asked Oct 23, 2016 in Policy and Style by John Atkinson G2G6 Pilot (481k points)
+11 votes
0 answers
171 views asked Sep 26, 2016 in The Tree House by Bob Jewett G2G Astronaut (1.1m points)
+8 votes
0 answers
328 views asked Mar 1, 2017 in Policy and Style by C S G2G6 Pilot (274k points)
+18 votes
5 answers
739 views asked Jul 7, 2016 in WikiTree Tech by C S G2G6 Pilot (274k points)
+4 votes
3 answers
215 views asked Aug 12, 2020 in WikiTree Help by M Cole G2G6 Mach 3 (39.7k points)
+5 votes
4 answers
+8 votes
1 answer
344 views asked Jan 29, 2017 in WikiTree Tech by Loretta Corbin G2G6 Pilot (166k points)

WikiTree  ~  About  ~  Help Help  ~  Search Person Search  ~  Surname:

disclaimer - terms - copyright

...