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

Details

Reference
bz51429
bzimport set Reference to bz51429.
NicoV created this task.Jul 16 2013, 7:36 AM
  • Bug 62417 has been marked as a duplicate of this bug. ***
Jdforrester-WMF moved this task from Backlog to Next-up on the TemplateData board.Jan 12 2015, 9:16 PM

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

Mooeypoo claimed this task.Feb 19 2015, 1:12 AM
Mooeypoo moved this task from Next-up to Doing on the TemplateData board.Feb 19 2015, 1:17 AM
Jdforrester-WMF closed this task as "Resolved".Feb 19 2015, 1:48 AM
Jdforrester-WMF set Security to None.

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

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

The fix in beta:

vs test2:

Add Comment