Page MenuHomePhabricator

TemplateData: Display a useful message instead of an empty table for templates that take no parameters
Closed, ResolvedPublic

Description

Currently, if you use TemplateData for a template without any parameters, you still have to create an empty "params" in the JSON (not really important), but you also end up with a "Template parameters" table with just the title line (Parameter Description Type Default Status).

Rather than displaying an empty table, I think it would be better to display no table at all, or a simple message saying that no parameters are defined for this template.


Version: unspecified
Severity: minor

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 2:01 AM
bzimport added a project: TemplateData.
bzimport set Reference to bz51429.
  • Bug 62417 has been marked as a duplicate of this bug. ***

It would also be useful if you could set "no parameters" in the TemplateData so that VisualEditor does not suggest adding a parameter for these templates.

Change 191518 had a related patch set uploaded (by Mooeypoo):
Display a message when no parameters are defined

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

Patch-For-Review

Change 191518 merged by jenkins-bot:
Display a message when no parameters are defined

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