MediaWiki REL1_33
extensions/Cite/tests/parser/citeParserTests.txt File Reference

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"> &#91
 
&</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>&lt
 

Variables

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"/>
 
&</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
 
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
 

Function Documentation

◆ a< ref >()

</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"> &#91

◆ after< gallery >()

&</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)

◆ differently()

</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>&lt

Variable Documentation

◆ ! wikitext< ref name="foo"/>

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"/>
Initial value:
{{#tag:references|
<ref name="foo">BAR</ref>
}}
!! html
<p><sup id="cite_ref-foo_1-0" class="reference"><a href="#cite_note-foo-1">&#91
shown</td >< td > a href
</code > tag
> value, names are case insensitive). Two headers get special handling:If-Modified-Since(value must be a valid HTTP date) and Range(must be of the form "bytes=(\d*-\d*)") will be honored when streaming the file. 'ImportHandleLogItemXMLTag':When parsing a XML tag in a log item. Return false to stop further processing of the tag $reader:XMLReader object $logInfo:Array of information 'ImportHandlePageXMLTag':When parsing a XML tag in a page. Return false to stop further processing of the tag $reader:XMLReader object & $pageInfo:Array of information 'ImportHandleRevisionXMLTag':When parsing a XML tag in a page revision. Return false to stop further processing of the tag $reader:XMLReader object $pageInfo:Array of page information $revisionInfo:Array of revision information 'ImportHandleToplevelXMLTag':When parsing a top level XML tag. Return false to stop further processing of the tag $reader:XMLReader object 'ImportHandleUnknownUser':When a user doesn 't exist locally, this hook is called to give extensions an opportunity to auto-create it. If the auto-creation is successful, return false. $name:User name 'ImportHandleUploadXMLTag':When parsing a XML tag in a file upload. Return false to stop further processing of the tag $reader:XMLReader object $revisionInfo:Array of information 'ImportLogInterwikiLink':Hook to change the interwiki link used in log entries and edit summaries for transwiki imports. & $fullInterwikiPrefix:Interwiki prefix, may contain colons. & $pageTitle:String that contains page title. 'ImportSources':Called when reading from the $wgImportSources configuration variable. Can be used to lazy-load the import sources list. & $importSources:The value of $wgImportSources. Modify as necessary. See the comment in DefaultSettings.php for the detail of how to structure this array. 'InfoAction':When building information to display on the action=info page. $context:IContextSource object & $pageInfo:Array of information 'InitializeArticleMaybeRedirect':MediaWiki check to see if title is a redirect. & $title:Title object for the current page & $request:WebRequest & $ignoreRedirect:boolean to skip redirect check & $target:Title/string of redirect target & $article:Article object 'InternalParseBeforeLinks':during Parser 's internalParse method before links but after nowiki/noinclude/includeonly/onlyinclude and other processings. & $parser:Parser object & $text:string containing partially parsed text & $stripState:Parser 's internal StripState object 'InternalParseBeforeSanitize':during Parser 's internalParse method just before the parser removes unwanted/dangerous HTML tags and after nowiki/noinclude/includeonly/onlyinclude and other processings. Ideal for syntax-extensions after template/parser function execution which respect nowiki and HTML-comments. & $parser:Parser object & $text:string containing partially parsed text & $stripState:Parser 's internal StripState object 'InterwikiLoadPrefix':When resolving if a given prefix is an interwiki or not. Return true without providing an interwiki to continue interwiki search. $prefix:interwiki prefix we are looking for. & $iwData:output array describing the interwiki with keys iw_url, iw_local, iw_trans and optionally iw_api and iw_wikiid. 'InvalidateEmailComplete':Called after a user 's email has been invalidated successfully. $user:user(object) whose email is being invalidated 'IRCLineURL':When constructing the URL to use in an IRC notification. Callee may modify $url and $query, URL will be constructed as $url . $query & $url:URL to index.php & $query:Query string $rc:RecentChange object that triggered url generation 'IsFileCacheable':Override the result of Article::isFileCacheable()(if true) & $article:article(object) being checked 'IsTrustedProxy':Override the result of IP::isTrustedProxy() & $ip:IP being check & $result:Change this value to override the result of IP::isTrustedProxy() 'IsUploadAllowedFromUrl':Override the result of UploadFromUrl::isAllowedUrl() $url:URL used to upload from & $allowed:Boolean indicating if uploading is allowed for given URL 'isValidEmailAddr':Override the result of Sanitizer::validateEmail(), for instance to return false if the domain name doesn 't match your organization. $addr:The e-mail address entered by the user & $result:Set this and return false to override the internal checks 'isValidPassword':Override the result of User::isValidPassword() $password:The password entered by the user & $result:Set this and return false to override the internal checks $user:User the password is being validated for 'Language::getMessagesFileName':$code:The language code or the language we 're looking for a messages file for & $file:The messages file path, you can override this to change the location. 'LanguageGetNamespaces':Provide custom ordering for namespaces or remove namespaces. Do not use this hook to add namespaces. Use CanonicalNamespaces for that. & $namespaces:Array of namespaces indexed by their numbers 'LanguageGetTranslatedLanguageNames':Provide translated language names. & $names:array of language code=> language name $code:language of the preferred translations 'LanguageLinks':Manipulate a page 's language links. This is called in various places to allow extensions to define the effective language links for a page. $title:The page 's Title. & $links:Array with elements of the form "language:title" in the order that they will be output. & $linkFlags:Associative array mapping prefixed links to arrays of flags. Currently unused, but planned to provide support for marking individual language links in the UI, e.g. for featured articles. 'LanguageSelector':Hook to change the language selector available on a page. $out:The output page. $cssClassName:CSS class name of the language selector. 'LinkBegin':DEPRECATED since 1.28! Use HtmlPageLinkRendererBegin instead. Used when generating internal and interwiki links in Linker::link(), before processing starts. Return false to skip default processing and return $ret. See documentation for Linker::link() for details on the expected meanings of parameters. $skin:the Skin object $target:the Title that the link is pointing to & $html:the contents that the< a > tag should have(raw HTML) name
Definition hooks.txt:1850

