Topic on Extension talk:TemplateData

TemplateData editor and paramOrder

3
Summary by Thiemo Kreuz (WMDE)

Fixed in more recent versions.

MLRodrigue (talkcontribs)

I have a template that I created in MW 1.31 (TemplateData 0.1.2). The TemplateData editor does not create the paramOrder object, but the order still works, because it adheres to the order in which the parameters are defined in the source code.

However, in my MW 1.35 this no longer works. The params are ordered based on their name instead. Since the editor does not create the paramOrder, I now have to manually add it in the source code for each template. I would like to avoid that and don't know if it's just an issue in my wiki that the paramOrder object is not created automatically by the editor?

Thiemo Kreuz (WMDE) (talkcontribs)

I wasn't involved back then and can't tell when this broke, and where. It's potentially related to an unrelated change in Parsoid. But I'm aware of this issue. We fixed it just recently via gerrit:700350. This is part of MediaWiki 1.37, but not earlier, unfortunately. I think the best option you have (other than using 1.37) is to add a specific paramOrder to each template. The TemplateData editor isn't designed to do this automatically.

MLRodrigue (talkcontribs)

Okay, then I know what to do. Thanks for the prompt answer!