Last modified: 2014-09-24 13:13:05 UTC
The following wikitext: Text 1<ref>Ref 1</ref> Text 2<ref>Ref 2</ref> Text 3<ref>Ref 3</ref> * Item 1 <references /> * Item 2 is converted to: <p>Text 1<sup id="cite_ref-0" class="reference"><a href="#cite_note-0">[1]</a></sup> Text 2<sup id="cite_ref-1" class="reference"><a href="#cite_note-1">[2]</a></sup> Text 3<sup id="cite_ref-2" class="reference"><a href="#cite_note-2">[3]</a></sup></p> <ul> <li>Item 1 <ol class="references"> <li id="cite_note-0"><a href="#cite_ref-0">↑</a> Ref 1</li> </ol> </li> </ul> <ul> <li id="cite_note-1"><a href="#cite_ref-1">↑</a> Ref 2</li> <li id="cite_note-2"><a href="#cite_ref-2">↑</a> Ref 3</li> <li style="list-style-type: none; list-style-image: none; list-style-position: outside; display: inline;"> <ul> <li>Item 2</li> </ul> </li> </ul> expected result: <p>Text 1<sup id="cite_ref-0" class="reference"><a href="#cite_note-0">[1]</a></sup> Text 2<sup id="cite_ref-1" class="reference"><a href="#cite_note-1">[2]</a></sup> Text 3<sup id="cite_ref-2" class="reference"><a href="#cite_note-2">[3]</a></sup></p> <ul> <li>Item 1 <ol class="references"> <li id="cite_note-0"><a href="#cite_ref-0">↑</a> Ref 1</li> <li id="cite_note-1"><a href="#cite_ref-1">↑</a> Ref 2</li> <li id="cite_note-2"><a href="#cite_ref-2">↑</a> Ref 3</li> </ol> </li> <li>Item 2</li> </ul>
(In reply to comment #0) The actual result in #0 was extracted from an extra div. The actual result without an extra div is: <p>Text 1<sup class="reference" id="cite_ref-0"><a href="#cite_note-0">[1]</a></sup> Text 2<sup class="reference" id="cite_ref-1"><a href="#cite_note-1">[2]</a></sup> Text 3<sup class="reference" id="cite_ref-2"><a href="#cite_note-2">[3]</a></sup></p> <ul> <li>Item 1 <ol class="references"> <li id="cite_note-0"><a href="#cite_ref-0">↑</a> Ref 1</li> </ol> </li> </ul> <ul> <li id="cite_note-1"><a href="#cite_ref-1">↑</a> Ref 2</li> <li id="cite_note-2"><a href="#cite_ref-2">↑</a> Ref 3</li> </ul> <ul> <li>Item 2</li> </ul>
I'm going to guess this is a problem with Tidy.
With 1.24wmf21 I now see: <p>Text 1<sup id="cite_ref-1" class="reference"><a href="#cite_note-1"><span>[</span>1<span>]</span></a></sup> Text 2<sup id="cite_ref-2" class="reference"><a href="#cite_note-2"><span>[</span>2<span>]</span></a></sup> Text 3<sup id="cite_ref-3" class="reference"><a href="#cite_note-3"><span>[</span>3<span>]</span></a></sup></p> <ul> <li>Item 1 <ol class="references"></ol> </li> </ul> <ul> <li id="cite_note-1"><span class="mw-cite-backlink"><b><a href="#cite_ref-1">^</a></b></span> <span class="reference-text">Ref 1</span></li> <li id="cite_note-2"><span class="mw-cite-backlink"><b><a href="#cite_ref-2">^</a></b></span> <span class="reference-text">Ref 2</span></li> <li id="cite_note-3"><span class="mw-cite-backlink"><b><a href="#cite_ref-3">^</a></b></span> <span class="reference-text">Ref 3</span></li> </ul> <ul> <li>Item 2</li> </ul> It appears this is now resolved.
No. The outer <ul> still gets closed.
I see the issue. Item 1 and Item 2 list is rendered as separate unordered lists and the The reference list is rendered as an unordered list, not an ordered list. I don't see the purpose here.