Hi Daniel,

Thanks very much for the response again. 

It seems that from this Phabricator ticket from September that the syntax "{{Uses Wikidata|<property_ids>}}” applied to template documentation is a means through which entity usage tracking is introduced for that given template and set of properties. However, this is not always applied to template documentation as is demonstrated in that ticket. For example, P856 is not tracked in the context of the English Wikipedia page “Windows_95”, but we believe that the Wikidata statement associated with P856 in the context of the “Windows_95” Wikidata item is being used in the corresponding Wikipedia page. To further complicate things, it seems that in the South Pole Telescope example, the Wikidata property P2046, which is “area”, was not included in a {{Uses Wikidata|…} statement but still seems to be tracked. The "infobox telescope" code has the following syntax to include “area" data from Wikidata: "{{Wikidata entity link|P2046}}”. 

It seems that there are different syntaxes to include Wikidata into Wikipedia templates and that some do not necessarily result in tracking as of yet — does this seem accurate? I was wondering how we might circumvent this issue if this is the case?

Thanks,
Andrew





On Nov 27, 2016, at 6:55 AM, Daniel Kinzler <daniel.kinzler@wikimedia.de> wrote:

Am 26.11.2016 um 23:33 schrieb Andrew Hall:
1. In the “Wikidata entities used in this page” section, are the entities used
   dependent on, for example, the logic of the templates through which they are
   referenced? If entities are listed in this section, are they for sure always
   coming from Wikidata?

Yes, *any* use is tracked and recorded, including accessing some part of the
entity from a conditional somewhere in the Lua code. And all entities come from
Wikidata -- we don't have any other Wikibase repo yet, and when we do, usage
will be tracked separately for that.


2. Sometimes “other (statements)” is specified in the “Wikidata entities used
   in this page” section. Is it possible to determine what those statements are?

No, that information is not recorded. There is no way to find out without
tracing all templates, parameters, and Lua code. We may start tracking this in
the future, but it's a lot of data.

I'm sure we had a ticket for changiong this, but couldn't find it, so I made a
new one: https://phabricator.wikimedia.org/T151717


--
Daniel Kinzler
Senior Software Developer

Wikimedia Deutschland
Gesellschaft zur Förderung Freien Wissens e.V.