mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-23 22:45:20 +00:00
Revert "Add a newline in wikitext before autogenerated reflist"
This reverts commit 90697ffe43
.
Change-Id: I659ce1689603fd16e378fb8d3d5bd6d1089342b2
This commit is contained in:
parent
90697ffe43
commit
8c933d03c5
|
@ -520,7 +520,7 @@ class Cite {
|
|||
$s = '';
|
||||
foreach ( $this->referenceStack->getGroups() as $group ) {
|
||||
if ( $group === self::DEFAULT_GROUP || $isSectionPreview ) {
|
||||
$s .= "\n" . $this->formatReferences( $parser, $group );
|
||||
$s .= $this->formatReferences( $parser, $group );
|
||||
} else {
|
||||
$s .= "\n<br />" . $this->errorReporter->halfParsed(
|
||||
$parser,
|
||||
|
|
|
@ -7,9 +7,8 @@ wgCiteBookReferencing=false
|
|||
<ref extends="parent">[bar]</ref>
|
||||
!! html/php
|
||||
<p><sup id="cite_ref-parent_1-0" class="reference"><a href="#cite_note-parent-1">[1]</a></sup>
|
||||
<span class="error mw-ext-cite-error" lang="en" dir="ltr">Cite error: Invalid <code><ref></code> tag; invalid names, e.g. too many</span>
|
||||
</p>
|
||||
<div class="mw-references-wrap"><ol class="references">
|
||||
<span class="error mw-ext-cite-error" lang="en" dir="ltr">Cite error: Invalid <code><ref></code> tag; invalid names, e.g. too many</span><div class="mw-references-wrap"><ol class="references">
|
||||
<li id="cite_note-parent-1"><span class="mw-cite-backlink"><a href="#cite_ref-parent_1-0">↑</a></span> <span class="reference-text">[foo]</span>
|
||||
</li>
|
||||
</ol></div>
|
||||
|
@ -24,9 +23,8 @@ wgCiteBookReferencing=true
|
|||
<ref extends="parent">[bar]</ref>
|
||||
!! html/php
|
||||
<p><sup id="cite_ref-parent_1-0" class="reference"><a href="#cite_note-parent-1">[1]</a></sup>
|
||||
<sup id="cite_ref-2" class="reference"><a href="#cite_note-2">[1.1]</a></sup>
|
||||
</p>
|
||||
<div class="mw-references-wrap"><ol class="references">
|
||||
<sup id="cite_ref-2" class="reference"><a href="#cite_note-2">[1.1]</a></sup><div class="mw-references-wrap"><ol class="references">
|
||||
<li id="cite_note-parent-1"><span class="mw-cite-backlink"><a href="#cite_ref-parent_1-0">↑</a></span> <span class="reference-text">[foo]</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">[bar]</span>
|
||||
</li>
|
||||
|
@ -73,9 +71,8 @@ wgCiteBookReferencing=true
|
|||
!! html
|
||||
<p><sup id="cite_ref-a_1-0" class="reference"><a href="#cite_note-a-1">[1]</a></sup>
|
||||
<sup id="cite_ref-b_2-0" class="reference"><a href="#cite_note-b-2">[1.1]</a></sup>
|
||||
<sup id="cite_ref-b_2-1" class="reference"><a href="#cite_note-b-2">[1.1]</a></sup>
|
||||
</p>
|
||||
<div class="mw-references-wrap"><ol class="references">
|
||||
<sup id="cite_ref-b_2-1" class="reference"><a href="#cite_note-b-2">[1.1]</a></sup><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">book</span>
|
||||
<ol class="mw-extended-references"><li id="cite_note-b-2"><span class="mw-cite-backlink">↑ <sup><a href="#cite_ref-b_2-0">1.1,0</a></sup> <sup><a href="#cite_ref-b_2-1">1.1,1</a></sup></span> <span class="reference-text">page 2</span>
|
||||
</li>
|
||||
|
@ -94,9 +91,8 @@ wgCiteBookReferencing=true
|
|||
!! html
|
||||
<p><sup id="cite_ref-b_1-0" class="reference"><a href="#cite_note-b-1">[1]</a></sup>
|
||||
<span class="error mw-ext-cite-error" lang="en" dir="ltr">Cite error: Invalid <code><ref></code> tag; name "b" defined multiple times with different content</span>
|
||||
<sup id="cite_ref-a_2-0" class="reference"><a href="#cite_note-a-2">[2]</a></sup>
|
||||
</p>
|
||||
<div class="mw-references-wrap"><ol class="references">
|
||||
<sup id="cite_ref-a_2-0" class="reference"><a href="#cite_note-a-2">[2]</a></sup><div class="mw-references-wrap"><ol class="references">
|
||||
<li id="cite_note-b-1"><span class="mw-cite-backlink"><a href="#cite_ref-b_1-0">↑</a></span> <span class="error mw-ext-cite-error" lang="en" dir="ltr">Cite error: Invalid <code><ref></code> tag; no text was provided for refs named <code>b</code></span></li>
|
||||
<li id="cite_note-a-2"><span class="mw-cite-backlink"><a href="#cite_ref-a_2-0">↑</a></span> <span class="reference-text">book</span>
|
||||
</li>
|
||||
|
@ -162,9 +158,7 @@ wgCiteBookReferencing=true
|
|||
!! wikitext
|
||||
<ref extends="a">page 1</ref>
|
||||
!! html/php
|
||||
<p><sup id="cite_ref-1" class="reference"><a href="#cite_note-1">[1.1]</a></sup>
|
||||
</p>
|
||||
<div class="mw-references-wrap"><ol class="references">
|
||||
<sup id="cite_ref-1" class="reference"><a href="#cite_note-1">[1.1]</a></sup><div class="mw-references-wrap"><ol class="references">
|
||||
<li id="cite_note-a-"><span class="mw-cite-backlink">↑ </span> <span class="error mw-ext-cite-error" lang="en" dir="ltr">Cite error: Invalid <code><ref></code> tag; no text was provided for refs named <code>a</code></span><ol class="mw-extended-references"><li id="cite_note-1"><span class="mw-cite-backlink"><a href="#cite_ref-1">↑</a></span> <span class="reference-text">page 1</span>
|
||||
</li>
|
||||
</ol></li>
|
||||
|
@ -180,9 +174,8 @@ wgCiteBookReferencing=true
|
|||
<ref extends="a">page 1</ref>
|
||||
!! html/php
|
||||
<p><sup id="cite_ref-1" class="reference"><a href="#cite_note-1">[1]</a></sup>
|
||||
<sup id="cite_ref-2" class="reference"><a href="#cite_note-2">[2.1]</a></sup>
|
||||
</p>
|
||||
<div class="mw-references-wrap"><ol class="references">
|
||||
<sup id="cite_ref-2" class="reference"><a href="#cite_note-2">[2.1]</a></sup><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">book</span>
|
||||
</li>
|
||||
<li id="cite_note-a-"><span class="mw-cite-backlink">↑ </span> <span class="error mw-ext-cite-error" lang="en" dir="ltr">Cite error: Invalid <code><ref></code> tag; no text was provided for refs named <code>a</code></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 1</span>
|
||||
|
@ -202,9 +195,8 @@ wgCiteBookReferencing=true
|
|||
!! html/php
|
||||
<p><sup id="cite_ref-a_1-0" class="reference"><a href="#cite_note-a-1">[1]</a></sup>
|
||||
<sup id="cite_ref-a_1-1" 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>
|
||||
<div class="mw-references-wrap"><ol class="references">
|
||||
<sup id="cite_ref-2" class="reference"><a href="#cite_note-2">[1.1]</a></sup><div class="mw-references-wrap"><ol class="references">
|
||||
<li id="cite_note-a-1"><span class="mw-cite-backlink">↑ <sup><a href="#cite_ref-a_1-0">1.0</a></sup> <sup><a href="#cite_ref-a_1-1">1.1</a></sup></span> <span class="reference-text">book <span class="error mw-ext-cite-error" lang="en" dir="ltr">Cite error: Invalid <code><ref></code> tag; name "a" defined multiple times with different content</span></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 1</span>
|
||||
</li>
|
||||
|
@ -288,9 +280,8 @@ wgCiteBookReferencing=true
|
|||
<ref extends="a">page 1</ref>
|
||||
!! html/php
|
||||
<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>
|
||||
<div class="mw-references-wrap"><ol class="references">
|
||||
<sup id="cite_ref-2" class="reference"><a href="#cite_note-2">[1.1]</a></sup><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="error mw-ext-cite-error" lang="en" dir="ltr">Cite error: Invalid <code><ref></code> tag; no text was provided for refs named <code>a</code></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 1</span>
|
||||
</li>
|
||||
</ol></li>
|
||||
|
@ -306,9 +297,8 @@ wgCiteBookReferencing=true
|
|||
<ref extends="foo" />
|
||||
!! html/php
|
||||
<p><sup id="cite_ref-foo_1-0" class="reference"><a href="#cite_note-foo-1">[1]</a></sup>
|
||||
<span class="error mw-ext-cite-error" lang="en" dir="ltr">Cite error: The opening <code><ref></code> tag is malformed or has a bad name</span>
|
||||
</p>
|
||||
<div class="mw-references-wrap"><ol class="references">
|
||||
<span class="error mw-ext-cite-error" lang="en" dir="ltr">Cite error: The opening <code><ref></code> tag is malformed or has a bad name</span><div class="mw-references-wrap"><ol class="references">
|
||||
<li id="cite_note-foo-1"><span class="mw-cite-backlink"><a href="#cite_ref-foo_1-0">↑</a></span> <span class="reference-text">book</span>
|
||||
</li>
|
||||
</ol></div>
|
||||
|
@ -323,9 +313,8 @@ wgCiteBookReferencing=true
|
|||
<ref extends="foo"></ref>
|
||||
!! html/php
|
||||
<p><sup id="cite_ref-foo_1-0" class="reference"><a href="#cite_note-foo-1">[1]</a></sup>
|
||||
<span class="error mw-ext-cite-error" lang="en" dir="ltr">Cite error: Invalid <code><ref></code> tag; refs with no name must have content</span>
|
||||
</p>
|
||||
<div class="mw-references-wrap"><ol class="references">
|
||||
<span class="error mw-ext-cite-error" lang="en" dir="ltr">Cite error: Invalid <code><ref></code> tag; refs with no name must have content</span><div class="mw-references-wrap"><ol class="references">
|
||||
<li id="cite_note-foo-1"><span class="mw-cite-backlink"><a href="#cite_ref-foo_1-0">↑</a></span> <span class="reference-text">book</span>
|
||||
</li>
|
||||
</ol></div>
|
||||
|
@ -340,9 +329,8 @@ wgCiteBookReferencing=true
|
|||
<ref extends="foo"> </ref>
|
||||
!! html/php
|
||||
<p><sup id="cite_ref-foo_1-0" class="reference"><a href="#cite_note-foo-1">[1]</a></sup>
|
||||
<span class="error mw-ext-cite-error" lang="en" dir="ltr">Cite error: Invalid <code><ref></code> tag; refs with no name must have content</span>
|
||||
</p>
|
||||
<div class="mw-references-wrap"><ol class="references">
|
||||
<span class="error mw-ext-cite-error" lang="en" dir="ltr">Cite error: Invalid <code><ref></code> tag; refs with no name must have content</span><div class="mw-references-wrap"><ol class="references">
|
||||
<li id="cite_note-foo-1"><span class="mw-cite-backlink"><a href="#cite_ref-foo_1-0">↑</a></span> <span class="reference-text">book</span>
|
||||
</li>
|
||||
</ol></div>
|
||||
|
@ -409,8 +397,7 @@ wgCiteBookReferencing=true
|
|||
<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">book</span>
|
||||
</li>
|
||||
</ol></div>
|
||||
<div class="mw-references-wrap"><ol class="references">
|
||||
</ol></div><div class="mw-references-wrap"><ol class="references">
|
||||
<li id="cite_note-a-"><span class="mw-cite-backlink">↑ </span> <span class="error mw-ext-cite-error" lang="en" dir="ltr">Cite error: Invalid <code><ref></code> tag; no text was provided for refs named <code>a</code></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</span>
|
||||
</li>
|
||||
</ol></li>
|
||||
|
@ -433,8 +420,7 @@ wgCiteBookReferencing=true
|
|||
<li id="cite_note-a-"><span class="mw-cite-backlink">↑ </span> <span class="error mw-ext-cite-error" lang="en" dir="ltr">Cite error: Invalid <code><ref></code> tag; no text was provided for refs named <code>a</code></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</span>
|
||||
</li>
|
||||
</ol></li>
|
||||
</ol></div>
|
||||
<div class="mw-references-wrap"><ol class="references">
|
||||
</ol></div><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">book</span>
|
||||
</li>
|
||||
</ol></div>
|
||||
|
|
|
@ -21,29 +21,12 @@ Simple <ref>, no <references/>
|
|||
!! wikitext
|
||||
Wikipedia rocks!<ref>Proceeds of Rockology, vol. XXI</ref>
|
||||
!! html
|
||||
<p>Wikipedia rocks!<sup id="cite_ref-1" class="reference"><a href="#cite_note-1">[1]</a></sup>
|
||||
</p>
|
||||
<div class="mw-references-wrap"><ol class="references">
|
||||
Wikipedia rocks!<sup id="cite_ref-1" class="reference"><a href="#cite_note-1">[1]</a></sup><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">Proceeds of Rockology, vol. XXI</span>
|
||||
</li>
|
||||
</ol></div>
|
||||
!! end
|
||||
|
||||
!! test
|
||||
Simple <ref>, no <references/>, page ends in a list
|
||||
!! wikitext
|
||||
blah<ref>foo</ref> --Matma Rex 17:35, 31 March 2020 (UTC)
|
||||
* bleh --Matma Rex 17:35, 31 March 2020 (UTC)
|
||||
!! html
|
||||
<p>blah<sup id="cite_ref-1" class="reference"><a href="#cite_note-1">[1]</a></sup> --Matma Rex 17:35, 31 March 2020 (UTC)
|
||||
</p>
|
||||
<ul><li>bleh --Matma Rex 17:35, 31 March 2020 (UTC)</li></ul>
|
||||
<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">foo</span>
|
||||
</li>
|
||||
</ol></div>
|
||||
!! end
|
||||
|
||||
!! test
|
||||
Simple <ref>, with <references/>
|
||||
!! wikitext
|
||||
|
@ -252,9 +235,7 @@ parsoid=wt2html,html2html
|
|||
!! wikitext
|
||||
{{REVISIONID}}<ref>elite</ref>
|
||||
!! html
|
||||
<p>1337<sup id="cite_ref-1" class="reference"><a href="#cite_note-1">[1]</a></sup>
|
||||
</p>
|
||||
<div class="mw-references-wrap"><ol class="references">
|
||||
1337<sup id="cite_ref-1" class="reference"><a href="#cite_note-1">[1]</a></sup><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">elite</span>
|
||||
</li>
|
||||
</ol></div>
|
||||
|
@ -452,9 +433,7 @@ A follow="…" before its parent is not merged
|
|||
<ref follow="theName">theFollows</ref>
|
||||
<ref name="theName">theValue</ref>
|
||||
!! html
|
||||
<p><sup id="cite_ref-theName_2-0" class="reference"><a href="#cite_note-theName-2">[1]</a></sup>
|
||||
</p>
|
||||
<div class="mw-references-wrap"><ol class="references">
|
||||
<sup id="cite_ref-theName_2-0" class="reference"><a href="#cite_note-theName-2">[1]</a></sup><div class="mw-references-wrap"><ol class="references">
|
||||
<p id="cite_note-theName"><span class="reference-text">theFollows</span>
|
||||
</p>
|
||||
<li id="cite_note-theName-2"><span class="mw-cite-backlink"><a href="#cite_ref-theName_2-0">↑</a></span> <span class="reference-text">theValue</span>
|
||||
|
@ -871,9 +850,7 @@ Bla.<ref name=""> </ref>
|
|||
!! wikitext
|
||||
Bla.<ref name="void"> </ref>
|
||||
!! html
|
||||
<p>Bla.<sup id="cite_ref-void_1-0" class="reference"><a href="#cite_note-void-1">[1]</a></sup>
|
||||
</p>
|
||||
<div class="mw-references-wrap"><ol class="references">
|
||||
Bla.<sup id="cite_ref-void_1-0" class="reference"><a href="#cite_note-void-1">[1]</a></sup><div class="mw-references-wrap"><ol class="references">
|
||||
<li id="cite_note-void-1"><span class="mw-cite-backlink"><a href="#cite_ref-void_1-0">↑</a></span> <span class="error mw-ext-cite-error" lang="en" dir="ltr">Cite error: Invalid <code><ref></code> tag; no text was provided for refs named <code>void</code></span></li>
|
||||
</ol></div>
|
||||
!! end
|
||||
|
@ -955,9 +932,7 @@ parsoid=wt2html
|
|||
!! wikitext
|
||||
<ref name="[#foo] {bar} <baz>">[bar]</ref>
|
||||
!! html/php
|
||||
<p><sup id="cite_ref-[#foo]_{bar}_<baz_1-0" class="reference"><a href="#cite_note-[#foo]_{bar}_<baz-1">[1]</a></sup>
|
||||
</p>
|
||||
<div class="mw-references-wrap"><ol class="references">
|
||||
<sup id="cite_ref-[#foo]_{bar}_<baz_1-0" class="reference"><a href="#cite_note-[#foo]_{bar}_<baz-1">[1]</a></sup><div class="mw-references-wrap"><ol class="references">
|
||||
<li id="cite_note-[#foo]_{bar}_<baz-1"><span class="mw-cite-backlink"><a href="#cite_ref-[#foo]_{bar}_<baz_1-0">↑</a></span> <span class="reference-text">">[bar]</span>
|
||||
</li>
|
||||
</ol></div>
|
||||
|
@ -2101,9 +2076,7 @@ T48140 - Make sure rollback/redo does not consume numbers
|
|||
<li id="cite_note-a-2"><span class="mw-cite-backlink"><a href="#cite_ref-a_2-0">↑</a></span> <span class="reference-text">a</span>
|
||||
</li>
|
||||
</ol></div>
|
||||
<p><sup id="cite_ref-4" class="reference"><a href="#cite_note-4">[2]</a></sup>
|
||||
</p>
|
||||
<div class="mw-references-wrap"><ol class="references">
|
||||
<sup id="cite_ref-4" class="reference"><a href="#cite_note-4">[2]</a></sup><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">should be [1]</span>
|
||||
</li>
|
||||
<li id="cite_note-4"><span class="mw-cite-backlink"><a href="#cite_ref-4">↑</a></span> <span class="reference-text">should be [2]</span>
|
||||
|
@ -2126,9 +2099,7 @@ Numbers in the default group need to start with 1, independent from other groups
|
|||
<li id="cite_note-a-1"><span class="mw-cite-backlink"><a href="#cite_ref-a_1-0">↑</a></span> <span class="reference-text">a</span>
|
||||
</li>
|
||||
</ol></div>
|
||||
<p><sup id="cite_ref-c_3-0" class="reference"><a href="#cite_note-c-3">[1]</a></sup>
|
||||
</p>
|
||||
<div class="mw-references-wrap"><ol class="references">
|
||||
<sup id="cite_ref-c_3-0" class="reference"><a href="#cite_note-c-3">[1]</a></sup><div class="mw-references-wrap"><ol class="references">
|
||||
<li id="cite_note-c-3"><span class="mw-cite-backlink"><a href="#cite_ref-c_3-0">↑</a></span> <span class="reference-text">c</span>
|
||||
</li>
|
||||
</ol></div>
|
||||
|
|
|
@ -7,9 +7,8 @@ Smoke test for duplicated references with the same text
|
|||
!! html
|
||||
<p><sup id="cite_ref-a_1-0" class="reference"><a href="#cite_note-a-1">[1]</a></sup>
|
||||
<sup id="cite_ref-a_1-1" class="reference"><a href="#cite_note-a-1">[1]</a></sup>
|
||||
<sup id="cite_ref-b_2-0" class="reference"><a href="#cite_note-b-2">[2]</a></sup>
|
||||
</p>
|
||||
<div class="mw-references-wrap"><ol class="references">
|
||||
<sup id="cite_ref-b_2-0" class="reference"><a href="#cite_note-b-2">[2]</a></sup><div class="mw-references-wrap"><ol class="references">
|
||||
<li id="cite_note-a-1"><span class="mw-cite-backlink">↑ <sup><a href="#cite_ref-a_1-0">1.0</a></sup> <sup><a href="#cite_ref-a_1-1">1.1</a></sup></span> <span class="reference-text">text</span>
|
||||
</li>
|
||||
<li id="cite_note-b-2"><span class="mw-cite-backlink"><a href="#cite_ref-b_2-0">↑</a></span> <span class="reference-text">other</span>
|
||||
|
@ -26,9 +25,8 @@ Smoke test for duplicated references with conflicting text
|
|||
!! html
|
||||
<p><sup id="cite_ref-a_1-0" class="reference"><a href="#cite_note-a-1">[1]</a></sup>
|
||||
<sup id="cite_ref-a_1-1" class="reference"><a href="#cite_note-a-1">[1]</a></sup>
|
||||
<sup id="cite_ref-b_2-0" class="reference"><a href="#cite_note-b-2">[2]</a></sup>
|
||||
</p>
|
||||
<div class="mw-references-wrap"><ol class="references">
|
||||
<sup id="cite_ref-b_2-0" class="reference"><a href="#cite_note-b-2">[2]</a></sup><div class="mw-references-wrap"><ol class="references">
|
||||
<li id="cite_note-a-1"><span class="mw-cite-backlink">↑ <sup><a href="#cite_ref-a_1-0">1.0</a></sup> <sup><a href="#cite_ref-a_1-1">1.1</a></sup></span> <span class="reference-text">text <span class="error mw-ext-cite-error" lang="en" dir="ltr">Cite error: Invalid <code><ref></code> tag; name "a" defined multiple times with different content</span></span>
|
||||
</li>
|
||||
<li id="cite_note-b-2"><span class="mw-cite-backlink"><a href="#cite_ref-b_2-0">↑</a></span> <span class="reference-text">other</span>
|
||||
|
@ -65,9 +63,8 @@ language=de
|
|||
<sup id="cite_ref-a_1-8" class="reference"><a href="#cite_note-a-1">[1]</a></sup>
|
||||
<sup id="cite_ref-a_1-9" class="reference"><a href="#cite_note-a-1">[1]</a></sup>
|
||||
<sup id="cite_ref-a_1-10" class="reference"><a href="#cite_note-a-1">[1]</a></sup>
|
||||
<sup id="cite_ref-b_2-0" class="reference"><a href="#cite_note-b-2">[2]</a></sup>
|
||||
</p>
|
||||
<div class="mw-references-wrap"><ol class="references">
|
||||
<sup id="cite_ref-b_2-0" class="reference"><a href="#cite_note-b-2">[2]</a></sup><div class="mw-references-wrap"><ol class="references">
|
||||
<li id="cite_note-a-1"><span class="mw-cite-backlink">↑ <sup><a href="#cite_ref-a_1-0">1,00</a></sup> <sup><a href="#cite_ref-a_1-1">1,01</a></sup> <sup><a href="#cite_ref-a_1-2">1,02</a></sup> <sup><a href="#cite_ref-a_1-3">1,03</a></sup> <sup><a href="#cite_ref-a_1-4">1,04</a></sup> <sup><a href="#cite_ref-a_1-5">1,05</a></sup> <sup><a href="#cite_ref-a_1-6">1,06</a></sup> <sup><a href="#cite_ref-a_1-7">1,07</a></sup> <sup><a href="#cite_ref-a_1-8">1,08</a></sup> <sup><a href="#cite_ref-a_1-9">1,09</a></sup> <sup><a href="#cite_ref-a_1-10">1,10</a></sup></span> <span class="reference-text">text</span>
|
||||
</li>
|
||||
<li id="cite_note-b-2"><span class="mw-cite-backlink"><a href="#cite_ref-b_2-0">↑</a></span> <span class="reference-text">other</span>
|
||||
|
|
|
@ -74,7 +74,7 @@ class CiteIntegrationTest extends \MediaWikiIntegrationTestCase {
|
|||
]
|
||||
],
|
||||
false,
|
||||
"\n" . '<references />'
|
||||
'<references />'
|
||||
],
|
||||
'Default group in preview' => [
|
||||
[
|
||||
|
@ -87,7 +87,7 @@ class CiteIntegrationTest extends \MediaWikiIntegrationTestCase {
|
|||
true,
|
||||
"\n" . '<div class="mw-ext-cite-cite_section_preview_references">' .
|
||||
'<h2 id="mw-ext-cite-cite_section_preview_references_header">' .
|
||||
'(cite_section_preview_references)</h2>' . "\n" . '<references /></div>'
|
||||
'(cite_section_preview_references)</h2><references /></div>'
|
||||
],
|
||||
'Named group' => [
|
||||
[
|
||||
|
@ -111,7 +111,7 @@ class CiteIntegrationTest extends \MediaWikiIntegrationTestCase {
|
|||
true,
|
||||
"\n" . '<div class="mw-ext-cite-cite_section_preview_references">' .
|
||||
'<h2 id="mw-ext-cite-cite_section_preview_references_header">' .
|
||||
'(cite_section_preview_references)</h2>' . "\n" . '<references /></div>'
|
||||
'(cite_section_preview_references)</h2><references /></div>'
|
||||
]
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue