Wikipedia:Wikipedia Signpost/2023-02-04/Tips and tricks: Difference between revisions

Content deleted Content added
No edit summary
Tags: Mobile edit Mobile web edit Advanced mobile edit
m Protected "Wikipedia:Wikipedia Signpost/2023-02-04/Tips and tricks": old newspaper articles don't need to be continually updated, the only real edits expected here are from bots/scripts, and vandalism is extremely hard to monitor ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed or confirmed access] (indefinite))
 
(28 intermediate revisions by 7 users not shown)
Line 1:
<noinclude>{{Wikipedia:Wikipedia Signpost/Templates/RSS description|1=XTools: Data analytics for your list of created articles: Letting you find out about yourself (and others).}}{{Wikipedia:Signpost/Template:Signpost-header|||}}</noinclude>
 
{{Wikipedia:Wikipedia Signpost/Templates/Signpost-article-header-v2
Experienced wikipedians have often a long list of created articles. But what do they know about those articles? How can they have some metrics or analytics to follow their collection of created articles?
|{{{1|XTools: Data analytics for your list of created articles}}}|By [[User:PAC2|PAC2]]
}}
{{Wikipedia:Wikipedia Signpost/Templates/Signpost-block-start-v2|fullwidth=yes<!--CHANGE TO YES FOR A 'FULLWIDTH' ARTICLE-->}}
Experienced wikipedians haveWikipedians often have a long list of articles they've created articles. But what do they know about those articles? How can they haveget some metrics or analytics to follow their collection of created articles?
 
Xtools[[mw:XTools|XTools]] provides some insights about yourthe list of articles created articlesby a user<ref>https://xtools.wmflabs.org/pages/en.wikipedia.org/PAC2</ref>. The Pageviews API provides a userviewsway tabsetto withget the number of pageviews for each article created by a user<ref>https://pageviews.wmcloud.org/userviews/?project=en.wikipedia.org</ref>. But what about the gender distribution of the biographies I've created? WhichWhat is the main occupation of people I've written about? Where are located the places located for which I've created an article? And if we come to the content of the articles.: Which of my articleswhich is the longest one? Which one has the largest number ofmost references?
 
By using the xtoolsXTools pages -created API, I've developed a set of new tools to answer all those questions.<ref>https://observablehq.com/collection/@pac02/pages-created</ref>. All my tools are developed in [[JavaScript]] using the Observable platform. Observable is datavisualisatuon created by Melody Meckfessel and [[Mike Bostock]] which makes it very easy to design interactive tools.
 
