Page MenuHomePhabricator

Newly added parameters in templates are being recorded in the order that they're inserted into the template dialog, rather than the order that is specified in TemplateData
Closed, DuplicatePublic8 Estimated Story Points

Description

Steps to reproduce:

  1. Insert a template with TemplateData, whose parameters are in the order A, B, C.
  2. "Add more information", and click the fields in this order: C, B, A.

Results:

The parameters will be displayed in the template dialog in the correct order (A, B, C). However, when the page is saved, the resulting wikitext adds them in the order that you selected them in the template dialog (C, B, A).

Expected behavior:

Always follow the parameter order in TemplateData.

Event Timeline

Jdforrester-WMF set Security to None.
Jdforrester-WMF moved this task from To Triage to TR1: Releases on the VisualEditor board.

VisualEditor just provides an object with parameter names as the keys and objects containing parameter values wikitext as their values. :/

Seems this requires new parsoid functionality