Consider this wikitext:
<ref extends="A">A.1</ref> {{#tag:references| <ref name="A">A</ref> }}
(which is simplified from that generated by enwiki's Template:Reflist)
Expected result
Actual result on en.wikipedia.beta.wmflabs.org
Anomie | |
Dec 4 2019, 1:10 PM |
F31456433: Book refs bug actual.png | |
Dec 4 2019, 1:10 PM |
F31456431: Book refs bug expected.png | |
Dec 4 2019, 1:10 PM |
Consider this wikitext:
<ref extends="A">A.1</ref> {{#tag:references| <ref name="A">A</ref> }}
(which is simplified from that generated by enwiki's Template:Reflist)
Expected result
Actual result on en.wikipedia.beta.wmflabs.org
Change 562499 had a related patch set uploaded (by Thiemo Kreuz (WMDE); owner: Thiemo Kreuz (WMDE)):
[mediawiki/extensions/Cite@master] Test cases for extends pointing to the <references> section
Change 562499 merged by jenkins-bot:
[mediawiki/extensions/Cite@master] Test cases for extends pointing to the <references> section
The error is actually with the parent ref. It must be used outside of the <references> section:
<ref extends="A">A.1</ref> <ref name="A" /> {{#tag:references| <ref name="A">A</ref> }}
I closed this too quickly. Behavior is indeed different if <references> is used instead, which is incorrect. The snippet given in the task description should be allowed, and implementation will require changes to the ReferenceStack "undo" logic.
Change 562854 had a related patch set uploaded (by Thiemo Kreuz (WMDE); owner: Thiemo Kreuz (WMDE)):
[mediawiki/extensions/Cite@master] Fix incomplete undo/redo stack implementation
Change 562854 merged by jenkins-bot:
[mediawiki/extensions/Cite@master] Fix incomplete undo/redo stack implementation