Last modified: 2014-07-27 02:18:32 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T67301, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 65301 - VisualEditor: If a reference is defined in a template, and re-used outside of it, and you delete the template, then the reference contents get lost
VisualEditor: If a reference is defined in a template, and re-used outside o...
Status: ASSIGNED
Product: VisualEditor
Classification: Unclassified
Data Model (Other open bugs)
unspecified
All All
: Low enhancement
: ---
Assigned To: Editing team bugs – take if you're interested!
:
Depends on: 50896
Blocks:
  Show dependency treegraph
 
Reported: 2014-05-14 19:01 UTC by WhatamIdoing
Modified: 2014-07-27 02:18 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description WhatamIdoing 2014-05-14 19:01:13 UTC
Steps to Reproduce:
1. Start with a page that contains:

(a) a template with a named ref inside it:  {{quote|Text.<ref name=Foo>Example citation</ref>}}

(b) Some text outside the template that re-uses that citation:  Text.<ref name=Foo />

2. Open the page in VisualEditor and remove the template.



Actual Results:  
The named ref becomes undefined.  VisualEditor doesn't "see" the citation inside the template, so it can't rescue the re-used template-based citation content when the template is deleted.

Expected Results:  
That the citation content would be preserved, just like it is preseved when the first instance of a re-used citation in regular page text (outside of templates) is removed.

Reproducible: Always
Comment 1 WhatamIdoing 2014-07-25 18:56:22 UTC
Also, if the only refs are hidden in templates, then when you add a <references /> block, you get the error mesage that "There are no references on this page to include in this list."

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links