Page MenuHomePhabricator

Convert TemplateWizard gadget into an extension
Closed, ResolvedPublic5 Estimated Story Points

Description

Sam's created the template wizard gadget which works nicely. Check it out with adding this in your commonJS -
mw.loader.load( 'https://en.wikipedia.org/w/index.php?title=User:Samwilson/TemplateWizard.js&action=raw&ctype=text/javascript' );

Work is ongoing for the final bit T186672: Handle form submission, data type validation, and inserting template markup into the WikiText (Infobox wizard).

As long as most of the code is in JS, converting this into an extension should be straightforward. That'd allow us to write tests for it more easily, deploy everywhere at once and support localization more easily {{cn}}.

Event Timeline

Repo created, LMK if it needs some settings tweaked.

Niharika set the point value for this task to 5.Feb 28 2018, 12:56 AM

Change 415236 had a related patch set uploaded (by Samwilson; owner: Samwilson):
[mediawiki/extensions/TemplateWizard@master] First draft

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

Change 415237 had a related patch set uploaded (by Samwilson; owner: Samwilson):
[integration/config@master] Add TemplateWizard extension

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

Change 415237 merged by jenkins-bot:
[integration/config@master] Add TemplateWizard extension

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

Amire80 added subscribers: IKhitron, eranroz, Kipod.
Amire80 added a subscriber: Amire80.

Adding some he.wikipedia editors who work with templates.

he.wikipedia has comparable gadgets, and perhaps experience could be shared.

The basic gadget code (and boilerplate extension files) is ready for review: https://gerrit.wikimedia.org/r/#/c/415236/

The CI patch is done, and the tests passing. I removed stylelinting for now because we don't have any stylesheets, so somehow we will remember to reenable it when we add any. :)

Also added the extension to https://www.mediawiki.org/wiki/Git/Reviewers#mediawiki/extensions/TemplateWizard

Change 415236 merged by jenkins-bot:
[mediawiki/extensions/TemplateWizard@master] First draft

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

Niharika moved this task from Needs Review/Feedback to Q1 2018-19 on the Community-Tech-Sprint board.

Yay! Another extension is born! 🚀