Currently template data supports "wiki-page-name" which indicate a parameter is expected a name of wiki page in the current wiki. It would be useful to extend it with some extra parameter that describes the expected namespace of the page. For example, [[:en:Template:Tl]] expects to get a page in template namespace.
Some additional information for the motivation for creating this bug: there is also user script/gadget that use templatedata to autocomplete templates in wikitext interface [https://en.wikipedia.org/wiki/Wikipedia:User_scripts#cite_ref-49]. Such script can take advantage of this indication and suggest only pages in template namespace.