WikiProjectMed:WikiProject Med/Tech

From WikiProjectMed
Jump to navigation Jump to search

Technical efforts could improve the editing of Wikipedia's medical content. This page is a place to propose and discuss technical projects. Prizes may be offered for some of fixes.


Volunteer programs
Amir, Andrew, Fred, Ivo, User:Level C
Git hub repository for WPMED
Reward board on EN WP

Another possibility is once they have been developed assistance can be applied for here.



What are the top articles by WikiProject in languages other than English?

Currently in English we have a great to tool that automatically lists the top 1,500 articles by page views for each WikiProject. Wikipedia:WikiProject_Medicine/Popular_pages The problem is that this does not exist in other languages.

This should be fairly easy to change. One can use the interlanguage links on Wikidata to tag articles that correspond to the English Wikiproject in other languages (after getting agreement). Once we have these tagged than this tool can be run on them

This tool requires being moved from toolserver to Tool Labs. Supposedly this is now possible. Doc James (talk ·contribs · email) (if I write on your page reply on mine) 13:22, 22 August 2013 (UTC)

New tool made by the community tech team up and running as of Mar 2017. Doc James (talk · contribs · email) 16:27, 1 September 2017 (UTC)

General traffic data

I made a blog post about this some time ago - see my personal blog. I want a way to easily tag any subset of articles, for example only certain health articles, and then to be able to get the total traffic to all of those articles for any range of dates.

This has utility beyond just health. I think that any external organization which considers contributing its resources to developing Wikipedia would want some supporting evidence that what it does matters, and so for example, if a cardiology organization were to develop 30 articles on cardiology, then I think they are justified in wanting to know for any given month just how much traffic only those 30 articles are getting.

I see the inability to quickly share traffic data as a major barrier to engaging external partners. Wikipedians take it for granted that readers come to Wikipedia; non-Wikipedians need to see supporting evidence. I think in many cases, people would be surprised to find that the entirety of their outreach strategy reaches far few people than a less ambitious and much less expensive Wikipedia partnership would. In health this really would have a major impact on public health education to connect existing public health education work hours to Wikipedia development. Blue Rasberry (talk) 14:42, 22 August 2013 (UTC)

Is this what you are looking for [4]? Doc James (talk · contribs · email) 21:36, 9 September 2013 (UTC)

Number of refs supporting med content

Was generated by Andrew West in the past. Data here

Number of Cochrane reviews used

Generated by Andrew West in the past here

Top editors

Generating list

Description in more or less human-readable language (will try to improve it later). How I did it.

  1. Run a SQL query to get all enwiki articles (and their Wikidata item), that are part of Wikiproject Medicine (gladfully we have a category, so no "overload" with querying with template)
  2. From the results, grab all WD items and do API query (I do them in batches of 500 items) to get all sitelinks
  3. Make a dictionary/array/list/JSON or whatever it's called in your preferred language in such form:
    {'enwiki':['enwiki article 1','enwiki article 2',...],'frwiki':['frwiki article 1',...],...}
  4. Wiki by wiki do a SQL for articles (I made it by batches of 100 articles), first selecting page ids from page titles (don't forget about underscores :) ), and then get user edit history of 2017. And then simply group by the results in form that you prefer.


  • Consistently formats the infoboxes (have a tool)
  •  Done Improves formating of the references (over one line rather than many lines, replaces cite PMID and cite DOI with cite journal)
  •  Done Move medical specialties form the infobox to wikidata. The property is here [5]

Doc James (talk · contribs · email) 03:56, 14 July 2015 (UTC)

  • Isn't there some category for medical specialties? That (not some parameter in infobox) would be easier to move to WD. --Edgars2007 (talk) 14:43, 1 November 2015 (UTC)
  • :) And what about the first one? Some example edit(-s) would be nice. Probably I won't be able to do that, but in this way you could save time for real bot writers. --Edgars2007 (talk) 12:04, 2 November 2015 (UTC)


  • A bot to enforce MEDMOS on C-class or below articles, using their categorisation (Disease, Symptom, etc). to determine correct style. Examples of use:
    • rename sections (symptoms -> Signs and symptoms), enforce capitalisation
    • reorder sections (eg. epidemiology, history last)
    • ? add titles + {{expand section}} if sections not present.
    • anything else which requires a lot of correcting

