Last modified: 2013-08-30 22:01:24 UTC
TemplateSpecModel currently doesn't expand aliases, so if it knows something as "foo" with an alias of "1" and the dialog asks about "1", it returns nothing.
Related URL: https://gerrit.wikimedia.org/r/70111 (Gerrit Change I37ec0e152df905844ac58ed1834fca29dccb4eec)
More a question that a bug. How do you specify an alias using templateData? There are lots of examples which use alternate capitalisation for parameters. For example {{Infobox World Heritage Site}} http://en.wikipedia.org/wiki/Template:Infobox_World_Heritage_Site uses both 'Image' and 'image' to specify an image. To specify both makes the documentation clumsy. An alias would be ideal. Also {{Quote}}} http://en.wikipedia.org/wiki/Template:Quote can be given in two forms, either positional: {{quote|phrase|person|source}} or named: {{quote|text=phrase|sign=person|source=source}} Currently both are documented but it would be nicer to use aliases.
See https://www.mediawiki.org/wiki/Extension:TemplateData#Defining_a_TemplateData_block Example: { params: { image: { label: 'File name', ..., aliases: ['1', 'Image', 'Filename', .. ] } } }