Page MenuHomePhabricator

Some navbox and other templates disappear when being moved, but only if <ref> tags are present in the article and the templates are below the last visible text
Closed, ResolvedPublic

Description

Intention:
Change the location of a navigation template in an article

Steps to Reproduce:

  1. Click once on a "navbox" type template at the bottom of a page to select it.
  1. Click and drag the item to any place in the article.

Actual Results:
In affected articles, the navbox disappears upon dropping. Affected articles include:

https://en.wikipedia.org/wiki/Yersinia_pseudotuberculosis

https://en.wikipedia.org/wiki/Albert_I_of_Belgium

https://en.wikipedia.org/wiki/Vancouver_Canucks

Unaffected articles include:

https://en.wikipedia.org/wiki/Dunn_Peak_massif

https://en.wikipedia.org/wiki/Waging_Heavy_Peace:_A_Hippie_Dream

https://en.wikipedia.org/wiki/British_Columbia

If all the <ref> tags are removed from these articles, then dragging and dropping works as expected. Removing only some refs (even leaving in just one plain text ref) is not sufficient, except that transcluded notes/refs (in the Canucks article) are okay.

Expected Results:
That it would drag and drop normally in all articles.

Reproducible: Sometimes

This has been confirmed by at least three users, so it's probably platform independent.

Changing from {{reflist}} to <References /> has no effect. Removing all templates has no effect. Other non-floated templates (i.e., {{InterPro content}}) do not seem to be affected.

If you:

  1. Remove all the refs,
  2. Move the navbox template, and
  3. Then add a new ref,

(in that exact order), you can still move the navbox without it disappearing, despite the presence of your new ref.


Version: unspecified
Severity: normal

Details

Reference
bz56923

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:30 AM
bzimport added a project: VisualEditor.
bzimport set Reference to bz56923.

This is reproducible every time in affected articles, and never in unaffected ones. I have no idea why some articles are affected and others are not.

This problem also exists with some other types of non-floating templates:

The problem may be due to the location of the templates rather than their identity. http://en.wikipedia.org/wiki/Gennady_Golovkin contains two succession boxes, but only the one at the end of the page disappears when it is moved.

Jdforrester-WMF changed the task status from Open to Stalled.Feb 2 2015, 7:24 PM

I checked all the affected articles listed by @Whatamidoing-WMF, and the templates in question can now be properly dragged.

Jdforrester-WMF claimed this task.

OK, in that case now marking as resolved.