MediaWiki  1.27.2
tests/parser/parserTests.txt File Reference

Macros

#define the   'en' prefix, and originally the test used 'wikipedia',
 table suitable for use with IDatabase::select() More...
 

Functions

</td >< td >< tablebgcolor="#ABCDEF"border="2">
< tr >< td > nested</td ></tr >
< tr >< td > table</td ></tr >
</table ></td >< td > the
original table again</td ></tr >
</table >!end!test Invalid
attributes in table 
cell (bug 1830)!!wikitext
 
!html< table >< tr >< tdstyle="color:red;">
</td >< tdstyle="color:blue;">
</td ></tr >< tr >< td ></td >
< td ></td >< td ></td >< td >
</td >< td ></td >< td ></td >
</tr >< tr >< td ></td >< td >
</td ></tr ></table >!end!test
Table rowspan row</td >
< tdrowspan="2"> 
row (and 2)</td >< td > Cell 3
 

Variables

</td >< td > baz</td ></tr >
</table >!end!test Simple
table 
!wikitext
 
 action =edit&amp
 
</a >< ahref="/index.php?title=Special:Upload&amp;wpDestFile=Nonexistent"class="new"title="File:Nonexistent">
abc</a ></p >!html parsoid< p >
< spanclass="mw-default-size"typeof="mw:Errormw:Image"data-mw='{"errors":[{"key":"missing-image","message":"Thisimagedoesnotexist."}],"caption":"&amp;lt;script&amp;gt;&amp;lt;/script&amp;gt;"}'>
< ahref="./File:Nonexistent">
< imgresource="./File:Nonexistent"src="./Special:FilePath/Nonexistent"height="220"width="220"/>
</a ></span >< spantypeof="mw:Errormw:Image"data-mw='{"errors":[{"key":"missing-image","message":"Thisimagedoesnotexist."}],"caption":"&amp;lt;script&amp;gt;&amp;lt;/script&amp;gt;"}'>
< ahref="./File:Nonexistent">
< imgresource="./File:Nonexistent"src="./Special:FilePath/Nonexistent"height="100"width="100"/>
</a ></span >< spanclass="mw-default-size"typeof="mw:Errormw:Image"data-mw='{"errors":[{"key":"missing-image","message":"Thisimagedoesnotexist."}],"caption":"&lt;spantypeof=\"mw:Entity\"data-parsoid=\"{&amp;quot;src&amp;quot;:&amp;quot;&amp;amp;lt;&amp;quot;,&amp;quot;srcContent&amp;quot;:&amp;quot;&lt;&amp;quot;,&amp;quot;dsr&amp;quot;:[107,111,null,null]}\"> & 
amp
 
!html< table >< tr >< td >
broken</td ></tr ></table >
!end!test Table cell 
attributes
 
!html< table >< tr >< tdstyle="color:red;">
</td >< tdstyle="color:blue;">
</td ></tr >< tr >< td ></td >
< td ></td >< td ></td >< td >
</td >< td ></td >< td ></td >
</tr >< tr >< td ></td >< td >
</td ></tr ></table >!end!test
Table rowspan row</td >
< tdrowspan="2"> 
Cell
 
data contrived
 
 f9f9f9
 
script & gt
 
