Page MenuHomePhabricator

TemplateData: Express key order for parameters to set the "normal order of display/usage" for templates
Closed, ResolvedPublic

Description

From bug 51930 comment 4:

There is a good case for imposing some ordering on the template parameters.
Often you find some parameters naturally group together. Take for example
http://en.wikipedia.org/wiki/Template:Infobox_single/doc There are various
parameters which group together:
*Ones relating to the image (Cover, Alt, Caption and Border)
*Ones to do with the single chronology (Last single, This single, Next single)
for infoboxes a prefered order would generally be the order they appear in the
template.

Sounds like a worth-while improvement for TemplateData.

Given that when the JSON block is slung at the parser, we know that it won't have been re-ordered, we can even automagically set it for TemplateData blocks set through the wikitext editor to be the same as the input order, so users would only have to set this manually if they want to over-ride for some reason.


Version: master
Severity: enhancement

Details

Reference
bz53608

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 2:08 AM
bzimport added a project: TemplateData.
bzimport set Reference to bz53608.

Change 89867 had a related patch set uploaded by Jforrester:
Add Root#paramOrder to spec and implemention thereof

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

Change 89867 merged by jenkins-bot:
Add Root#paramOrder to spec and implemention thereof

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