Page MenuHomePhabricator

VisualEditor: Placing some templates in bulleted lists causes complex transclusions
Closed, DeclinedPublic

Description

Steps to Reproduce:

  1. Open https://ru.wikipedia.org/w/index.php?oldid=63644335&veaction=edit and look at the second section.

The wikitext is:

Б

  • [[Борисов, Бойко Методиев]] (род. 1959) — болгарский политик.
  • {{NL|Борисов, Борис}}

{{NL}} is a template that transcludes the rest of this short list.

  1. The first bullet point is plain wikitext. Click on the first item and try to change some of the text (e.g., to change the birth date from 1959 to 1960).

Actual Results:
The first bullet point can only be edited as the "content" part of a complex transclusion.

Expected Results:
That plain-text list items can be edited as plain old list items.

Reproducible: Didn't try


Version: unspecified
Severity: minor

Details

Reference
bz69117

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:35 AM
bzimport added a project: Parsoid.
bzimport set Reference to bz69117.

This is not a problem with lists per se. This is a result of how Parsoid represents templates in the DOM, and where some transclusions doesn't generate well-balanced DOM structures.

Parsoid marks complete DOM subtrees as template-generated/affected. So, in scenarios where output of a template spans multiple dom subtrees, all those affected subtrees are wrapped as one piece.

You can reproduce this behavior with a simple example like: "a {{echo|b\n\nc}} d". In this example, b and c belong to different paragraphs which also contain content from outside the transclusion. So, all of it is pulled into the template wrapping.

This is the same behavior where multiple transclusions are used to generate football tables, succession tables, etc.