Page MenuHomePhabricator

Enable tabbedWindow Gadget on test.wikipedia.org
Closed, ResolvedPublic

Description

As a part of my GSoC, I have created a script tabbedWindow.js. So before deploying it on the MediaWiki.org, We need and want to deploy it on the Test Wiki. So that we and other users can test script

Script description
It embeds an OOUI tabbed window on all pages in the API namespace. Each tab of the window contains sample code in a programming language (PHP, Javascript, Python, etc.) demonstrating the use of the MediaWiki Action API.

Script JS Code:- https://www.mediawiki.org/wiki/User:Jayprakash12345/tabbedWindow.js
Script CSS Code:- None
Gadget Text:- It embeds an OOUI tabbed window on all pages in the API namespace.

It should be enabled by default for all users.

Event Timeline

Restricted Application added a project: User-Jayprakash12345. · View Herald TranscriptJul 12 2019, 7:53 PM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
srishakatux claimed this task.EditedJul 12 2019, 8:02 PM
srishakatux added a subscriber: srishakatux.

@Jayprakash12345 It looks like I have the interface admin rights on test wiki: https://test.wikipedia.org/wiki/Special:ListUsers/interface-admin. I can help enable your Gadget there.

(the token I awarded above is for your user script ;-))

Thanks, Srishti Ji for claiming it :)

Your Gadget is available here now: https://test.wikipedia.org/wiki/MediaWiki:Gadget-tabbedwindow.js. The OOUI tabbed window is showing up here: https://test.wikipedia.org/wiki/API:Sandbox :) You can test it further. I made a small change in the variable declaration for indexLayout and panelLayout to get this to work.

Ideally, you don't need this mw.loader.using( 'oojs-ui', 'oojs-ui-core', 'mediawiki.Title' ) as we take care of the dependencies in the Gadget definition, see: https://test.wikipedia.org/wiki/MediaWiki:Gadgets-definition#Recent_Tests. So, when we deploy on MediaWiki.org, you can consider making these small changes in the code.

srishakatux closed this task as Resolved.Jul 17 2019, 12:16 AM

(feel free to re-open if there are any issues)

(feel free to re-open if there are any issues)

@srishakatux Thank you, Srishti Ji :)