Definition at line 420 of file citeParserTests.txt.

◆ !test

&< 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 > !end !test
Initial value:
{{REVISIONID}} on page with <ref> (bug 6299)
!! wikitext
{{REVISIONID}}<ref>elite</ref>
!! html
1337<sup id="cite_ref-1" class="reference"><a href="#cite_note-1">&#91
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy

Definition at line 156 of file citeParserTests.txt.

◆ c</ref >

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 378 of file citeParserTests.txt.

◆ check

</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 231 of file citeParserTests.txt.

◆ error

</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.

◆ group

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

◆ gt

a & gt
Initial value:
{{simple template}}</span>
</li>
</ol></div>
!! end
!! test
<ref> in a <nowiki>
!! wikitext
Templating<nowiki><ref>{{simple template}}</ref></nowiki>
<references />
!! html
<p>Templating&lt
</code > tag with name unused defined in< code > & lt
and how to run hooks for an and one after Each event has a preferably in CamelCase For ArticleDelete hook A clump of code and data that should be run when an event happens This can be either a function and a chunk of or an object and a method hook function The function part of a third party developers and local administrators to define code that will be run at certain points in the mainline and to modify the data run by that mainline code Hooks can keep mainline code simple
Definition hooks.txt:29

Definition at line 90 of file citeParserTests.txt.

◆ Image

&</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 129 of file citeParserTests.txt.

◆ lt

logged in & lt
Initial value:
{{int:0750ed4b}}
</td></tr><tr><td>
</td><td>
Apache License January http
& amp

Definition at line 454 of file citeParserTests.txt.

◆ MediaWiki

</code> has no name attribute</span></p> !end !article MediaWiki

Definition at line 461 of file citeParserTests.txt.

◆ name

invalid e g too many</span></p> !end !test Conflicting name
Initial value:
="…" and follow="…" the same time
!! wikitext
<ref name="theName" follow="theFollows">theValue</ref>
<references />
!! html
<p><span class="error mw-ext-cite-error" lang="en" dir="ltr">Cite error: Invalid <code>&lt
&</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
WARNING: MediaWiki core hardcodes this class name to check if the Cite extension is installed.
Definition Cite.php:33

Definition at line 321 of file citeParserTests.txt.

◆ names

invalid names

Definition at line 327 of file citeParserTests.txt.

◆ refs< references group="参"/>

refs< references group="参"/>

Definition at line 378 of file citeParserTests.txt.

◆ Regression

&</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 213 of file citeParserTests.txt.

◆ Rockology

</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 22 of file citeParserTests.txt.

◆ Simple< ref >

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 30 of file citeParserTests.txt.

◆ T184912

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 272 of file citeParserTests.txt.

◆ tag

string Language LocalisationUpdate\JSONReader::tag

Definition at line 225 of file citeParserTests.txt.

◆ Template

Foo and Baz !endarticle !article Template

Definition at line 8 of file citeParserTests.txt.

◆ zero

</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().