I'd like for there to be an environmental variable to allow the Manage TemplateData button/widget to recognize on a per-template basis a different page than the subpage specified by the default MediaWiki:Templatedata-doc-subpage.
In many of the more complex and intricate templates, TemplateData is becoming a large burden on those editing /doc subpages, splitting up the human readable wiki markup text with an enormous block of machine readable JSON code. Unfortunately the most commonly used tool to edit and create TemplateData demands that every template on-wiki to only use a single subpage, regardless of whether a given template is better served by maintaining that code somewhere else and transcluding it to /doc be available to the Visual Editor and other read-only tools.
Much like the development of the {{documentation}} template allowed for early wikipedia documentation to be moved from the <noinclude></noinclude> tags on the main template page into a /doc subpage, this will allow us to begin using a {{TemplateData}} template to separate our TemplateData, and even bring in the possibility of having templates with shared code-bases to also share their TemplateData at some point in time.