2020-01-28 22:48:13 +00:00
|
|
|
!! version 2
|
2022-01-03 13:10:47 +00:00
|
|
|
|
2019-12-17 14:51:41 +00:00
|
|
|
!! test
|
|
|
|
Ordered lists directly following each other should not be merged
|
|
|
|
!! config
|
|
|
|
wgCiteResponsiveReferences=false
|
|
|
|
!! wikitext
|
|
|
|
<ref>reference text</ref>
|
|
|
|
# content list item
|
|
|
|
<references />
|
|
|
|
!! html/php
|
2024-07-24 08:58:50 +00:00
|
|
|
<p><sup id="cite_ref-1" class="reference"><a href="#cite_note-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup>
|
2019-12-17 14:51:41 +00:00
|
|
|
</p>
|
|
|
|
<ol><li>content list item</li></ol>
|
|
|
|
<ol class="references">
|
|
|
|
<li id="cite_note-1"><span class="mw-cite-backlink"><a href="#cite_ref-1">↑</a></span> <span class="reference-text">reference text</span>
|
|
|
|
</li>
|
|
|
|
</ol>
|
|
|
|
!! end
|
|
|
|
|
|
|
|
!! test
|
|
|
|
Enabling responsive references by default should add a <div> wrapper
|
|
|
|
!! config
|
|
|
|
wgCiteResponsiveReferences=true
|
|
|
|
!! wikitext
|
|
|
|
<ref>a</ref>
|
|
|
|
<references />
|
|
|
|
!! html/php
|
2024-07-24 08:58:50 +00:00
|
|
|
<p><sup id="cite_ref-1" class="reference"><a href="#cite_note-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup>
|
2019-12-17 14:51:41 +00:00
|
|
|
</p>
|
|
|
|
<div class="mw-references-wrap"><ol class="references">
|
|
|
|
<li id="cite_note-1"><span class="mw-cite-backlink"><a href="#cite_ref-1">↑</a></span> <span class="reference-text">a</span>
|
|
|
|
</li>
|
|
|
|
</ol></div>
|
|
|
|
!! end
|
|
|
|
|
|
|
|
!! test
|
|
|
|
Enabling responsive references in the tag should add a <div> wrapper
|
|
|
|
!! config
|
|
|
|
wgCiteResponsiveReferences=false
|
|
|
|
!! wikitext
|
|
|
|
<ref>a</ref>
|
|
|
|
<references responsive="1" />
|
|
|
|
!! html/php
|
2024-07-24 08:58:50 +00:00
|
|
|
<p><sup id="cite_ref-1" class="reference"><a href="#cite_note-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup>
|
2019-12-17 14:51:41 +00:00
|
|
|
</p>
|
|
|
|
<div class="mw-references-wrap"><ol class="references">
|
|
|
|
<li id="cite_note-1"><span class="mw-cite-backlink"><a href="#cite_ref-1">↑</a></span> <span class="reference-text">a</span>
|
|
|
|
</li>
|
|
|
|
</ol></div>
|
|
|
|
!! end
|
|
|
|
|
|
|
|
!! test
|
|
|
|
Disabling responsive references in the tag should remove the <div> wrapper
|
|
|
|
!! config
|
|
|
|
wgCiteResponsiveReferences=true
|
|
|
|
!! wikitext
|
|
|
|
<ref>a</ref>
|
|
|
|
<references responsive="0" />
|
|
|
|
!! html/php
|
2024-07-24 08:58:50 +00:00
|
|
|
<p><sup id="cite_ref-1" class="reference"><a href="#cite_note-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup>
|
2019-12-17 14:51:41 +00:00
|
|
|
</p>
|
|
|
|
<ol class="references">
|
|
|
|
<li id="cite_note-1"><span class="mw-cite-backlink"><a href="#cite_ref-1">↑</a></span> <span class="reference-text">a</span>
|
|
|
|
</li>
|
|
|
|
</ol>
|
|
|
|
!! end
|
|
|
|
|
2019-12-28 18:29:24 +00:00
|
|
|
!! test
|
|
|
|
T241303: responsive attribute with no value should *not* disable the wrapper <div>
|
|
|
|
!! config
|
|
|
|
wgCiteResponsiveReferences=true
|
|
|
|
!! wikitext
|
|
|
|
<ref>a</ref>
|
|
|
|
<references responsive />
|
|
|
|
!! html/php
|
2024-07-24 08:58:50 +00:00
|
|
|
<p><sup id="cite_ref-1" class="reference"><a href="#cite_note-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup>
|
2019-12-28 18:29:24 +00:00
|
|
|
</p>
|
|
|
|
<div class="mw-references-wrap"><ol class="references">
|
|
|
|
<li id="cite_note-1"><span class="mw-cite-backlink"><a href="#cite_ref-1">↑</a></span> <span class="reference-text">a</span>
|
|
|
|
</li>
|
|
|
|
</ol></div>
|
|
|
|
!! end
|
|
|
|
|
|
|
|
!! test
|
|
|
|
T241303: responsive attribute with an empty value should *not* disable the wrapper <div>
|
|
|
|
!! config
|
|
|
|
wgCiteResponsiveReferences=true
|
|
|
|
!! wikitext
|
|
|
|
<ref>a</ref>
|
|
|
|
<references responsive="" />
|
|
|
|
!! html/php
|
2024-07-24 08:58:50 +00:00
|
|
|
<p><sup id="cite_ref-1" class="reference"><a href="#cite_note-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup>
|
2019-12-28 18:29:24 +00:00
|
|
|
</p>
|
|
|
|
<div class="mw-references-wrap"><ol class="references">
|
|
|
|
<li id="cite_note-1"><span class="mw-cite-backlink"><a href="#cite_ref-1">↑</a></span> <span class="reference-text">a</span>
|
|
|
|
</li>
|
|
|
|
</ol></div>
|
|
|
|
!! end
|
|
|
|
|
2019-12-17 14:51:41 +00:00
|
|
|
!! test
|
|
|
|
9 references should *not* enable the column mode
|
|
|
|
!! config
|
|
|
|
wgCiteResponsiveReferences=true
|
|
|
|
!! wikitext
|
|
|
|
<ref>a</ref>
|
|
|
|
<ref>a</ref>
|
|
|
|
<ref>a</ref>
|
|
|
|
<ref>a</ref>
|
|
|
|
<ref>a</ref>
|
|
|
|
<ref>a</ref>
|
|
|
|
<ref>a</ref>
|
|
|
|
<ref>a</ref>
|
|
|
|
<ref>a</ref>
|
|
|
|
<ref>a</ref>
|
|
|
|
<references responsive="true" />
|
|
|
|
!! html/php
|
2024-07-24 08:58:50 +00:00
|
|
|
<p><sup id="cite_ref-1" class="reference"><a href="#cite_note-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup>
|
|
|
|
<sup id="cite_ref-2" class="reference"><a href="#cite_note-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup>
|
|
|
|
<sup id="cite_ref-3" class="reference"><a href="#cite_note-3"><span class="cite-bracket">[</span>3<span class="cite-bracket">]</span></a></sup>
|
|
|
|
<sup id="cite_ref-4" class="reference"><a href="#cite_note-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup>
|
|
|
|
<sup id="cite_ref-5" class="reference"><a href="#cite_note-5"><span class="cite-bracket">[</span>5<span class="cite-bracket">]</span></a></sup>
|
|
|
|
<sup id="cite_ref-6" class="reference"><a href="#cite_note-6"><span class="cite-bracket">[</span>6<span class="cite-bracket">]</span></a></sup>
|
|
|
|
<sup id="cite_ref-7" class="reference"><a href="#cite_note-7"><span class="cite-bracket">[</span>7<span class="cite-bracket">]</span></a></sup>
|
|
|
|
<sup id="cite_ref-8" class="reference"><a href="#cite_note-8"><span class="cite-bracket">[</span>8<span class="cite-bracket">]</span></a></sup>
|
|
|
|
<sup id="cite_ref-9" class="reference"><a href="#cite_note-9"><span class="cite-bracket">[</span>9<span class="cite-bracket">]</span></a></sup>
|
|
|
|
<sup id="cite_ref-10" class="reference"><a href="#cite_note-10"><span class="cite-bracket">[</span>10<span class="cite-bracket">]</span></a></sup>
|
2019-12-17 14:51:41 +00:00
|
|
|
</p>
|
|
|
|
<div class="mw-references-wrap"><ol class="references">
|
|
|
|
<li id="cite_note-1"><span class="mw-cite-backlink"><a href="#cite_ref-1">↑</a></span> <span class="reference-text">a</span>
|
|
|
|
</li>
|
|
|
|
<li id="cite_note-2"><span class="mw-cite-backlink"><a href="#cite_ref-2">↑</a></span> <span class="reference-text">a</span>
|
|
|
|
</li>
|
|
|
|
<li id="cite_note-3"><span class="mw-cite-backlink"><a href="#cite_ref-3">↑</a></span> <span class="reference-text">a</span>
|
|
|
|
</li>
|
|
|
|
<li id="cite_note-4"><span class="mw-cite-backlink"><a href="#cite_ref-4">↑</a></span> <span class="reference-text">a</span>
|
|
|
|
</li>
|
|
|
|
<li id="cite_note-5"><span class="mw-cite-backlink"><a href="#cite_ref-5">↑</a></span> <span class="reference-text">a</span>
|
|
|
|
</li>
|
|
|
|
<li id="cite_note-6"><span class="mw-cite-backlink"><a href="#cite_ref-6">↑</a></span> <span class="reference-text">a</span>
|
|
|
|
</li>
|
|
|
|
<li id="cite_note-7"><span class="mw-cite-backlink"><a href="#cite_ref-7">↑</a></span> <span class="reference-text">a</span>
|
|
|
|
</li>
|
|
|
|
<li id="cite_note-8"><span class="mw-cite-backlink"><a href="#cite_ref-8">↑</a></span> <span class="reference-text">a</span>
|
|
|
|
</li>
|
|
|
|
<li id="cite_note-9"><span class="mw-cite-backlink"><a href="#cite_ref-9">↑</a></span> <span class="reference-text">a</span>
|
|
|
|
</li>
|
|
|
|
<li id="cite_note-10"><span class="mw-cite-backlink"><a href="#cite_ref-10">↑</a></span> <span class="reference-text">a</span>
|
|
|
|
</li>
|
|
|
|
</ol></div>
|
|
|
|
!! end
|
|
|
|
|
|
|
|
!! test
|
|
|
|
10 references should enable the column mode
|
|
|
|
!! config
|
|
|
|
wgCiteResponsiveReferences=true
|
|
|
|
!! wikitext
|
|
|
|
<ref>a</ref>
|
|
|
|
<ref>a</ref>
|
|
|
|
<ref>a</ref>
|
|
|
|
<ref>a</ref>
|
|
|
|
<ref>a</ref>
|
|
|
|
<ref>a</ref>
|
|
|
|
<ref>a</ref>
|
|
|
|
<ref>a</ref>
|
|
|
|
<ref>a</ref>
|
|
|
|
<ref>a</ref>
|
|
|
|
<ref>a</ref>
|
|
|
|
<references />
|
|
|
|
!! html/php
|
2024-07-24 08:58:50 +00:00
|
|
|
<p><sup id="cite_ref-1" class="reference"><a href="#cite_note-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup>
|
|
|
|
<sup id="cite_ref-2" class="reference"><a href="#cite_note-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup>
|
|
|
|
<sup id="cite_ref-3" class="reference"><a href="#cite_note-3"><span class="cite-bracket">[</span>3<span class="cite-bracket">]</span></a></sup>
|
|
|
|
<sup id="cite_ref-4" class="reference"><a href="#cite_note-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup>
|
|
|
|
<sup id="cite_ref-5" class="reference"><a href="#cite_note-5"><span class="cite-bracket">[</span>5<span class="cite-bracket">]</span></a></sup>
|
|
|
|
<sup id="cite_ref-6" class="reference"><a href="#cite_note-6"><span class="cite-bracket">[</span>6<span class="cite-bracket">]</span></a></sup>
|
|
|
|
<sup id="cite_ref-7" class="reference"><a href="#cite_note-7"><span class="cite-bracket">[</span>7<span class="cite-bracket">]</span></a></sup>
|
|
|
|
<sup id="cite_ref-8" class="reference"><a href="#cite_note-8"><span class="cite-bracket">[</span>8<span class="cite-bracket">]</span></a></sup>
|
|
|
|
<sup id="cite_ref-9" class="reference"><a href="#cite_note-9"><span class="cite-bracket">[</span>9<span class="cite-bracket">]</span></a></sup>
|
|
|
|
<sup id="cite_ref-10" class="reference"><a href="#cite_note-10"><span class="cite-bracket">[</span>10<span class="cite-bracket">]</span></a></sup>
|
|
|
|
<sup id="cite_ref-11" class="reference"><a href="#cite_note-11"><span class="cite-bracket">[</span>11<span class="cite-bracket">]</span></a></sup>
|
2019-12-17 14:51:41 +00:00
|
|
|
</p>
|
|
|
|
<div class="mw-references-wrap mw-references-columns"><ol class="references">
|
|
|
|
<li id="cite_note-1"><span class="mw-cite-backlink"><a href="#cite_ref-1">↑</a></span> <span class="reference-text">a</span>
|
|
|
|
</li>
|
|
|
|
<li id="cite_note-2"><span class="mw-cite-backlink"><a href="#cite_ref-2">↑</a></span> <span class="reference-text">a</span>
|
|
|
|
</li>
|
|
|
|
<li id="cite_note-3"><span class="mw-cite-backlink"><a href="#cite_ref-3">↑</a></span> <span class="reference-text">a</span>
|
|
|
|
</li>
|
|
|
|
<li id="cite_note-4"><span class="mw-cite-backlink"><a href="#cite_ref-4">↑</a></span> <span class="reference-text">a</span>
|
|
|
|
</li>
|
|
|
|
<li id="cite_note-5"><span class="mw-cite-backlink"><a href="#cite_ref-5">↑</a></span> <span class="reference-text">a</span>
|
|
|
|
</li>
|
|
|
|
<li id="cite_note-6"><span class="mw-cite-backlink"><a href="#cite_ref-6">↑</a></span> <span class="reference-text">a</span>
|
|
|
|
</li>
|
|
|
|
<li id="cite_note-7"><span class="mw-cite-backlink"><a href="#cite_ref-7">↑</a></span> <span class="reference-text">a</span>
|
|
|
|
</li>
|
|
|
|
<li id="cite_note-8"><span class="mw-cite-backlink"><a href="#cite_ref-8">↑</a></span> <span class="reference-text">a</span>
|
|
|
|
</li>
|
|
|
|
<li id="cite_note-9"><span class="mw-cite-backlink"><a href="#cite_ref-9">↑</a></span> <span class="reference-text">a</span>
|
|
|
|
</li>
|
|
|
|
<li id="cite_note-10"><span class="mw-cite-backlink"><a href="#cite_ref-10">↑</a></span> <span class="reference-text">a</span>
|
|
|
|
</li>
|
|
|
|
<li id="cite_note-11"><span class="mw-cite-backlink"><a href="#cite_ref-11">↑</a></span> <span class="reference-text">a</span>
|
|
|
|
</li>
|
|
|
|
</ol></div>
|
|
|
|
!! end
|