mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-24 06:54:00 +00:00
Numbering bug: Parser test which should fail
Includes the TODO for what correct output looks like. Bug: T237241 Change-Id: I0e60724f2c418b19e5affc24dca7f446c2b38bb3
This commit is contained in:
parent
f0d964260d
commit
d8433101a7
|
@ -415,8 +415,6 @@ invalid names, e.g. too many</span>
|
|||
</ol></div>
|
||||
!! end
|
||||
|
||||
# TODO:
|
||||
# * Should render an error at the third reference.
|
||||
!! test
|
||||
T236256 - Can't be a follow up and a book reference the same time, even when referencing 2 different bases
|
||||
!! config
|
||||
|
@ -601,3 +599,27 @@ wgCiteBookReferencing=true
|
|||
</li>
|
||||
</ol></div>
|
||||
!! end
|
||||
|
||||
# TODO: Third reference should have number "2"
|
||||
!! test
|
||||
Normal refs after extends
|
||||
!! wikitext
|
||||
<ref name="a">text-a</ref>
|
||||
<ref extends="a">page b</ref>
|
||||
|
||||
<ref name="c">text-c</ref>
|
||||
<references />
|
||||
!! html
|
||||
<p><sup id="cite_ref-a_1-0" class="reference"><a href="#cite_note-a-1">[1]</a></sup>
|
||||
<sup id="cite_ref-2" class="reference"><a href="#cite_note-2">[1.1]</a></sup>
|
||||
</p><p><sup id="cite_ref-c_3-0" class="reference"><a href="#cite_note-c-3">[3]</a></sup>
|
||||
</p>
|
||||
<div class="mw-references-wrap"><ol class="references">
|
||||
<li id="cite_note-a-1"><span class="mw-cite-backlink"><a href="#cite_ref-a_1-0">↑</a></span> <span class="reference-text">text-a</span>
|
||||
<ol class="mw-extended-references"><li id="cite_note-2"><span class="mw-cite-backlink"><a href="#cite_ref-2">↑</a></span> <span class="reference-text">page b</span>
|
||||
</li>
|
||||
</ol></li>
|
||||
<li id="cite_note-c-3"><span class="mw-cite-backlink"><a href="#cite_ref-c_3-0">↑</a></span> <span class="reference-text">text-c</span>
|
||||
</li>
|
||||
</ol></div>
|
||||
!! end
|
||||
|
|
Loading…
Reference in a new issue