WikiProjectMed:Tech

From WikiProjectMed
Jump to navigation Jump to search

Add suggestions to the talk page WikiProjectMed talk:Tech

Tracking requests

We will also track pending work here

Prior tech suggestions WikiProjectMed:Tech/Meta

[Top] Mirroring of Wikipedia

1) All pages will mirror Wikipedia until edited. When one clicks the view history button it will be possible to see the history of the page in question from WP. And when one hits talk one will also see the talk page as mirrored.

2) Once a page is edited it will bring over the history of the page with a line like

MDwiki _______________________________________________________________________ Wikipedia

That separates the edits that occured in the two different places

3) In certain cases one may want to turn back on mirroring for a page. This may work by deleting the page and then having a button under "more" that says "restore page mirroring". This will leave the ability to delete a page and have it remain deleted in the fork.

4) When a page is edited locally the talk page will also be brought into the fork. But if the talk page is edited locally the article will not be brought into the fork.

5) When a page is edited and thus brought into the fork, all the templates used for that page will also be automatically brought over. For example all the reference templates and infoboxes etc. As should the categories.

6) Might be useful to have the ability to switch between the fork version of any article and the current Wikipedia version of the article. Would make it easy to check functionaility / do updates.

Test site here / Code [1]

Further efforts

  • As associated templates are imported, will need the ability to block the over writing of certain pages.

ZIM creation (April 2021 / Tims collection)

  • [High] (Kiwix ticket) Build a ZIM of the content here
  •  Done Use this as the main page
  • (Kiwix ticket) Bring into the ZIM redirect pages such as this
  • Get videos to work such as seen on Gout
    • HIV/AIDS video not working.
    • Improve resolution of videos a bit

Translation project

Steps:

1) Create a copy of this tool that can use a category from MDWiki

2) We use the corresponding Wikidata link on ENWP to find the corresponding articles in other languages. This will allow us to move forwards before we have Wikidata working on MDWiki.

3) Add a button beside each missing article such that when clicked on it

a) Loads the lead and infobox of the article into a userspace on Simple WP
b) Opens CTX with that userspace content loaded

Other work

  •  Done[Low] (Phab ticket) Get access to VideoWiki
  •  Done [Low] (ticket) Add graph extension as used here
  • [Mid] (ticket) Allow iframe from OurWorldinData for example <iframe src="https://ourworldindata.org/grapher/obesity-in-men-vs-obesity-in-women" loading="lazy" style="width: 100%; height: 600px; border: 0px none;"></iframe>[2] -> would this work.[3]
  • [Mid] (ticket) Add language links in the sidebar -> will need Wikidata functionality (ticket)
  • [Mid] Links to redirects do not work within ZIM. Thus change all links to redirects to links to the actual page.
  • [Low] Adjust mwoffliner to retry if first try fails.[4]
  • [Low] Add "Preview page with this template" [5]
  • [Low] Add desktop refresh (ie new Vector) -> Needs update maybe?
  • [Low] Will need to add "language settings" to the sidebar when languages are enabled
  • [Low] Allow embedding a calculator widget like [6]
  • [Low] (ticket) Add JsonConfig extension needed here https://mdwiki.org/wiki/Epidemiology_of_obesity
  • [Low] Build a lock for certain pages to prevent the import tool "updating" them

On hold

Work here is pending on other stuff

  • [Low] (ticket) Add "advanced search options

User script

Medication update script

  • Move identifiers to the bottom of the page such as this[7]
  • Add the heading <!--Names--> and add "pronounce", "tradename", and "synonyms" and "IUPAC_name" under it[8]
  • Create the heading <!--External links--> and add "Drugs.com" and "MedlinePlus" under it[9]
  • Add "class", "uses", and "side effects" under <!--Clinical data--> in that order. Add "defined_daily_dose" at the end of that section if not present[10]
  • Removed {{portal bar|Medicine}} if present
  • Create the heading <!-- Legal data --> if not present and add "legal_UK", "legal_US", "legal _status" under it[11]
  • Move / add "onset" and "duration_of action" after "routes_of administration" and before "defined_daily_dose"[12]
  • Add <!--External links--> and "NLM" at the top of the drug resources template[13]
  • If {{cite web | url = https://druginfo.nlm.nih.gov/drugportal/name/lactulose | publisher = U.S. National Library of Medicine | work = Drug Information Portal | title = XX }} is present remove it and add the value present in "title =" to the NLM value in the "drug resources" template. If the value is the same as the pagename add "PAGENAME"[14]

Potential collaborators

Finished work