Page MenuHomePhabricator

Template is replaced with a different template on save
Closed, ResolvedPublic

Description

See this test at nl.wiki.
All I did was changing the word at line 43.
VE replaced the template at the top with another one which was already in the article, therefore duplicating it.

Event Timeline

Elitre raised the priority of this task from to Needs Triage.
Elitre updated the task description. (Show Details)
Elitre added a project: VisualEditor.
Elitre subscribed.
Jdforrester-WMF renamed this task from Unwanted replacement of template to Template is replaced with a different template on save.Mar 27 2015, 2:47 AM
Jdforrester-WMF triaged this task as Unbreak Now! priority.
Jdforrester-WMF added a project: Parsoid.
Jdforrester-WMF subscribed.

I suspect an ID issue.

Ya, the id sjabloon_zie is duplicated from templates:

{{zie dp}}

and

{{Zie artikel}}

I made this change,
https://nl.wikipedia.org/w/index.php?title=Sjabloon%3AZie_artikel&diff=43710077&oldid=42670382

Now we wait for restbase to update. In general, the above patch should help these cases.

id affects only data-parsoid and templates are serialized with data-mw .. and I had to scratch my head for a second before being convinced this is an id issue. Selective serialization uses dsr information which is present in data-parsoid. So yes, this is related to duplicate ids.