Template talk:User
OHM
The ohm= parameter seems to be hastily added and needs some improvements. I already fixed a bug where it made even some of the examples on this page not work correctly (empty osm= argument).
Some issues remain. Specifically:
{{User|lcmortensen|ohm=lcmortensen|osm=}} ->
lcmortensen ( on osm, edits, contrib, heatmap, chngset com., on ohm) - contains broken links to OSM.org and other tools.
If osm= is empty, then the output should be similar to noedits=1 and only show a link to OHM:
{{User|lcmortensen|noedits=1}} ->
lcmortensen (on osm)
{{User|lcmortensen|wiki=|noedits=1}} ->
lcmortensen (on osm)
(But with ohm instead of osm)
--NeatNit (talk) 10:19, 14 May 2025 (UTC)
- @NeatNit: Thanks for spotting these issues. I think these remaining issues might have already been present before I touched the template. I tried to avoid changing too much about the template when adding the OHM link in, but it proved quite fragile. I proposed a #Rewrite of the template that should fix the issues you've raised:
{{User/sandbox|lcmortensen|osm=}}→{{User/sandbox|lcmortensen|ohm=lcmortensen|osm=}}→{{User/sandbox|lcmortensen|noedits=1}}→{{User/sandbox|lcmortensen|wiki=|noedits=1}}→
- Please let me know if you spot any other issues that would prevent us from deploying the rewrite. Thank you!
- – Minh Nguyễn 💬 20:22, 29 September 2025 (UTC)
Rewrite
I've written this template at Template:User/sandbox with the following improvements:
- Replaced the user avatar with File:Codex icon userAvatar.svg. The icon inverts based on the light/dark mode setting. This matches the Vector 2022 skin, which is currently the default. The current icon was based on the MonoBook style, which hasn't been the default skin on this wiki for some 15 years.
- Deprecated the |m = and |f = parameters, which controlled whether to make the user avatar look masculine, feminine, or gender-neutral. The template no longer performs that customization automatically based on whether the user has set the MediaWiki interface to address them using male or female pronouns. That option is supposed to be personal, so exposing it publicly via the template is probably surprising and problematic from a privacy standpoint. The new icon is abstract enough to be perceived as gender-neutral to begin with, making this complex set of options unnecessary.
- Simplified the wikitext and generated HTML code using {{Hlist}} and a template stylesheet. This hopefully fixes the corner cases in #OHM. It also has the side benefit of improving screen reader accessibility.
- Link labels are localizable via custom MediaWiki messages.
Unlike previous rewrites, efficiency wasn't the main goal with this rewrite, but we should make sure that pages with an extreme number of transclusions of this template will still parse without hitting the template expansion limit.
– Minh Nguyễn 💬 20:22, 29 September 2025 (UTC)
- First, the icon similar to the interface icons (I use vector 2022) disturbed me a bit. But I can get used to it. I would use the "color-subtle" version
which is less strong. Maybe the icon should be a little bit smaller?
I don't mind of the gender things. In puncto performance I tried your template at the page Getting The Source and didn't encounter anything. --Chris2map (talk) 14:54, 7 November 2025 (UTC)