I think this would save a lot of time, maybe disrupt a few articles, but in the main significantly help standardise medical articles without editor input. LT90001 (talk) 13:46, 22 August 2013 (UTC)

I don't think this will work. Some diseases have no independently observable signs (only symptoms), and so should have the shorter heading. Some sections need to be merged, and MEDMOS says that the order varies significantly. However, a bot could leave a note about seemingly missing sections, and that might be useful for relatively active pages. WhatamIdoing (talk) 15:28, 22 August 2013 (UTC)
I have spent a fair bit of time getting disease and medication related article sections to follow MEDMOS. Still a fair bit of work to do. Might be a little complicated for a bot. Doc James (talk · contribs ·email) (if I write on your page reply on mine) 01:00, 23 August 2013 (UTC)

Brand name redirect/wikidata bot

Takes lists of brandnames and creates redirects to the generic. Doc James (talk · contribs · email) 12:48, 12 August 2015 (UTC)

If you have a list of them, then you probably can use w:en:Wikipedia:CSVLoader. Could help with the technical part. --Edgars2007 (talk) 14:43, 1 November 2015 (UTC)
Thanks User:Edgars2007 will look at this as a possible solution. Doc James (talk · contribs · email) 19:03, 1 November 2015 (UTC)
  • Wikidata [6]
  • List of brands [7]

Commons deletion notification bot

 DonePhabricator ticket here

Asked here as one exists on Fr WP.

Add images up for deletion to this page on EN WP[8]

Wikidata additions

Med doses

Add doses

  • Defined daily dose based on ATC[12]/Wikidata[13]
  • nfobox discussion[14]
    • Adding new property to WD[15]

Method to watch for changes

Moving buttons

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.

The gadgets push around the standard buttons when they load. Would be nice for the new buttons to load to the left of the standard buttons instead of the right and this would solve the issue.

Half  Done. Doc James (talk · contribs · email) 15:21, 1 September 2017 (UTC)

Other half[16]. Request here

The discussion above is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.

Fixing moving buttons 2

Moving problem issue

Text highlighting issue

Undisclosed paid editing

AI detection

Detect all articles / accounts like this:

Improving ability to request changes

Pending changes

Remove need to confirm with (example of the problem [18])

Diff viewer not working well

Hard spaces

Improve enhanced whatlists

  • Filter option to "hide if no changes since last viewed"[21]

User script to help with education efforts

On EN WP we have a template to help guide students

The idea is to automate some of this feedback within a userscript phab ticket

Requested here and as part of the 2019 Wishlist

Initial draft here by User:TheSandDoctor
  • Request to block "ezprozy" links.[22]


Offline Content Sites and Tools

Admin Console Enhancements

  • Add the ability to provision content based on home menu
  • Add more content types to Manage Content

Content Search

  • Add search infrastructure to IIAB
  • Create search indices for commonly used content


  • Awstats data extraction
  • Select and implement alternative usage tracking


  • Validation Test Suite
  • Performance Test Suite

Wikidata Integration

  • Overlay on OSM maps of local features such as
  • Medical facilities
  • Disease outbreaks
  • Other applications

Napster of Alexandria

  • Unified Content Catalog
  • Crowd sourced content rating
  • Crowd sourced content meta data
  • Content curation lists (play lists)
  • IIAB infrastructure to integrate with NoA

Issues with Zims

  • Category issues need to be fixed per here

Video in Zims

Add hidden and then unhide.

Edit here?

Template added here to Carcinoid



Requested changes here[23]

Fix for mwoffliner


Not in language tool

This tool by Magnus [24]

