Suggested changes to wikidata template

+15 votes

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

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 (673k 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.


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 (346k 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 Living Terink G2G6 Pilot (276k points)
I don't think I will ever check for duplicated wikidata items.
OK, thanks Aleš.

Related questions

+10 votes
0 answers
249 views asked Oct 23, 2016 in Policy and Style by John Atkinson G2G6 Pilot (542k points)
+11 votes
0 answers
179 views asked Sep 26, 2016 in The Tree House by Bob Jewett G2G Astronaut (1.2m points)
+19 votes
6 answers
+19 votes
5 answers
469 views asked Nov 9, 2019 in The Tree House by Aleš Trtnik G2G6 Pilot (673k points)
+8 votes
0 answers
350 views asked Mar 1, 2017 in Policy and Style by Living Sälgö G2G6 Pilot (276k points)
+19 votes
5 answers
779 views asked Jul 7, 2016 in WikiTree Tech by Living Sälgö G2G6 Pilot (276k points)
+5 votes
3 answers
284 views asked Aug 12, 2020 in WikiTree Help by M Cole G2G6 Mach 4 (46.1k points)
+1 vote
1 answer
179 views asked Nov 30, 2021 in WikiTree Tech by Michel Vorenhout G2G6 Pilot (262k points)
+6 votes
4 answers

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

disclaimer - terms - copyright