Wikimedia

VisualEditor: Strip leading spaces from the "format" field in TemplateData GUI

This task is about VisualEditor. See its user guide for general information. (You will need to make a patch for the TemplateData extension.)

In the TemplateData GUI (opened via "Manage TemplateData" button while editing the template), it's unfortunately easy to accidentally end up with a format that specifies a leading space, which is invalid, and therefore the page can't be saved.

We should automagically strip the leading spaces from that field (and trailing spaces, if that's also a problem).

You are expected to provide a patch in Wikimedia Gerrit. See https://www.mediawiki.org/wiki/Gerrit/Tutorial for how to set up Git and Gerrit.

Task tags

  • mediawiki
  • visualeditor
  • javascript

Students who completed this task

Jan Rosa

Task type

  • code Code
close

2018