# [[ https://www.mediawiki.org/w/index.php?title=Template:RFC&action=edit | Edit Template:RFC]]
# You get a warning "Please note: there is already a TemplateData block on the related page 'Template:RFC/doc'."
# OK, so [[ https://www.mediawiki.org/w/index.php?title=Template:RFC/doc&action=edit&debug=1 | edit RFC/doc]]
# Its markup does indeed show a `<templatedata>` block of code, with `description` and `params`
# I want to edit that, so click [Manage TemplateData] button.
Result:
* Template description and parameter order are empty. There's a panel button to "Add 13 parameters", but they and description should show up in the existing template.
The existing `<templatedata>` is invalid JSON (the status parameter's description is a multi-line string, it should be one line with '\n's), maybe that's the problem. But there's no warning, not even in the browser console or from any APi request. I can load, edit, and save Template:RFC/doc without getting any warning that it's got an invalid `<templatedata>` block.
Furthermore, if I [[ http://www.mediawiki.org/w/api.php?action=templatedata&titles=Template:RFC | make the `templatedata` API request for Template:RFC ]], it returns all the templatedata parameters, despite the bad JSON (it puts the status parameter's description on one line).
Expected result: either show me the current template parameters because the templatedata API request succeeds; or warn or fail on edit/preview/save because the `<templatedata>` block is not valid JSON.