Last modified: 2012-04-16 09:16:03 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T28509, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 26509 - Add a new javascript global variable for wiki-sets ("Global sysop wikis", "global bot wiks")
Add a new javascript global variable for wiki-sets ("Global sysop wikis", "gl...
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
unspecified
All All
: Lowest enhancement (vote)
: ---
Assigned To: Michael Dale
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-12-30 16:57 UTC by Quentinv57
Modified: 2012-04-16 09:16 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Quentinv57 2010-12-30 16:57:19 UTC
Hello,

I'm not sure this is the correct place to post it. If not, feel free to change it.

I'd like you to add a new javascript global variable, like wgUserGroups or wgGlobalGroups. There is a list here (http://www.mediawiki.org/wiki/Manual:Interface/JavaScript).
I'd like this global variable to contain the wiki-sets (i.e. "Global sysop wiki" or "Global bot wiki") the wiki belongs to.

I need this change in order to write a JS tool that should make stewards' life easier by hiding (or changing the color of) the sysop buttons on non-GS wikis. Stewards should not make deletions (except emergencies) on non-GS-wikis, so they'll be able to know whether they can or not just by going on the page.

Thanks a lot by advance.
Comment 1 Chad H. 2010-12-30 16:59:42 UTC
Can we get another use case? 

Adding more global javascript variables for such a narrow purpose that benefits exactly 30 people in the entire world just doesn't seem worth it.
Comment 2 Quentinv57 2010-12-30 17:10:27 UTC
Yes, I understand that you don't want to do such a change for a minority.

But your commentary has given me an idea : I can also use "wgDBname" variable and test if this variable belongs to a pre-defined array. The inconvenience is that the list should be changed everytime the GS wiki list changes.

I'll do that so. Thanks nevertheless.
Comment 3 Quentinv57 2010-12-30 20:25:09 UTC
The script is now available if somebody is interested.
See http://meta.wikimedia.org/wiki/User:Quentinv57/HideButtonsFromNonGsProjects.js

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links