[[File:Gender distribution of articles created by PAC2.jpg|thumb|Screenshot of "User-level gender statistics for Wikipedia": Gender distribution of articles I've created in Wikipedia in French<ref>Retrieved from https://observablehq.com/@pac02/user-level-gender-statistics-for-wikipedia on January 7, 2023</ref>]]
 
At first, I was very curious about the gender distribution of people I've created a biographical article about. So I've useused the Wikidata API to get the value of the property P21{{Wikidata "Sexproperty or gender"link|P21}} for all items corresponding to articles a user has created. This first tool is named "User-level gender statistics for Wikipedia".<ref>User-level gender statistics for Wikipedia: https://observablehq.com/@pac02/user-level-gender-statistics-for-wikipedia</ref>.
 
This[[File:Graph toolof canarticles easilycreated beby extendedPAC2 toby other Wikidata properties such as "instance of" (P31) and "country" (P17) and for humans "country.jpg|thumb|Screenshot of citizenship" (P27) and occupation (P106). This lead to another tool named "Look at your list of created articles through Wikidata"<ref>Look: atDistribution yourof listarticles ofI've created articlesin throughWikipedia in French by {{Wikidata: property link|P31}}.<ref>retrieved from https://observablehq.com/@pac02/look-at-your-list-of-created-articles-through-wikidata on January 7, 2023</ref>.|left]]
 
AnotherThis tool providescan aeasily mapbe ofextended yourto articlesother relatedWikidata toproperties geolocatedsuch as {{Wikidata itemsproperty usinglink|P31}} and {{Wikidata property P625link|P17}} (and for humans, {{Wikidata property link|P27}} and {{Wikidata property link|P106}}). This led to another tool named "Look at your list of created articles through Wikidata".<ref>MapLook at your list of created articles through Wikidata: https://observablehq.com/@pac02/maplook-at-your-list-of-created-articles-through-wikidata</ref>
 
WeAnother cantool alsoprovides havea insights about the contentmap of ouryour articles. Xtoolsrelated pageto prosegeolocated APIWikidata gives the number of wordsitems, references,using uniqueproperty references{{Wikidata andproperty sections in each articlelink|P625}}.<ref>Map Soyour I'velist developedof a notebook which computes this for all thecreated articles createdthrough byWikidata: a user<ref>https://observablehq.com/@pac02/look-atmap-your-list-of-created-articles-withthrough-the-xtools-page-apwikidata</ref>.
 
My[[File:Graph lastof toolthe collectsnumber dataof aboutwords theand number of revisions,references thein numberarticles created by PAC2.jpg|thumb|Screenshot of editors,"Look theat numberyour list of pageviewscreated andarticles with the numberXTools ofPage watchersProse forAPI": allList articlesof a userarticles hasI've created usingin xtoolsWikipedia articleinfoin API.<ref>LookEnglish atsorted yourby listnumber of createdwords articlesand withby thenumber Xtoolsof Pagereferences<ref>retrieved ArticleInfo API:from https://observablehq.com/@pac02/look-at-your-list-of-created-articles-with-the-xtools-page-arap on January 7, 2023</ref> ]]
 
We can also gain insights about the content of our articles. The XTools page-prose API gives the number of words, references, unique references and sections in each article. So I've developed a notebook which computes this for all the articles created by a user.<ref>"Look at your list of created articles with the XTools Page Prose API": https://observablehq.com/@pac02/look-at-your-list-of-created-articles-with-the-xtools-page-ap</ref>
I'm not an experienced javascript developer. So all my tools are fragile. I can imagine that if you've created more than 2,000 articles, you may have a lot timeout errors. Last but not least, all my work is open source and anyone can improve it. And of course all your feedbacks are greatly appreciated.
 
[[File:Insights from PAC2's list of created articles through articleinfo API.jpg|thumb|Screenshot of "Look at your list of created articles with the XTools Page ArticleInfo API": List of articles I've created in Wikipedia in English sorted by number of revisions and by number of editors.<ref>retrieved from https://observablehq.com/@pac02/look-at-your-list-of-created-articles-with-the-xtools-page-ar on January 7, 2023</ref>|left]]
== References ==
 
My last tool collects data about the number of revisions, the number of editors, the number of pageviews and the number of watchers for all of a user's articles, using the XTools articleinfo API.<ref>Look at your list of created articles with the XTools Page ArticleInfo API: https://observablehq.com/@pac02/look-at-your-list-of-created-articles-with-the-xtools-page-ar</ref>
 
All my tools are developed in [[JavaScript]] using Observable (a data visualization platform created by Melody Meckfessel and [[Mike Bostock]]), which makes it very easy to design interactive tools. One shortcoming is that you may experience some timeout errors, since my tools rely on a high number of API calls. I can imagine that if you've created more than 2,000 articles, you may have a lot of timeout errors. And all my work is [[open source]] – so feel free to improve it and suggest better solutions. And, of course, all of your feedback is greatly appreciated.
 
=== References ===
{{Reflist}}
 
{{Wikipedia:Wikipedia Signpost/Templates/Tips-and-tricks-footer}}
{{Wikipedia:Wikipedia Signpost/Templates/Signpost-block-end-v2}}
{{Wikipedia:Wikipedia Signpost/Templates/Signpost-article-end-v2}}
<noinclude>{{Wikipedia:Signpost/Template:Signpost-article-comments-end||2022-11-28|2023-02-20}}</noinclude>