Page MenuHomePhabricator

An HTML comment after a template name in a transclusion appears in VisualEditor's popup
Closed, DuplicatePublic

Description

To reproduce, edit the article Oakland, California.

Click the top infobox, and note the text in the popup: "Generated from: Infobox settlement <!-- See the table at Template:Infobox settlement for all fields and descriptions of their usage. -->".

I would expect just "Generated from: Infobox settlement".

(Important: if you don't see the bug, try this revision.)

Screenshot:

Editing Oakland  California   Wikipedia.png (889×600 px, 303 KB)

The reason is probably the HTML comment, which appears immediately after the template name:

{{Infobox settlement
<!-- See the table at Template:Infobox settlement for all fields and descriptions of their usage. -->
|name                     = Oakland, California

The same doesn't happen in the article Hoboken, New Jersey, which has the same infobox template, but no HTML comment.

Probably related bug: T150468: A template transclusion with an HTML comment after the template name cannot be adapted by Content Translation