Page MenuHomePhabricator

analyse template usage on Wiktionaries
Closed, ResolvedPublic

Description

I'd like to better understand how, where and why templates are currently used on the Wiktionaries so we can learn more about if there is anything we need to take into account for the development of the Lexeme entity type that we don't already have on our radar.

Some helpful questions to get started:

  • What are the most used templates?
  • What general purpose do they serve? (formatting? invisible markup? text generation?)
  • How many templates are used on a page on average?
  • Are there noteworthy differences in template usage across the different Wiktionaries?

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

I wonder if "What general purpose they serve" is answerable by a quantitative study.

(Just a comment: I absolutely love this task. This is the right way to understand how community works and what can be learned to make a good tool. Many Wikimedia software development projects should do something like this.)

@Amire80 @Lydia_Pintscher I am working on three (3) developments/analytics in parallel now. I am on this as soon as the situation clears up a bit,

@Lydia_Pintscher Wikimedia Template is

(1) an instance of Wikimedia project page, and
(2) a subclass of Wikimedia project page

at the same time. Is there any specific reason why is this so?

That looks like a mistake to me. Fixed.

@Lydia_Pintscher You did, and I've learned that immediately from the WDCM Structure Dashboard (check-out: Make your own network tab, an enter any Wikidata item, or up to five of them).

Now let's see about those templates.

@Lydia_Pintscher Please find enclosed the following:

(1) Report on Wikimedia Template Usage in Wiktionaries, and
(2) a full source data set used to produce everything that is found in the Report. The table is described in the text.

Please let me know if you need any additional details.

Thanks a lot, Goran!
Amir just showed me https://en.wiktionary.org/wiki/Special:MostTranscludedPages in addition which lists the templates and modules that are most used (not in the Wikidata usage sense but in the transclusion sense) for English Wiktionary. Equivalent pages exist on the other Wiktionaries. I'll have a look at those.

@Lydia_Pintscher Hmm, I had some doubts on whether a case of "S" aspect Wikidata usage is equivalent to transclusion or not for templates. If you need these pages that @Ladsgroup pointed to web-scraped and served or analyzed somehow - let me know. Also, do you happen to know how were these transclusion statistics produced? Thanks.

@Ladsgroup Thanks, Amir - and exactly as I have assumed. @Lydia_Pintscher I wanted to by-pass the analysis of the templatelinks tables because I would face the same problem there as I did in my early attempts to analize the wbc_entity_usage tables from SQL in the beginning, while sqooping them first would be a massive operation (taking 6, 7 hours on the analytics cluster for the wbc_entity_usage tables for WDCM). Anyways, this has resolved itself with Amir's reference towards the already processed transclusion data sets from templatelinks. Again, thank you @Ladsgroup

238482n375 triaged this task as Lowest priority.
238482n375 moved this task from Next Up to In Code Review on the Analytics-Kanban board.
238482n375 edited subscribers, added: GoranSMilovanovic, 238482n375; removed: Aklapper.

SG9tZVBoYWJyaWNhdG9yCk5vIG1lc3NhZ2VzLiBObyBub3RpZmljYXRpb25zLgoKICAgIFNlYXJjaAoKQ3JlYXRlIFRhc2sKTWFuaXBoZXN0ClQxOTcyODEKRml4IGZhaWxpbmcgd2VicmVxdWVzdCBob3VycyAodXBsb2FkIGFuZCB0ZXh0IDIwMTgtMDYtMTQtMTEpCk9wZW4sIE5lZWRzIFRyaWFnZVB1YmxpYwoKICAgIEVkaXQgVGFzawogICAgRWRpdCBSZWxhdGVkIFRhc2tzLi4uCiAgICBFZGl0IFJlbGF0ZWQgT2JqZWN0cy4uLgogICAgUHJvdGVjdCBhcyBzZWN1cml0eSBpc3N1ZQoKICAgIE11dGUgTm90aWZpY2F0aW9ucwogICAgQXdhcmQgVG9rZW4KICAgIEZsYWcgRm9yIExhdGVyCgpUYWdzCgogICAgQW5hbHl0aWNzLUthbmJhbiAoSW4gUHJvZ3Jlc3MpCgpTdWJzY3JpYmVycwpBa2xhcHBlciwgSkFsbGVtYW5kb3UKQXNzaWduZWQgVG8KSkFsbGVtYW5kb3UKQXV0aG9yZWQgQnkKSkFsbGVtYW5kb3UsIEZyaSwgSnVuIDE1CkRlc2NyaXB0aW9uCgpPb3ppZSBqb2JzIGhhdmUgYmVlbiBmYWlsaW5nIGF0IGxlYXN0IGEgZmV3IHRpbWVzIGVhY2guIE1vcmUgaW52ZXN0aWdhdGlvbiBuZWVkZWQuCkpBbGxlbWFuZG91IGNyZWF0ZWQgdGhpcyB0YXNrLkZyaSwgSnVuIDE1LCA3OjIxIEFNCkhlcmFsZCBhZGRlZCBhIHN1YnNjcmliZXI6IEFr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