Last modified: 2014-09-07 00:04:55 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 T71650, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69650 - Create an extension to add a "Sandbox" link to the personal toolbar
Create an extension to add a "Sandbox" link to the personal toolbar
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Extensions requests (Other open bugs)
master
All All
: Unprioritized normal (vote)
: ---
Assigned To: Bartosz Dziewoński
: easy
Depends on:
Blocks: 70499
  Show dependency treegraph
 
Reported: 2014-08-16 19:33 UTC by Bartosz Dziewoński
Modified: 2014-09-07 00:04 UTC (History)
7 users (show)

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


Attachments

Description Bartosz Dziewoński 2014-08-16 19:33:26 UTC
Just about every Wikimedia wiki adds a "Sandbox" link to the personal toolbar of registered users with common.js code or a default-enabled gadget. We should probably do this in PHP instead.

This would let us fix at least two problems with the JS approach (that have actually been reported as bugs here, which clearly shows that people think of this as a core feature):

* The link could be marked as red when the page doesn't exist (bug 69649)
* The link could be displayed on pages where user JS isn't allowed (bug 64517)
Comment 1 Kunal Mehta (Legoktm) 2014-08-16 19:38:03 UTC
I suppose this could just be a hook in wmf config too?
Comment 2 Bartosz Dziewoński 2014-08-16 19:44:18 UTC
Probably, but writing a trivial extension sounds better from the maintainability standpoint to me. Easier to find the code if it's in mediawiki/extensions/SandboxLink rather than operations/whatever/wikimedia-config-blah.
Comment 3 Kunal Mehta (Legoktm) 2014-08-16 19:53:27 UTC
Yeah, extension sounds good.
Comment 4 MZMcBride 2014-08-19 02:26:18 UTC
I'm not sure Bartosz was volunteering. :-)

The extension's requirements and architecture are still a bit murky to me. Presumably you'd want the ability to specify a link text message, a link target message, and an insertion point?
Comment 5 Bartosz Dziewoński 2014-08-29 20:24:36 UTC
I am indeed volunteering. I was meaning to do this already, but got distracted.

The extension is meant to provide the exact same functionality as [[w:MediaWiki:Gadget-mySandbox.js]], with the exact same set of customizable (via system messages) options (see the 'conf' entry in the gadget's code).
Comment 6 Gerrit Notification Bot 2014-08-29 22:26:09 UTC
Change 157297 had a related patch set uploaded by Bartosz Dziewoński:
Add SkinPreloadExistence hook

https://gerrit.wikimedia.org/r/157297
Comment 7 Gerrit Notification Bot 2014-08-29 22:39:27 UTC
Change 157296 had a related patch set uploaded by Bartosz Dziewoński:
Initial extension code

https://gerrit.wikimedia.org/r/157296
Comment 8 Gerrit Notification Bot 2014-09-03 18:34:51 UTC
Change 157297 merged by jenkins-bot:
Add SkinPreloadExistence hook

https://gerrit.wikimedia.org/r/157297
Comment 9 Gerrit Notification Bot 2014-09-06 22:25:46 UTC
Change 157296 merged by Legoktm:
Initial extension code

https://gerrit.wikimedia.org/r/157296

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


Navigation
Links