Last modified: 2013-11-07 21:15:49 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T55608, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 53608 - TemplateData: Express key order for parameters to set the "normal order of display/usage" for templates
TemplateData: Express key order for parameters to set the "normal order of di...
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
TemplateData (Other open bugs)
master
All All
: High enhancement (vote)
: ---
Assigned To: Krinkle
:
Depends on:
Blocks: 51930
  Show dependency treegraph
 
Reported: 2013-08-30 23:02 UTC by James Forrester
Modified: 2013-11-07 21:15 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description James Forrester 2013-08-30 23:02:36 UTC
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.
Comment 1 Gerrit Notification Bot 2013-10-22 20:00:37 UTC
Change 89867 had a related patch set uploaded by Jforrester:
Add Root#paramOrder to spec and implemention thereof

https://gerrit.wikimedia.org/r/89867
Comment 2 Gerrit Notification Bot 2013-11-07 19:39:16 UTC
Change 89867 merged by jenkins-bot:
Add Root#paramOrder to spec and implemention thereof

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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links