WikiProject Med/Tech

From Meta, a Wikimedia project coordination wiki
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.

Help[edit]

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.

Archives[edit]

Metrics[edit]

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

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 http://toolserver.org/~alexz/pop/view.php

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)

Progress
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[edit]

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[edit]

Was generated by Andrew West in the past. Data here

Number of Cochrane reviews used[edit]

Generated by Andrew West in the past here

Top editors[edit]

Generating list[edit]

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.

Bots[edit]

  • Consistently formats the infoboxes (have a tool)
  • Yes check.svg Done Improves formating of the references (over one line rather than many lines, replaces cite PMID and cite DOI with cite journal)
  • Yes check.svg 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)

MEDMOS[edit]

  • 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[edit]

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[edit]

Phabricator ticket here Doc James (talk · contribs · email) 02:37, 29 July 2017 (UTC)

Asked here as one exists on Fr WP. Doc James (talk · contribs · email) 15:35, 1 September 2017 (UTC)

Wikidata additions[edit]

Med doses[edit]

Add doses

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

Method to watch for changes

Moving buttons[edit]

The following discussion is closed. Please do not modify it. Subsequent comments should be made in a new section. A summary of the conclusions reached follows.
Issue Fixed Doc James (talk · contribs · email) 16:14, 12 September 2017 (UTC)

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 Yes check.svg Done. Doc James (talk · contribs · email) 15:21, 1 September 2017 (UTC)

Other half[15]. Request here


The above discussion is preserved as an archive. Please do not modify it. Subsequent comments should be made in a new section.

Fixing moving buttons 2[edit]

Moving problem issue

Text highlighting issue[edit]

Undisclosed paid editing[edit]

AI detection[edit]

Detect all articles / accounts like this:

Improving ability to request changes[edit]

Pending changes[edit]

Remove need to confirm with en:Pending changes (example of the problem [17])

Diff viewer not working well[edit]

Hard spaces[edit]

Improve enhanced whatlists[edit]

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

User script to help with education efforts[edit]

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.[21]

Internet-in-a-Box[edit]

  • Category issues need to be fixed per here

Video[edit]

Add hidden and then unhide.

Edit here? https://en.wikipedia.org/wiki/MediaWiki:Offline.css

Template added here to Carcinoid

User:RexxS/Template-OnlyOffline

User:RexxS/Template-OnlyOffline/styles.css

Requested changes here[22]

Fix for mwoffliner https://github.com/openzim/mwoffliner/issues/900

Translation[edit]

Not in language tool[edit]

This tool by Magnus [23]

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[24]

Content translation missing refs[edit]

Yes check.svg Done

  • En:User:Fz29bot 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

Video[edit]

Cutting video[edit]

  • Community request for video cutter for commons[27]
  • Phab tickets[29]
    • Cutting tool Phab ticket[30]

WP App[edit]

Does not appropriately handle video.[31]

Video converter from MP4[edit]

For commons.

Improve watchlists[edit]

WD[edit]

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

Wikipedia[edit]

  • 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‎; 86.8.231.208‎]"
    • 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[edit]

Visual editor[edit]

Breaks spacing within infoboxes.

Copyright for images[edit]

Wikidata[edit]

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

Improving "clean references" tool[edit]

  1. Ladsgroups tool is here https://en.wikipedia.org/wiki/User:Ladsgroup/RefCleaner.js
  • Yes check.svg Done Add removal of <!-- --> from refs
  • Yes check.svg Done Add "pronounce =", "synonyms =", "field ="
  • Yes check.svg Done Add "external links" section if missing
  • Yes check.svg Done Move "| meshNumber" "| meshName ="
  • Yes check.svg Done Convert "{{reflist|2}}" to "{{reflist}}"
  • Yes check.svg Done Move "diseasesDB_mult ="
  • Yes check.svg Done "eMedicine1 ="
  • Yes check.svg Done "meSH1 ="
  • Yes check.svg Done Extra spaces for "field", "synonyms", "pronounce"[40]
  • Add "capital" to details coming from Wikidata -> ask User:aude[41]

Priorities[edit]

  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[42]
  4. Add medical images up for deletion to Wikipedia:WikiProject Medicine/Article alerts (phab ticket)

SourceMD fix[edit]

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[edit]

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)