Page MenuHomePhabricator

Turn the markAdmins gadget into an extension
Open, Needs TriagePublic

Description

The markAdmins gadget is on 34 wikis (default on 3) and used by 2,712 active users (21,160 total users).

Is it worth turning it into an extension? (This is part of T177674: Investigation: Short-term solutions for global gadgets.)

Lots of these scripts seem to manually list the admin usernames; the Commons one does it differently. Perhaps the easiest solution is to load the commons one on other wikis?

The wikis are:

LinkTotal usersActive usersOn by default?
https://it.wikipedia.org/wiki/MediaWiki:Gadget-markAdmins.js79470
https://lez.wikipedia.org/wiki/MediaWiki:Gadget-markadmins.js1550
https://de.wikipedia.org/wiki/MediaWiki:Gadget-markAdmins.js34599160
https://ba.wikipedia.org/wiki/MediaWiki:Gadget-markadmins.js21100
https://az.wikipedia.org/wiki/MediaWiki:Gadget-markadmins.js2150
https://tt.wikipedia.org/wiki/MediaWiki:Gadget-markadmins.js800
https://eo.wikipedia.org/wiki/MediaWiki:Gadget-markadmins.js5660
https://ca.wikipedia.org/wiki/MediaWiki:Gadget-markAdmins.js530
https://sr.wikipedia.org/wiki/MediaWiki:Gadget-Markadmins.js25110
https://lt.wikipedia.org/wiki/MediaWiki:Gadget-markadmins.js6830
https://ru.wikipedia.org/wiki/MediaWiki:Gadget-markadmins.js143469470
https://udm.wikipedia.org/wiki/MediaWiki:Gadget-markadmins.js600
https://sah.wikipedia.org/wiki/MediaWiki:Gadget-markadmins.js1610
https://bs.wikipedia.org/wiki/MediaWiki:Gadget-Markadmins.js10150
https://ce.wikipedia.org/wiki/MediaWiki:Gadget-markadmins.js1420
https://av.wikipedia.org/wiki/MediaWiki:Gadget-markadmins.js200
https://ne.wikipedia.org/wiki/MediaWiki:Gadget-markAdmins.js1
https://dsb.wikipedia.org/wiki/MediaWiki:Gadget-markadmins.js1000
https://bxr.wikipedia.org/wiki/MediaWiki:Gadget-markadmins.js910
https://mai.wikipedia.org/wiki/MediaWiki:Gadget-markAdmins.js1
https://dty.wikipedia.org/wiki/MediaWiki:Gadget-markAdmins.js1
https://hy.wikipedia.org/wiki/MediaWiki:Gadget-markadmins.js1090
https://hsb.wikipedia.org/wiki/MediaWiki:Gadget-markadmins.js2010
https://tg.wikipedia.org/wiki/MediaWiki:Gadget-markadmins.js3050
https://de.wikivoyage.org/wiki/MediaWiki:Gadget-markAdmins.js5970
https://ru.wikisource.org/wiki/MediaWiki:Gadget-markadmins.js162160
https://ru.wikinews.org/wiki/MediaWiki:Gadget-markadmins.js10590
https://ru.wikibooks.org/wiki/MediaWiki:Gadget-markadmins.js1850
https://az.wikibooks.org/wiki/MediaWiki:Gadget-markadmins.js100
https://hy.wikiquote.org/wiki/MediaWiki:Gadget-markadmins.js330
https://ru.wikiquote.org/wiki/MediaWiki:Gadget-markadmins.js12410
https://ru.wiktionary.org/wiki/MediaWiki:Gadget-markadmins.js140130
https://commons.wikimedia.org/wiki/MediaWiki:Gadget-markAdmins.js11853610
https://www.wikidata.org/wiki/MediaWiki:Gadget-markAdmins.js10423200

Event Timeline

Perhaps the easiest solution is to load the commons one on other wikis?

There isn't anything magical here.

@zhuyifei1999: ah, oops I'm not sure how I overlooked that :-)

So maybe it could benefit from a server-side generation of the admin list (and perhaps a localstorage cache of the same?).

Use the XTools API! https://xtools.wmflabs.org/api/project/admins_groups/commons.wikimedia.org (documentation). It caches for 10 minutes, but that particular endpoint is very fast even without caching.

No really, don't use it in the extension. You could, and that'd be really cool, but you probably shouldn't.

:-) XTools will never be far from our minds (even if we don't use it...).


Also, possibly markblocked could be part of the same extension. @TBolliger is that something you might know about (adding indicators to blocked users)?

Also, possibly markblocked could be part of the same extension. @TBolliger is that something you might know about (adding indicators to blocked users)?

See T172554: Links to blocked/locked user accounts should be visually distinctive

Also, possibly markblocked could be part of the same extension. @TBolliger is that something you might know about (adding indicators to blocked users)?

See T172554: Links to blocked/locked user accounts should be visually distinctive

We're helping code review some work by @Huji on T172348: Links to blocked/locked user accounts should have a class indicating so but do not think T172554: Links to blocked/locked user accounts should be visually distinctive should be made the default behavior for users without a larger on-wiki consultation. It's not an active priority for us at the moment, but we're happy to help where appropriate.

I would support this. I've also local a rewritten fork from the Commons version for DeWiki. But there seems not really competent active tech admin anymore. The Commons version is indeed more modern and performant.