Page MenuHomePhabricator

Feature request: Gadget to hide imperial units
Open, Stalled, LowPublic

Description

I would like a Gadget, in https://en.wikipedia.org/wiki/Special:Preferences#mw-prefsection-gadgets that would allow me to prevent an article from generating certain units when it uses the {{convert}} template https://en.wikipedia.org/wiki/Template:Convert

I live in Canada where we are constantly torn between the US and the rest of the world on this. For example I tell people how fast I was going in km/h but if you ask me how much I weight in kilograms, I would have to divide by two. I don't want to learn imperial units. Accidentally seeing them in articles makes me more familiar with them. Since this information is stored in forms like {{convert|74|to|85|m}} I'm thinking it might be possible to disable it.

Either just have a "don't show imperial unit conversions" checkbox or have a list of all the units and a check box next to each one individually. For example, I still want to see naval speeds in knots. If the Convert template is given in imperial units (eg. {{convert|5|in}} ) then you should display them regardless of the setting.

Writing a Chrome extension for this is nigh impossible as this information is lost in the HTML.

Sorry for not tagging this, but the tag search for "wikipedia" and "request" was useless. I scrolled through like 60 list items and couldn't find anything.

Event Timeline

Ake created this task.Sep 1 2019, 6:28 PM
Restricted Application added subscribers: Liuxinyu970226, Aklapper. · View Herald TranscriptSep 1 2019, 6:28 PM
Nirmos added a subscriber: Nirmos.

This would be trivial if appropriate HTML was added to https://en.wikipedia.org/wiki/Template:Convert and extremely unreliable as things currently stand (you would basically have to run a regex substitution across the entire page).

With that said, the Gadgets tag on Phabricator is for the Gadgets extension, not individual gadgets on-wiki.

DannyS712 claimed this task.Sep 1 2019, 9:23 PM
DannyS712 triaged this task as Low priority.
Restricted Application added a project: User-DannyS712. · View Herald TranscriptSep 1 2019, 9:23 PM
DannyS712 changed the task status from Open to Stalled.Sep 1 2019, 9:28 PM
DannyS712 moved this task from Unsorted to In progress on the User-DannyS712 board.

Proposed onwiki at https://en.wikipedia.org/wiki/Template_talk:Convert#Proposed_edit
Stalling until a script can target the template