Comment syntax is shown in template's name in VisualEditor if a comment is included in the template invocation in wikitext.
Example: https://en.wikipedia.org/wiki/Skyfall#Box_office has a {{multiple image}} template included as such:
{{multiple image <!-- Essential parameters --> | align = left | direction = vertical … }}
When that article is opened for editing in VisualEditor, the name of the template in the context menu is shown as "multiple image <!-- Essential parameters -->". (The template can be edited and the changes saved just fine, and the dialog correctly has "Multiple image" in the header, so this is presumably a VE and not a Parsoid issue.)
The dialog also has other comments inside that appear in the fields for template values, but that falls under T52355 I suppose.