Page MenuHomePhabricator

Order the suggested parameters in the TemplateData generator more logically
Closed, DeclinedPublic

Description

I sometimes add TemplateData using the TemplateData generator, and it often happens that when the generator auto-identifies the existing parameters, the numbered (unnamed) parameters appear in the wrong order: "2, 1", instead of "1, 2". It's not consistent - sometimes it is "1, 2".

It would be nice to have them always ordered by their number.

Event Timeline

Amire80 raised the priority of this task from to Needs Triage.
Amire80 updated the task description. (Show Details)
Amire80 added subscribers: Amire80, Mooeypoo.
Jdforrester-WMF changed the task status from Open to Stalled.Nov 24 2015, 8:16 PM
Jdforrester-WMF subscribed.

They are sorted by the defined order in the TemplateData if it exists; on first generation, I believe they are sorted by the order in which they appear in the template. I think alphabetical order would be if anything more confusing, surely?

Krenair renamed this task from Order the suggested parameters in the VisualEditor TemplateData generator more logically to Order the suggested parameters in the TemplateData generator more logically.Jan 13 2016, 5:58 AM
Krenair removed a project: VisualEditor.
Krenair set Security to None.