Page MenuHomePhabricator

VisualEditor: <ref> references overrides tempaltes with ref
Closed, DuplicatePublic

Description

Suppose we edit a page with the following content:

ABC{{ref|1}} BBB
==References==
{{references}}

Using VE, cite option we add additional ref so the output text will be:

ABC{{ref|1}} BBB<ref>{{Cite news...}}</ref>
==References==
{{references}}

Expected: references should show 2 citations,
Actual: it shows only the second (newly added) INSTEAD of the first

(I noticed this bug in hewiki, but the bug report uses English names for templates for clarity. For reproducing the bug in hewiki, use {{הערה}} instead of {{ref}} and {{הערות שוליים}} instead of {{references}})

Event Timeline

There is already a bug for this on he.wiki. I don't think this is an issue on en.wiki because {{ref}} is deprecated ("This is no longer the recommended method of citing sources").