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

Content deleted Content added
Fix up a bit. I've not marked it as ready for copyedit; that's down to you
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))
 
(19 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>
<noinclude>{{Signpost draft
|title = Xtools: Data analytics for your list of created articles
|blurb = Letting you find out about yourself (and others)
|Ready-for-copyedit = No
|Copyedit-done = No
|Final-approval = No <!--Should only be used by EiC -->
}}
{{Wikipedia:Wikipedia Signpost/Templates/RSS description
|1=<!-- LEAVE BLANK to use "<title>: <blurb>" (using title and blurb from above), or replace with a custom description for the RSS feed -->
}}{{Wikipedia:Wikipedia Signpost/Templates/Signpost-header|||}}</noinclude>
 
{{Wikipedia:Wikipedia Signpost/Templates/Signpost-article-header-v2
|{{{1|XtoolsXTools: Data analytics for your list of created articles}}}|By [[User:PAC2|PAC2]]
|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?
 
[[mw:XTools|XtoolsXTools]] 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 datavisualization created by Melody Meckfessel and [[Mike Bostock]] which makes it very easy to design interactive tools.
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?
 
[[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>]]
[[mw:XTools|Xtools]] provides some insights about your list of created articles<ref>https://xtools.wmflabs.org/pages/en.wikipedia.org/PAC2</ref>. Pageviews provides a userviews tabset with 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? Which is the main occupation of people I've written about? Where are located the places for which I've created an article? And if we come to the content of the articles. Which of my articles is the longest one? Which one has the largest number of references?
 
At first, I was very curious about the gender distribution of people I've created a biographical article about. So I've used the Wikidata API to get the value of the property {{Wikidata property 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>
By using the xtools 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 datavisualization created by Melody Meckfessel and [[Mike Bostock]] which makes it very easy to design interactive tools.
 
[[File:Gender distributionGraph of articles created by PAC2 by instance of.jpg|thumb|GenderScreenshot of "Look at your distributionlist of created articles through Wikidata": Distribution of articles I've created in Wikipedia in French by {{Wikidata property link|P31}}.<ref>Retrievedretrieved from https://observablehq.com/@pac02/userlook-levelat-genderyour-statisticslist-forof-created-articles-through-wikipediawikidata on January 7, 2023</ref>|left]]
 
AtThis first,tool Ican waseasily verybe curiousextended aboutto theother genderWikidata distributionproperties ofsuch peopleas I've{{Wikidata createdproperty alink|P31}} biographicaland article{{Wikidata about.property Solink|P17}} I(and usefor thehumans, {{Wikidata APIproperty to get the value oflink|P27}} the propertyand {{Wikidata property link|P21P106}}). forThis allled itemsto correspondinganother totool articlesnamed a"Look userat hasyour list of created articles through Wikidata".<ref>User-levelLook genderat statisticsyour forlist Wikipediaof created articles through Wikidata: https://observablehq.com/@pac02/userlook-levelat-genderyour-statisticslist-forof-wikipediacreated-articles-through-wikidata</ref>.
 
[[File:GraphAnother oftool articles createdprovides bya PAC2 by instancemap of.jpg|thumb|Distribution ofyour articles I'verelated createdto ingeolocated WikipediaWikidata initems, Frenchusing byproperty {{Wikidata property link|P31P625}}.<ref>retrievedMap fromyour list of created articles through Wikidata: https://observablehq.com/@pac02/look-atmap-your-list-of-created-articles-through-wikidata on January 7, 2023</ref>]]
 
This[[File:Graph toolof canthe easilynumber beof extendedwords toand othernumber Wikidataof propertiesreferences suchin asarticles {{Wikidatacreated propertyby linkPAC2.jpg|thumb|P31}}Screenshot andof {{Wikidata"Look propertyat link|P17}}your andlist forof humanscreated {{Wikidataarticles propertywith link|P27}}the andXTools {{WikidataPage propertyProse link|P106}}.API": ThisList leadof toarticles anotherI've toolcreated namedin "LookWikipedia atin yourEnglish listsorted ofby creatednumber articlesof throughwords Wikidata".<ref>Lookand atby your listnumber of createdreferences<ref>retrieved articles through Wikidata:from https://observablehq.com/@pac02/look-at-your-list-of-created-articles-throughwith-wikidatathe-xtools-page-ap on January 7, 2023</ref>]]
 
AnotherWe toolcan providesalso again mapinsights about the content of yourour articles. relatedThe toXTools geolocatedpage-prose WikidataAPI itemsgives usingthe propertynumber {{Wikidataof propertywords, link|P625}}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>Map"Look at your list of created articles throughwith Wikidatathe XTools Page Prose API": https://observablehq.com/@pac02/maplook-at-your-list-of-created-articles-throughwith-wikidatathe-xtools-page-ap</ref>
 
[[File:GraphInsights offrom thePAC2's numberlist of wordscreated andarticles numberthrough articleinfo API.jpg|thumb|Screenshot of references"Look inat articlesyour list of created byarticles with the XTools Page ArticleInfo API": PAC2.jpg|thumb|List of articles I've created in Wikipedia in English sorted by number of wordsrevisions and by number of referenceseditors.<ref>retrieved from https://observablehq.com/@pac02/look-at-your-list-of-created-articles-with-the-xtools-page-apar on January 7, 2023</ref>|left]]
 
WeMy canlast alsotool havecollects insightsdata about the contentnumber of ourrevisions, articles.the Xtoolsnumber pageof proseeditors, APIthe givesnumber of pageviews and the number of words,watchers references,for uniqueall referencesof anda sectionsuser's inarticles, eachusing article.the SoXTools I'vearticleinfo developedAPI.<ref>Look aat notebookyour whichlist computesof thiscreated forarticles allwith the articlesXTools createdPage byArticleInfo aAPI: user.<ref>https://observablehq.com/@pac02/look-at-your-list-of-created-articles-with-the-xtools-page-apar</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.
[[File:Insights from PAC2's list of created articles through articleinfo API.jpg|thumb|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>]]
 
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 articles a user has created using 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 fragile. I can imagine that if you've created more than 2,000 articles, you may have a lot timeout errors. All my work is [[open source]] and anyone can improve it. And of course all your feedbacks are greatly appreciated.
 
=== References ===
{{Reflist}}
 
{{Wikipedia:Wikipedia Signpost/Templates/RSS descriptionTips-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||20232022-0111-0128|2023-02-20}}</noinclude>