&</p >< p >< ahref="/index.php?title=%27%27Pentecoste%27%27&amp;action=edit&amp;redlink=1"class="new"title="''Pentecoste''(pagedoesnotexist)"> Pentecoste</a ></p >< p >< ahref="/index.php?title=%27%27Pentecoste%27%27&amp;action=edit&amp;redlink=1"class="new"title="''Pentecoste''(pagedoesnotexist)"> Pentecoste</a ></p >< p >< ahref="/index.php?title=%27%27Pentecoste%27%27&amp;action=edit&amp;redlink=1"class="new"title="''Pentecoste''(pagedoesnotexist)">< i > Pentecoste</i ></a ></p >!html parsoid< p >< spanclass="mw-default-size"typeof="mw:Errormw:Image"data-mw='{"errors":[{"key":"missing-image","message":"Thisimagedoesnotexist."}]}'>< ahref="./File:Denys_Savchenko_''Pentecoste''.jpg">< imgresource="./File:Denys_Savchenko_''Pentecoste''.jpg"src="./Special:FilePath/Denys_Savchenko_''Pentecoste''.jpg"height="220"width="220"/></a ></span ></p >< p >< arel="mw:WikiLink"href="''Pentecoste''"title="''Pentecoste''"> Pentecoste</a ></p >< p >< arel="mw:WikiLink"href="''Pentecoste''"title="''Pentecoste''"> Pentecoste</a ></p >< p >< arel="mw:WikiLink"href="''Pentecoste''"title="''Pentecoste''">< i > Pentecoste</i ></a ></p >!end!test Broken image links with HTML captions(bug 39700)!!wikitext[[File[[File:Nonexistent|a< i >b</i >c]]!html php< p >< ahref="/index.php?title=Special:Upload&amp;wpDestFile=Nonexistent"class="new"title="File:Nonexistent"> & lt
 
!end!test Link with
brackets!wikitext[[[Main Page]]]
Foo[[[Main Page]]]!html< p >
[[[Main Page]]] Foo[[[Main
Page]]]</p >!end!test Link
with brackets!wikitext[[[[Main
Page]]]]!html< p >[[< a href="/wiki/Main_Page"title="Main
Page">Main Page</a >]]</p >
!end!test Piped link with
brackets!wikitext[[[main page|the
main page]]]!html< p >[[[main
page|the main page]]]</p >
!end!test Piped link with
extlink like text!wikitext[[Main
Page|[bar]]][[Main Page|This
is a[bar]]]!html php< p >
< ahref="/wiki/Main_Page"title="MainPage">
</a >< ahref="/wiki/Main_Page"title="MainPage">
This is a[bar]</a ></p >!html
parsoid< p >< arel="mw:WikiLink"href="./Main_Page"title="MainPage"data-parsoid='{"stx":"piped"}'>
</a >< arel="mw:WikiLink"href="./Main_Page"title="MainPage"data-parsoid='{"stx":"piped"}'>
This is a[bar]</a ></p >
!end!test Link with multiple
pipes!wikitext[[Main Page|The|Main|Page]]!html
< p >< ahref="/wiki/Main_Page"title="MainPage">
The Main Page</a ></p >
!end!test Anchor containing
a!wikitext[[Main Page#And#Link]]!html
php< p >< ahref="/wiki/Main_Page#And.23Link"title="MainPage">
Main Page</p >!html parsoid
< p >< arel="mw:WikiLink"href="./Main_Page#And%23Link"title="MainPage"> Main Page!end!test Link to namespaces!html< p >< ahref="/index.php?title=Talk:Parser_testing&amp;action=edit&amp;redlink=1"class="new"title="Talk:Parsertesting(pagedoesnotexist)">< ahref="/index.php?title=Meta:Disclaimers&amp;action=edit&amp;redlink=1"class="new"title="Meta:Disclaimers(pagedoesnotexist)"> 
Meta
 
Parsoid wraps it!test Lists
should be recognized in an
implicit< td > context!options 
parsoid =wt2html
 
</th >< th ></th >< th ></th >
< th ></th ></tr >< tr >< th >
</th >< td ></td >< td ></td >
< td ></td ></tr >< tr >< th >
</th >< td ></td >< td ></td >
< td ></td ></tr >< tr >< th >
</th >< td ></td >< td ></td >
< td ></td ></tr >< tr >< th >
</th >< td ></td >< td ></td >
< td ></td ></tr >< tr >< th >
</th >< td ></td >< td ></td >
< td ></td ></tr ></table >
!end!test Accept in table
headings in cell when td attrs
are 
present
 
 redlink
 
Bar style ='color:brown
 
!end!test Link with
brackets!wikitext[[[Main Page]]]
Foo[[[Main Page]]]!html< p >
[[[Main Page]]] Foo[[[Main
Page]]]</p >!end!test Link
with brackets!wikitext[[[[Main
Page]]]]!html< p >[[< a href="/wiki/Main_Page"title="Main
Page">Main Page</a >]]</p >
!end!test Piped link with
brackets!wikitext[[[main page|the
main page]]]!html< p >[[[main
page|the main page]]]</p >
!end!test Piped link with
extlink like text!wikitext[[Main
Page|[bar]]][[Main Page|This
is a[bar]]]!html php< p >
< ahref="/wiki/Main_Page"title="MainPage">
</a >< ahref="/wiki/Main_Page"title="MainPage">
This is a[bar]</a ></p >!html
parsoid< p >< arel="mw:WikiLink"href="./Main_Page"title="MainPage"data-parsoid='{"stx":"piped"}'>
</a >< arel="mw:WikiLink"href="./Main_Page"title="MainPage"data-parsoid='{"stx":"piped"}'>
This is a[bar]</a ></p >
!end!test Link with multiple
pipes!wikitext[[Main Page|The|Main|Page]]!html
< p >< ahref="/wiki/Main_Page"title="MainPage">
The Main Page</a ></p >
!end!test Anchor containing
a!wikitext[[Main Page#And#Link]]!html
php< p >< ahref="/wiki/Main_Page#And.23Link"title="MainPage">
Main Page</p >!html parsoid
< p >< arel="mw:WikiLink"href="./Main_Page#And%23Link"title="MainPage"> Main Page!end!test Link to namespaces!html< p >< ahref="/index.php?title=Talk:Parser_testing&amp;action=edit&amp;redlink=1"class="new"title="Talk:Parsertesting(pagedoesnotexist)"> 
Talk
 
!article Main Page!text blah
blah!endarticle!article
Foo!text
FOO!endarticle!article 
Template
 
 title
 
 width
 
 wpDestFile =Denys_Savchenko_%27%27Pentecoste%27%27.jpg" class="new" title="File:Denys Savchenko &#39
 

Macro Definition Documentation

array $fetchColumns List of column names to select from BatchRowIterator::the   'en' prefix, and originally the test used 'wikipedia',

Function Documentation

</td><td><tablebgcolor="#ABCDEF"border="2"><tr><td> nested</td></tr><tr><td> table</td></tr></table></td><td> the original table again</td></tr></table> ! end ! test Invalid attributes in table cell ( bug  1830)

Definition at line 6281 of file parserTests.txt.

References broken.

! html<table><tr><tdstyle="color:red;"></td><tdstyle="color:blue;"></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td></tr></table> !end ! test Table rowspan row</td><tdrowspan="2"> row ( and  2)

Variable Documentation

!end!test Link with brackets !wikitext

Definition at line 5928 of file parserTests.txt.

List redirects & amp

Definition at line 7586 of file parserTests.txt.

!html< table >< tr >< tdstyle="color:red"></td >< tdstyle="color:blue"></td ></tr >< tr >< td ></td >< td ></td >< td ></td >< td ></td >< td ></td >< td ></td ></tr >< tr >< td ></td >< td ></td ></tr ></table >!end!test Table rowspan row</td >< tdrowspan="2"> row</td ></tr >< tr >< td > row</td >< td > Cell

Definition at line 6223 of file parserTests.txt.

data contrived

Definition at line 6399 of file parserTests.txt.

f9f9f9

Definition at line 148 of file parserTests.txt.

a & gt

Definition at line 7578 of file parserTests.txt.

span<ahref="./File:Nonexistent"><imgresource="./File:Nonexistent"src="./Special:FilePath/Nonexistent"height="220"width="220"/></a></span><spanclass="mw-default-size"typeof="mw:Errormw:Image"data-mw='{"errors":[{"key":"missing-image","message":"Thisimagedoesnotexist."}],"caption":"a&lt;idata-parsoid=\"{&amp;quot;stx&amp;quot;:&amp;quot;html&amp;quot;,&amp;quot;dsr&amp;quot;:[134,142,3,4]}\"> b& lt

Definition at line 7571 of file parserTests.txt.

! end ! test Link with brackets ! wikitext [[[Main Page]]] Foo [[[Main Page]]] ! html<p> [[[Main Page]]] Foo [[[Main Page]]]</p> ! end ! test Link with brackets ! wikitext [[[[Main Page]]]] ! html<p> [[<a href="/wiki/Main_Page" title="Main Page">Main Page</a>]]</p> ! end ! test Piped link with brackets ! wikitext [[[main page|the main page]]] ! html<p> [[[main page|the main page]]]</p> ! end ! test Piped link with extlink like text ! wikitext [[Main Page|[bar]]][[Main Page|This is a [bar]]] ! html php<p><ahref="/wiki/Main_Page"title="MainPage"></a><ahref="/wiki/Main_Page"title="MainPage"> This is a [bar]</a></p> ! html parsoid<p><arel="mw:WikiLink"href="./Main_Page"title="MainPage"data-parsoid='{"stx":"piped"}'></a><arel="mw:WikiLink"href="./Main_Page"title="MainPage"data-parsoid='{"stx":"piped"}'> This is a [bar]</a></p> ! end ! test Link with multiple pipes ! wikitext [[Main Page|The|Main|Page]] ! html<p><ahref="/wiki/Main_Page"title="MainPage"> The Main Page</a></p> ! end ! test Anchor containing a ! wikitext [[Main Page#And#Link]] ! html php<p><ahref="/wiki/Main_Page#And.23Link"title="MainPage"> Main Page</p> ! html parsoid<p><arel="mw:WikiLink"href="./Main_Page#And%23Link"title="MainPage"> Main Page ! end ! test Link to namespaces ! html<p><ahref="/index.php?title=Talk:Parser_testing&amp;action=edit&amp;redlink=1"class="new"title="Talk:Parsertesting(pagedoesnotexist)"><ahref="/index.php?title=Meta:Disclaimers&amp;action=edit&amp;redlink=1"class="new"title="Meta:Disclaimers(pagedoesnotexist)"> Meta

Definition at line 7359 of file parserTests.txt.

Parsoid wraps it ! test Lists should be recognized in an implicit<td> context ! options parsoid =wt2html

Definition at line 6899 of file parserTests.txt.

File $file selected reference file if FileDuplicateSearchPage::present

Definition at line 6039 of file parserTests.txt.

redlink

Definition at line 7370 of file parserTests.txt.

! end ! test Link with brackets ! wikitext [[[Main Page]]] Foo [[[Main Page]]] ! html<p> [[[Main Page]]] Foo [[[Main Page]]]</p> ! end ! test Link with brackets ! wikitext [[[[Main Page]]]] ! html<p> [[<a href="/wiki/Main_Page" title="Main Page">Main Page</a>]]</p> ! end ! test Piped link with brackets ! wikitext [[[main page|the main page]]] ! html<p> [[[main page|the main page]]]</p> ! end ! test Piped link with extlink like text ! wikitext [[Main Page|[bar]]][[Main Page|This is a [bar]]] ! html php<p><ahref="/wiki/Main_Page"title="MainPage"></a><ahref="/wiki/Main_Page"title="MainPage"> This is a [bar]</a></p> ! html parsoid<p><arel="mw:WikiLink"href="./Main_Page"title="MainPage"data-parsoid='{"stx":"piped"}'></a><arel="mw:WikiLink"href="./Main_Page"title="MainPage"data-parsoid='{"stx":"piped"}'> This is a [bar]</a></p> ! end ! test Link with multiple pipes ! wikitext [[Main Page|The|Main|Page]] ! html<p><ahref="/wiki/Main_Page"title="MainPage"> The Main Page</a></p> ! end ! test Anchor containing a ! wikitext [[Main Page#And#Link]] ! html php<p><ahref="/wiki/Main_Page#And.23Link"title="MainPage"> Main Page</p> ! html parsoid<p><arel="mw:WikiLink"href="./Main_Page#And%23Link"title="MainPage"> Main Page ! end ! test Link to namespaces ! html<p><ahref="/index.php?title=Talk:Parser_testing&amp;action=edit&amp;redlink=1"class="new"title="Talk:Parsertesting(pagedoesnotexist)"> Talk

Definition at line 7359 of file parserTests.txt.

Referenced by ImportTest::getSiteInfoXML().

Foo and Baz!endarticle!article Template

Definition at line 133 of file parserTests.txt.

Referenced by ApiQueryRevisionsBase::extractRevisionInfo().

bar</td >< td > title

Definition at line 210 of file parserTests.txt.

Referenced by MediaWiki\Widget\ComplexTitleInputWidget::__construct(), MergeHistoryPager::__construct(), ErrorPageError::__construct(), UpdateCollation::__construct(), PageArchive::__construct(), RevisionListBase::__construct(), FileDeleteForm::__construct(), ImageHistoryList::__construct(), SearchUpdate::__construct(), FeedItem::__construct(), UnregisteredLocalFile::__construct(), CategoryViewer::__construct(), Job::__construct(), BacklinkCache::__construct(), ArchivedFile::__construct(), Exif::__construct(), JobSpecification::__construct(), PPFuzzTest::__construct(), File::__construct(), PPFrame_Hash::__construct(), PPFrame_DOM::__construct(), PPTemplateFrame_Hash::__construct(), PPTemplateFrame_DOM::__construct(), EmailNotification::actuallyNotifyOnPageChange(), CategoryMembershipChangeJobTest::addDBDataOnce(), SpecialChangeContentModel::alterForm(), LogFormatterTest::assertIRCComment(), File::assertTitleDefined(), DerivativeContext::canUseWikiPage(), EmailNotification::composeCommonMailtext(), CategoryViewer::doCategoryQuery(), RevDelFileList::doPostCommitUpdates(), RevDelRevisionList::doPostCommitUpdates(), RevDelRevisionList::doPreCommitUpdates(), ChangeTagsRevisionList::doQuery(), RevDelArchivedFileList::doQuery(), RevDelArchiveList::doQuery(), RevDelFileList::doQuery(), RevDelRevisionList::doQuery(), RevisionList::doQuery(), WebRequest::doSecurityRedirect(), SearchUpdate::doUpdate(), CategoryMembershipChangeJobTest::editPageText(), FileDeleteForm::execute(), ConvertLinks::execute(), PPFuzzTest::execute(), PPFrame_Hash::expand(), PPFrame_DOM::expand(), CategoryViewer::formatList(), BacklinkCache::get(), FileDeleteForm::getAction(), BacklinkCache::getCascadeProtectedLinks(), BacklinkCache::getConditions(), RevDelRevisionList::getCurrent(), ForeignDBFile::getDescriptionShortUrl(), LocalFile::getDescriptionShortUrl(), ForeignDBFile::getDescriptionText(), LocalFile::getDescriptionText(), LocalFile::getDescriptionTouched(), LocalFile::getDescriptionUrl(), SpecialChangeContentModel::getFormFields(), LocalFile::getHistory(), CategoryViewer::getImageSection(), PageArchive::getLastRevisionText(), File::getName(), SearchUpdate::getNormalizedTitle(), BacklinkCache::getNumLinks(), CategoryViewer::getPagesSection(), PPFrame_Hash::getPDBK(), PPFrame_DOM::getPDBK(), PageArchive::getPreviousRevision(), ImportTest::getRedirectXML(), PPFuzzTest::getReport(), PageArchive::getRevision(), FeedItem::getTitle(), WatchedItem::getTitle(), DerivativeContext::getTitle(), RequestContext::getTitle(), ArchivedFile::getTitle(), ImportTest::getUnknownTagsXML(), RequestContext::hasTitle(), ImageHistoryList::imageHistoryLine(), WikiRevision::importOldRevision(), PageArchive::isDeleted(), LogPager::limitTitle(), PageArchive::listFiles(), PageArchive::listRevisions(), ArchivedFile::load(), ArchivedFile::loadFromRow(), LocalFile::move(), PPFrame_Hash::newChild(), PPFrame_DOM::newChild(), LogFormatterTest::newLogEntry(), LocalFile::nextHistoryLine(), SpecialChangeContentModel::onSubmit(), SpecialChangeContentModel::onSuccess(), RSSFeed::outHeader(), AtomFeed::outHeader(), RSSFeed::outItem(), AtomFeed::outItem(), WebInstallerOutput::outputFooter(), WebInstallerOutput::outputHeader(), WebInstallerOutput::outputShortHeader(), CoreParserFunctions::pagesincategory(), CategoryViewer::pagingLinks(), BacklinkCache::partition(), SpecialJavaScriptTest::plainQUnit(), FileDeleteForm::prepareMessage(), ErrorPageError::report(), EnotifNotifyJob::run(), ThumbnailRenderJob::run(), DeleteLinksJob::run(), RefreshLinksJob::run(), DoubleRedirectJob::run(), TitlePermissionTest::runCSSandJSPermissions(), TitlePermissionTest::runGroupPermissions(), FileDeleteForm::setHeaders(), SpecialChangeContentModel::setParameter(), TitlePermissionTest::setTitle(), WikiRevision::setTitle(), DerivativeContext::setTitle(), RequestContext::setTitle(), RecentChangeTest::setUp(), ArticleTest::setUp(), ParserPreloadTest::setUp(), TitlePermissionTest::setUp(), LogFormatterTest::setUp(), RevDelList::setVisibility(), FileDeleteForm::showForm(), FileDeleteForm::showLogEntries(), ArticleTest::tearDown(), ParserPreloadTest::tearDown(), TitlePermissionTest::testActionPermissions(), TitlePermissionTest::testCascadingSourcesRestrictions(), RecentChangeTest::testHiddenCategoryChange(), LogFormatterTest::testLogParamsTypeRaw(), LogFormatterTest::testLogParamsTypeTitleLink(), LogFormatterTest::testNormalLogParams(), TitlePermissionTest::testPageRestrictions(), TitlePermissionTest::testQuickPermissions(), TitlePermissionTest::testSpecialsAndNSPermissions(), SideBarTest::testTrickyPipe(), TitlePermissionTest::testUserBlock(), JobSpecification::toSerializableArray(), Job::toString(), PageArchive::undelete(), PageArchive::undeleteRevisions(), ActivityUpdateJob::updateWatchlistNotification(), ApiWatch::watchTitle(), wfGenericError(), and wfThumbError().

width
Initial value:
="10px" |
!! endarticle
Template:table_attribs_5
!! text
<noinclude>
|</noinclude>style="color:red;"||Bar
!! endarticle
Template:table_attribs_6
!! text
style="background: <nowiki>
red;</nowiki>" |
!! endarticle
Template:table_attribs_7
!! text
<noinclude>
|</noinclude>style{{=}}"background:&#35;f9f9f9;"|Foo<ref>foo</ref>
!! endarticle
Template:table_header_cells
!! text
{{table_attribs}}!!style='color:red
design txt This is a brief overview of the new design More thorough and up to date information is available on the documentation wiki at etc Handles the details of getting and saving to the user table of the and dealing with sessions and cookies OutputPage Encapsulates the entire HTML page that will be sent in response to any server request It is used by calling its functions to add in any and then calling but I prefer the flexibility This should also do the output encoding The system allocates a global one in $wgOut Title Represents the title of an article
Definition: design.txt:25
!article Main Page!text blah blah!endarticle!article Foo!text FOO!endarticle!article Template
Bar style
design txt This is a brief overview of the new design More thorough and up to date information is available on the documentation wiki at etc Handles the details of getting and saving to the user table of the and dealing with sessions and cookies OutputPage Encapsulates the entire HTML page that will be sent in response to any server request It is used by calling its functions to add text
Definition: design.txt:12
Further assume MyExt::onFoo needs service Bar
Definition: injection.txt:193

Definition at line 154 of file parserTests.txt.

Referenced by ArchivedFile::__construct(), Exif::__construct(), ThumbnailImage::__construct(), MediaTransformError::__construct(), ArchivedFile::loadFromRow(), LocalFile::recordUpload2(), OldLocalFile::upgradeRow(), and LocalFile::upgradeRow().

wpDestFile =Denys_Savchenko_%27%27Pentecoste%27%27.jpg" class="new" title="File:Denys Savchenko &#39

Definition at line 7558 of file parserTests.txt.