It would be even more useful if beside each of the items listed there was a link to "Content Translation" that when clicked on would open "Content Translation" on the "not in language" Wikipedia with that item loaded into "Content Translation" from the "in language".

Phab ticket[25]

Content translation missing refs


  • is working on a work around. (code for bot)
    • Note: Does not handle the case were two refs occur together within the infobox and BOTH need to be potentially moved


Cutting video

  • Community request for video cutter for commons[28]
  • Phab tickets[30]
    • Cutting tool Phab ticket[31]

WP App

Does not appropriately handle video.[32]

Video converter from MP4

For commons.

Improve watchlists


  • So that it only shows the element actually used within the article in question.[33][34]
  • Improve usage tracking granularity to avoid irrelevant changes showing in the watchlist.[35]


  • Move the "(X changes | history)" to just after the time stamp: will make opening large numbers easier
  • If to edits 100% cancel each other out, provide the option to not see these as changes in ones watchlist.
    • Currently lines like this appear "22:14 HPV vaccine‎‎ (2 changes | history) . . (0)‎ . . [Bruce1ee‎;‎]"
    • When you click on "2 changes" you get this.
    • Phab ticket
  • Edit filter to allow the hiding of certain edits edits. Some editors are excellent or simple do "bot" type work. Would be nice to be able to hide their edits from your watchlist like we can do with our own edits and bot edits.
  • Edits to a specific article group themselves together by day. Allow grouping since one last looked at the article in question (thus potentially multiday)

Add PMID/DOI to "cite journal" when missing

Visual editor

Breaks spacing within infoboxes.

Copyright for images


Add redirects from brands to generics. (list of 40,000 brands) Get list of INNs[40]

Improving "clean references" tool

  1. Ladsgroups tool is here
  •  Done Add removal of <!-- --> from refs
  •  Done Add "pronounce =", "synonyms =", "field ="
  •  Done Add "external links" section if missing
  •  Done Move "| meshNumber" "| meshName ="
  •  Done Convert "{{reflist|2}}" to "{{reflist}}"
  •  Done Move "diseasesDB_mult ="
  •  Done "eMedicine1 ="
  •  Done "meSH1 ="
  •  Done Extra spaces for "field", "synonyms", "pronounce"[41]
  • Add "capital" to details coming from Wikidata -> ask User:aude[42]


  1. To User:Doc James/punctuation.js Test page
    Fix punctuation
    Condense refs over one line
    Convert to {{reflist}}
  2. Fixing moving wiked icon
  3. Adding CTX links to the Petscan[43]
  4. Add medical images up for deletion to Wikipedia:WikiProject Medicine/Article alerts (phab ticket)

SourceMD fix

The SourceMD tool was initially expected to have ingested all of pubmed into wikidata by now, however it's been offline for much of 2019 due to an unresolved bug. Getting it running again will be valuable for eventually getting biomed literature organised in wikidata. T.Shafee(Evo﹠Evo)talk 00:34, 15 November 2019 (UTC)

Tracking retractions and errata

There isn't yet any systematic marking of which papers in wikidata have published retractions or errata. Identifying these via the retractions and errata published in pubmed, linking those items together correctly in wikidata, and flagging when which publications are used as references in wikipedia would be extremely valuable. It'd be useful to also do some automated monitoring of crossmark and retractionwatch (their database is secret, but their public postings may be possible to match to wikidata items for publications).

Citations of retracted articles in wikipedia should generally be flagged for removal along with checking the surrounding text for dependency on that ref, and whether alternative refs are available to support the text assertion. Conceivably some Wikipedia articles might reasonably cite retracted papers (e.g. when noting them as retracted) but the citation should include sort of icon, highlight, or comment and a link to the retraction notice.

Citations of articles with errata should be updated to the latest version per crossmark so that the links in the citation aren't pointing people to the older version. T.Shafee(Evo﹠Evo)talk 00:48, 15 November 2019 (UTC)

Our World in Data

.svg issue