Last modified: 2012-05-05 19:38:14 UTC
A lost reference<ref>A lost reference</ref>. {{Special:Prefixindex/Template:X}} Another reference<ref>Another reference</ref>. ==Note== <references/> "A lost reference" is lost.
I can't reproduce this locally
Doesn't happen on en.wikipedia either. But both are using the same MediaWiki version, so it's either an extension that's on test.wikipedia but not en.wikipedia or something in test.wikipedia's config.
It happens on fr.wikipedia http://fr.wikipedia.org/wiki/Discussion_Aide:Note#.3Creferences.2F.3E_fails_after_Special:Prefixindex See also before this change http://fr.wikipedia.org/w/index.php?title=Wikip%C3%A9dia:Jargon/G%C3%A9olocalisation/Nouvelle_version&diff=34029917&oldid=34029376
Created attachment 5773 [details] proposed fix: clear state only if called from $wgParser This happens, because there is only one Cite object, but two parsers ($wgParser and $wgMessageCache->mParser). Cite->clearState() should only trigger on calls by $wgParser, else it loses all references up to this point. Easy fix attached.
This fix fixes bug 16767 as well
maybe related bug 20748
Applied P.Copp's patch and fixed in r88971.
*** Bug 36177 has been marked as a duplicate of this bug. ***