MediaWiki
1.33.0
|
Functions | |
</p >< p >< br/></p > ! end ! test< ref > in a<!--comment--> ! wikitext Templating<!--< ref >{{simple template}}</ref > -->< references/> ! html< p > Templating</p >< p >< br/></p > ! end ! test<!--comment--> in | a< ref > (bug 5384) !! wikitext Templating< ref >Text<!--comment- -></ref >< references/> !! html< p >Templating< sup id="cite_ref-1" class="reference">< a href="#cite_note-1"> [ |
&</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"> Text</span ></li ></ol ></div > ! end ! test< references > | after< gallery > (bug 6164) !! options parsoid |
&</p >< div class="mw-references-wrap">< ol class="references">< li id="cite_note-x_x-1">< span class="mw-cite-backlink">< a href="#cite_ref-x_x_1-0"> ↑</a ></span >< span class="reference-text"> example</span ></li ></ol ></div > ! end ! test Erroneous refs ! wikitext< ref name="0"> Zero</ref >< ref > Also but | differently (Normal ref)</ref >< ref/>< ref name ="cite_note-bar-2"><span class="mw-cite-backlink"><a href="#cite_ref-bar_2-0">↑</a></span> <span class="error mw-ext-cite-error" lang="en" dir="ltr">Cite error: Invalid <code>< |
Variables | |
&</p >< ul class="gallery mw-gallery-traditional">< li class="gallerybox" style="width: 155px">< div style="width: 155px">< div class="thumb" style="width: 150px;">< div style="margin:68px auto;">< a href="/wiki/File:Foobar.jpg" class="image">< img alt="Foobar.jpg" src="http: <div class="gallerytext"></div></div></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"> one</span></li></ol></div> ! html parsoid<p><sup about="#mwt4" class="mw-ref" id="cite_ref-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","attrs":{},"body":{"id":"mw-reference-text-cite_note-1"}}'><a href="./Parser_test#cite_note-1" style="counter-reset:mw-Ref 1;"><span class="mw-reflink-text"></span></a></sup></p><ul class="gallery mw-gallery-traditional" typeof="mw:Extension/gallery" about="#mwt9" data-mw='{"name":"gallery","attrs":{},"body":{}}'><li class="gallerybox" style="width:155px;"><div class="thumb" style="width:150px;height:150px;"><figure-inline typeof="mw:Image"><a href="./File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="</ul >< ol class="mw-references references" typeof="mw:Extension/references" about="#mwt7" data-mw='{"name":"references","attrs":{}}'>< li about="#cite_note-1" id="cite_note-1">< a href="./Parser_test#cite_ref-1" rel="mw:referencedBy">< span class="mw-linkback-text"> ↑</span ></a >< span id="mw-reference-text-cite_note-1" class="mw-reference-text"> one</span ></li ></ol > ! end | ! test |
notes< references group="注"/> ! html< p > AAA< sup id="cite_ref-1" class="reference">< a href="#cite_note-1"> &</p >< dl >< dt > refs</dt ></dl >< 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"> ref a</span ></li >< li id="cite_note-3">< span class="mw-cite-backlink">< a href="#cite_ref-3"> ↑</a ></span >< span class="reference-text"> ref c</span ></li ></ol ></div >< dl >< dt > notes</dt ></dl >< div class="mw-references-wrap">< ol class="references">< li id="cite_note-2">< span class="mw-cite-backlink">< a href="#cite_ref-2"> ↑</a ></span >< span class="reference-text"> note b</span ></li ></ol ></div > ! end ! test< ref > defined in< references > ! wikitext< ref name="foo"/>< references >< ref name="foo"> BAR</ref ></references > ! html< p >< sup id="cite_ref-foo_1-0" class="reference">< a href="#cite_note-foo-1"> &</p >< 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"> BAR</span ></li ></ol ></div > ! end ! test< ref > defined in< references > called with | ! wikitext< ref name="foo"/> |
invalid e g too many</span ></p > ! end ! test with< references/> in group ! wikitext Wikipedia rocks< ref > Proceeds of vol XXI</ref > Wikipedia rocks< ref group="note"> Proceeds of vol XXI</ref >< references/>< references group="note"/> ! html< p > Wikipedia rocks< sup id="cite_ref-1" class="reference">< a href="#cite_note-1"> &Wikipedia rocks< sup id="cite_ref-2" class="reference">< a href="#cite_note-2"> &</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"> Proceeds of vol XXI</span ></li ></ol ></div >< div class="mw-references-wrap">< ol class="references">< li id="cite_note-2">< span class="mw-cite-backlink">< a href="#cite_ref-2"> ↑</a ></span >< span class="reference-text"> Proceeds of vol XXI</span ></li ></ol ></div > ! end ! test with< references/> in with groupname in Chinese ! wikitext AAA< ref group="参"> ref a</ref > BBB< ref group="注"> note b</ref > CCC< ref group="参"> ref | c</ref > |
name blank defined multiple times with different content</span ></span ></li ></ol ></div > ! end ! test Regression sanity | check |
&</p >< p >< sup id="cite_ref-blank_1-1" class="reference">< a href="#cite_note-blank-1"> &</p >< div class="mw-references-wrap">< ol class="references">< li id="cite_note-blank-1">< span class="mw-cite-backlink"> ↑< sup >< a href="#cite_ref-blank_1-0"></a ></sup >< sup >< a href="#cite_ref-blank_1-1"></a ></sup ></span >< span class="reference-text">< span class="error mw-ext-cite-error" lang="en" dir="ltr"> Cite | error |
invalid e g too many</span ></p > ! end ! test with< references/> in group ! wikitext Wikipedia rocks< ref > Proceeds of vol XXI</ref > Wikipedia rocks< ref group="note"> Proceeds of vol XXI</ref >< references/>< references group="note"/> ! html< p > Wikipedia rocks< sup id="cite_ref-1" class="reference">< a href="#cite_note-1"> &Wikipedia rocks< sup id="cite_ref-2" class="reference">< a href="#cite_note-2"> &</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"> Proceeds of vol XXI</span ></li ></ol ></div >< div class="mw-references-wrap">< ol class="references">< li id="cite_note-2">< span class="mw-cite-backlink">< a href="#cite_ref-2"> ↑</a ></span >< span class="reference-text"> Proceeds of vol XXI</span ></li ></ol ></div > ! end ! test with< references/> in | group |
&</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< i > simple</i > template</span ></li ></ol ></div > ! end ! test< ref > with a< nowiki > ! wikitext Templating< ref >< nowiki > &</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"> ref & | gt |
&</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"> Text</span ></li ></ol ></div > ! end ! test< references > html2html ! wikitext< ref > one</ref >< gallery > | Image |
</code > tag with name unused defined in< code > & | lt |
</code > has no name attribute</span ></p > ! end ! article | MediaWiki |
no text was provided for refs named< code > blankwithnoreference</code ></span ></li ></ol ></div > ! end ! test Can t have | name |
invalid | names |
refs< references group="参"/> | |
&</p >< p >< sup id="cite_ref-blank_1-1" class="reference">< a href="#cite_note-blank-1"> &</p >< div class="mw-references-wrap">< ol class="references">< li id="cite_note-blank-1">< span class="mw-cite-backlink"> ↑< sup >< a href="#cite_ref-blank_1-0"></a ></sup >< sup >< a href="#cite_ref-blank_1-1"></a ></sup ></span >< span class="reference-text"> content</span ></li ></ol ></div > ! end ! test Blank ref followed by ref with content ! wikitext< ref name="blank"/>< ref name="blank"> content</ref >< references/> ! html< p >< sup id="cite_ref-blank_1-0" class="reference">< a href="#cite_note-blank-1"> &</p >< p >< sup id="cite_ref-blank_1-1" class="reference">< a href="#cite_note-blank-1"> &</p >< div class="mw-references-wrap">< ol class="references">< li id="cite_note-blank-1">< span class="mw-cite-backlink"> ↑< sup >< a href="#cite_ref-blank_1-0"></a ></sup >< sup >< a href="#cite_ref-blank_1-1"></a ></sup ></span >< span class="reference-text"> content</span ></li ></ol ></div > ! end ! test | Regression |
! hooks ref references ! endhooks ! article no< references/> ! wikitext Wikipedia rocks< ref > Proceeds of | Rockology |
! hooks ref references ! endhooks ! article no< references/> ! wikitext Wikipedia rocks< ref > Proceeds of vol XXI</ref > ! html Wikipedia rocks< sup id="cite_ref-1" class="reference">< a href="#cite_note-1"> &< li id="cite_note-1">< span class="mw-cite-backlink">< a href="#cite_ref-1"> ↑</a ></span >< span class="reference-text"> Proceeds of vol XXI</span ></li ></ol ></div > ! end ! test | Simple< ref > |
name blank defined multiple times with different content</span ></span ></li ></ol ></div > ! end ! test Ref names containing a number ! wikitext< ref name="test123test"> One</ref >< ref name="123test"> Two</ref >< ref name="test123"> Three</ref >< references/> ! html< p >< sup id="cite_ref-test123test_1-0" class="reference">< a href="#cite_note-test123test-1"> &< sup id="cite_ref-123test_2-0" class="reference">< a href="#cite_note-123test-2"> &< sup id="cite_ref-test123_3-0" class="reference">< a href="#cite_note-test123-3"> &</p >< div class="mw-references-wrap">< ol class="references">< li id="cite_note-test123test-1">< span class="mw-cite-backlink">< a href="#cite_ref-test123test_1-0"> ↑</a ></span >< span class="reference-text"> One</span ></li >< li id="cite_note-123test-2">< span class="mw-cite-backlink">< a href="#cite_ref-123test_2-0"> ↑</a ></span >< span class="reference-text"> Two</span ></li >< li id="cite_note-test123-3">< span class="mw-cite-backlink">< a href="#cite_ref-test123_3-0"> ↑</a ></span >< span class="reference-text"> Three</span ></li ></ol ></div > ! end ! test | T184912 |
</code > | tag |
! hooks ref references ! endhooks ! article | Template |
&</p >< div class="mw-references-wrap">< ol class="references">< li id="cite_note-x_x-1">< span class="mw-cite-backlink">< a href="#cite_ref-x_x_1-0"> ↑</a ></span >< span class="reference-text"> example</span ></li ></ol ></div > ! end ! test Erroneous refs ! wikitext< ref name="0"> Zero</ref >< ref > Also | zero |
</p><p><br /></p> ! end ! test<ref> in a<!--comment--> ! wikitext Templating<!--<ref>{{simple template}}</ref>--><references /> ! html<p> Templating</p><p><br /></p> ! end ! test<!--comment--> in a< ref > | ( | bug | 5384 | ) | -> </ref >< references/> !! html< p >Templating< sup id="cite_ref-1" class="reference">< a href="#cite_note-1"> [ |
&</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"> Text</span></li></ol></div> ! end ! test<references> after< gallery > | ( | bug | 6164 | ) |
</code > tag</span ></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"> Also but differently | ( | Normal | ref | ) | ="cite_note-bar-2"><span class="mw-cite-backlink"><a href="#cite_ref-bar_2-0">↑</a></span> <span class="error mw-ext-cite-error" lang="en" dir="ltr">Cite error: Invalid <code>< |
notes<references group="注" /> ! html<p> AAA<sup id="cite_ref-1" class="reference"><a href="#cite_note-1"> &</p><dl><dt> refs</dt></dl><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"> ref a</span></li><li id="cite_note-3"><span class="mw-cite-backlink"><a href="#cite_ref-3"> ↑</a></span><span class="reference-text"> ref c</span></li></ol></div><dl><dt> notes</dt></dl><div class="mw-references-wrap"><ol class="references"><li id="cite_note-2"><span class="mw-cite-backlink"><a href="#cite_ref-2"> ↑</a></span><span class="reference-text"> note b</span></li></ol></div> ! end ! test<ref> defined in<references> ! wikitext<ref name="foo" /><references><ref name="foo"> BAR</ref></references> ! html<p><sup id="cite_ref-foo_1-0" class="reference"><a href="#cite_note-foo-1"> &</p><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"> BAR</span></li></ol></div> ! end ! test<ref> defined in<references> called with ! wikitext< ref name="foo"/> |
invalid e g too many</span></p> ! end ! test with<references/> in group ! wikitext Wikipedia rocks<ref> Proceeds of vol XXI</ref> Wikipedia rocks<ref group="note"> Proceeds of vol XXI</ref><references /><references group="note" /> ! html<p> Wikipedia rocks<sup id="cite_ref-1" class="reference"><a href="#cite_note-1"> & Wikipedia rocks<sup id="cite_ref-2" class="reference"><a href="#cite_note-2"> &</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"> Proceeds of vol XXI</span></li></ol></div><div class="mw-references-wrap"><ol class="references"><li id="cite_note-2"><span class="mw-cite-backlink"><a href="#cite_ref-2"> ↑</a></span><span class="reference-text"> Proceeds of vol XXI</span></li></ol></div> ! end ! test with<references/> in with groupname in Chinese ! wikitext AAA<ref group="参"> ref a</ref> BBB<ref group="注"> note b</ref> CCC<ref group="参"> ref c</ref > |
Definition at line 349 of file citeParserTests.txt.
</code> has no name attribute</span></p> ! end ! article vol XXI</ref><references group="klingon" /> ! html<p> Wikipedia rocks<sup id="cite_ref-1" class="reference"><a href="#cite_note-1"> &</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"> Proceeds of vol XXI</span></li></ol></div> ! end ! test Consecutive whitespace in custom link label message should not create empty [] ! wikitext<ref group="klingon"></ref><ref group="klingon"></ref><references group="klingon" /> ! html<p><sup id="cite_ref-1" class="reference"><a href="#cite_note-1"> &<sup id="cite_ref-2" class="reference"><a href="#cite_note-2"> &</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"></span></li><li id="cite_note-2"><span class="mw-cite-backlink"><a href="#cite_ref-2"> ↑</a></span><span class="reference-text"></span></li></ol></div> ! end ! test Bug regression check |
Definition at line 239 of file citeParserTests.txt.
</code> has conflicting group attribute</span><br /><span class="error mw-ext-cite-error" lang="en" dir="ltr"> Cite error |
Definition at line 225 of file citeParserTests.txt.
invalid e g too many</span></p> ! end ! test with<references/> in group ! wikitext Wikipedia rocks<ref> Proceeds of vol XXI</ref> Wikipedia rocks<ref group="note"> Proceeds of vol XXI</ref><references /><references group="note" /> ! html<p> Wikipedia rocks<sup id="cite_ref-1" class="reference"><a href="#cite_note-1"> & Wikipedia rocks<sup id="cite_ref-2" class="reference"><a href="#cite_note-2"> &</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"> Proceeds of vol XXI</span></li></ol></div><div class="mw-references-wrap"><ol class="references"><li id="cite_note-2"><span class="mw-cite-backlink"><a href="#cite_ref-2"> ↑</a></span><span class="reference-text"> Proceeds of vol XXI</span></li></ol></div> ! end ! test with<references/> in group |
Definition at line 349 of file citeParserTests.txt.
Referenced by UserGroupMembership::__construct(), ArchivedFile::__construct(), ChangesListFilter::__construct(), MediaWiki\Diff\WordAccumulator::addWords(), UserGroupMembership::delete(), MediaWiki\Diff\WordAccumulator::flushGroup(), UserGroupMembership::insert(), ArchivedFile::loadFromRow(), Site::setGroup(), ChangesListFilterTest::setUp(), ChangesListFilterTest::testDuplicateName(), and ChangesListFilterTest::testReservedCharacter().
a & gt |
&</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"> Text</span></li></ol></div> ! end ! test<references> html2html ! wikitext<ref> one</ref><gallery> Image |
Definition at line 133 of file citeParserTests.txt.
Referenced by Exif::__construct().
Definition at line 469 of file citeParserTests.txt.
invalid names |
Definition at line 327 of file citeParserTests.txt.
refs< references group="参"/> |
Definition at line 383 of file citeParserTests.txt.
&</p><p><sup id="cite_ref-blank_1-1" class="reference"><a href="#cite_note-blank-1"> &</p><div class="mw-references-wrap"><ol class="references"><li id="cite_note-blank-1"><span class="mw-cite-backlink"> ↑<sup><a href="#cite_ref-blank_1-0"></a></sup><sup><a href="#cite_ref-blank_1-1"></a></sup></span><span class="reference-text"> content</span></li></ol></div> ! end ! test Blank ref followed by ref with content ! wikitext<ref name="blank" /><ref name="blank"> content</ref><references /> ! html<p><sup id="cite_ref-blank_1-0" class="reference"><a href="#cite_note-blank-1"> &</p><p><sup id="cite_ref-blank_1-1" class="reference"><a href="#cite_note-blank-1"> &</p><div class="mw-references-wrap"><ol class="references"><li id="cite_note-blank-1"><span class="mw-cite-backlink"> ↑<sup><a href="#cite_ref-blank_1-0"></a></sup><sup><a href="#cite_ref-blank_1-1"></a></sup></span><span class="reference-text"> content</span></li></ol></div> ! end ! test Regression |
Definition at line 221 of file citeParserTests.txt.
</code > has no name attribute</span ></p > ! end ! article vol XXI</ref >< references group="klingon"/> ! html< p > Wikipedia rocks< sup id="cite_ref-1" class="reference">< a href="#cite_note-1"> &</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"> Proceeds of Rockology |
Definition at line 20 of file citeParserTests.txt.
invalid e g too many</span ></p > ! end ! test with< references/> in group ! wikitext Wikipedia rocks< ref > Proceeds of vol XXI</ref > Wikipedia rocks< ref group="note"> Proceeds of vol XXI</ref >< references/>< references group="note"/> ! html< p > Wikipedia rocks< sup id="cite_ref-1" class="reference">< a href="#cite_note-1"> &Wikipedia rocks< sup id="cite_ref-2" class="reference">< a href="#cite_note-2"> &</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"> Proceeds of vol XXI</span ></li ></ol ></div >< div class="mw-references-wrap">< ol class="references">< li id="cite_note-2">< span class="mw-cite-backlink">< a href="#cite_ref-2"> ↑</a ></span >< span class="reference-text"> Proceeds of vol XXI</span ></li ></ol ></div > ! end ! test Simple< ref > |
Definition at line 20 of file citeParserTests.txt.
name blank defined multiple times with different content</span></span></li></ol></div> ! end ! test Ref names containing a number ! wikitext<ref name="test123test"> One</ref><ref name="123test"> Two</ref><ref name="test123"> Three</ref><references /> ! html<p><sup id="cite_ref-test123test_1-0" class="reference"><a href="#cite_note-test123test-1"> &<sup id="cite_ref-123test_2-0" class="reference"><a href="#cite_note-123test-2"> &<sup id="cite_ref-test123_3-0" class="reference"><a href="#cite_note-test123-3"> &</p><div class="mw-references-wrap"><ol class="references"><li id="cite_note-test123test-1"><span class="mw-cite-backlink"><a href="#cite_ref-test123test_1-0"> ↑</a></span><span class="reference-text"> One</span></li><li id="cite_note-123test-2"><span class="mw-cite-backlink"><a href="#cite_ref-123test_2-0"> ↑</a></span><span class="reference-text"> Two</span></li><li id="cite_note-test123-3"><span class="mw-cite-backlink"><a href="#cite_ref-test123_3-0"> ↑</a></span><span class="reference-text"> Three</span></li></ol></div> ! end ! test T184912 |
Definition at line 277 of file citeParserTests.txt.
Definition at line 225 of file citeParserTests.txt.
Referenced by MediaWiki\Diff\WordAccumulator::addWords(), and MediaWiki\Diff\WordAccumulator::flushGroup().
Definition at line 20 of file citeParserTests.txt.
</code > tag</span ></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"> Also zero |
Definition at line 290 of file citeParserTests.txt.
Referenced by XCFHandler::getXCFMetaData().