https://bugzilla.wikimedia.org/show_bug.cgi?id=50120

--- Comment #14 from [email protected] ---
This may be a VE bug (unconfirmed).  Here is what I did.

I parsed mw:Jayaprakash Narayan on my local parsoid install and saved the HTML.
I then added a <link rel="mw:WikiLink/Category" href="Category:foobar"> (a new
category essentially mimicking editor behavior), but I added it between the
empty span that marks the opening of the Persondata tmeplate and the <table>
that is part of the template.  This effectively splits the template and
duplicates the rest of the template.

If you look at the diff in
https://en.wikipedia.org/w/index.php?title=Jayaprakash_Narayan&diff=563627722&oldid=563627392,
all the categories are between the end of the template and the table. The above
experiment yielded something similar, except in the diff, all categories are
moved up.

So, it does seem that when a user adds categories, new/old categories are being
moved/inserted between the empty span and the table breaking the atomic
encapsulated template into two.

Also note that this only seems to affect Persondata template 
* in original wikitext, default sort template immediately follows the
persondata template.
* it has an empty span before/after the table
* it has display:none set on it which means it doesn't show up in the editor.

Not sure if cursor position affects where categories are inserted.  Can VE
folks verify this hypothesis?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to