Page MenuHomePhabricator

TemplateData parameters should not be case sensitive
Closed, InvalidPublic1 Estimated Story Points

Description

See https://fi.wikipedia.org/w/index.php?title=Oc%C3%A9ane_Dodin&type=revision&diff=15960074&oldid=15735976
In https://fi.wikipedia.org/w/index.php?title=Malline:Verkkoviite/ohje&action=edit we have put all the parameters in lower case (meaning the first letter is small)
so if we write the parameters in article in way that the first letter is a capital letter, then it won't be recognized.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Jdforrester-WMF triaged this task as High priority.
Jdforrester-WMF set the point value for this task to 1.
Jdforrester-WMF moved this task from To Triage to TR0: Interrupt on the VisualEditor board.

It looks to me like MediaWiki template parameters are case sensitive. So the behaviour of VE/TD seems correct.

AlexMonk-WMF, Can you confirm if i understand correctly. TemplateData aliases should work so that if there is in TemplateData parameter {{{Title}}} with alias {{{title}}} and it is used in article like this:

{{foo|title=Sometitle}}

Then in visual editor when user is editing the template then there is in edit form row for "Title" with empty value and row for "title" with value "Sometitle". In VE user interface both are identical and there is no way to tell why there is two different titles and where values are coming..

This is how aliases is supposed to work? If so then this behaviour should be documented to somewhere like to https://www.mediawiki.org/wiki/Help:TemplateData#Parameter_aliases

I don't think TD's aliases are used for anything except parameter searching in VE? In any case if we're mishandling aliases you need to open a new task for that.

Actually, that and this sound kind of related to T143650 which I have yet to figure out