MediaWiki REL1_27
tests/parser/parserTests.txt File Reference

Macros

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

Functions

</td >< td >< table bgcolor="#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 >< td style="color:red;"></td >< td style="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 >< td rowspan="2"> row (and 2)</td >< td > Cell 3
 

Variables

</td >< td > baz</td ></tr ></table > !end !test Simple table !wikitext
 
! html< table >< tr >< td > broken</td ></tr ></table > !end !test Table cell attributes
 
! html< table >< tr >< td style="color:red;"></td >< td style="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 >< td rowspan="2"> Cell
 
data contrived
 
 f9f9f9
 
</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
 
Bar style ='color:brown
 
!article Main Page !text blah blah !endarticle !article Foo !text FOO !endarticle !article Template
 
 title
 
 width
 

Macro Definition Documentation

◆ the

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

table suitable for use with IDatabase::select()

Referenced by DumpBackup::__construct(), Exif::__construct(), BackupReader::__construct(), PopulateCategory::__construct(), UpdateCollation::__construct(), NewParserTest::addDBDataOnce(), array(), boolean(), JobQueueRedis::doAck(), RecompressTracked::doAllPages(), Parser::doTableStuff(), QueryPage::execute(), UpdateLogging::execute(), MWDocGen::execute(), Language::fetchLanguageNamesUncached(), RedisLockManager::freeLocksOnServer(), WebInstallerOptions::getCCDoneBox(), RedisLockManager::getLocksOnServer(), Revision::getText(), MediaWikiTitleCodec::getTitleInvalidRegex(), MWExceptionHandler::handleFatalError(), CheckLanguageCLI::help(), CheckExtensionsCLI::help(), PoolCounterRedis::initAndPopPoolSlotList(), ChangesListSpecialPage::makeLegend(), SpecialBlock::maybeAlterFormDefaults(), mccShowUsage(), DatabaseOracle::open(), DatabasePostgres::open(), JobQueueRedis::popAndAcquireBlob(), SanitizerTest::provideHtml5Tags(), RevisionStorageTest::provideUserWasLastToEdit(), JobQueueRedis::pushBlobs(), ResourceLoader::register(), PoolCounterRedis::registerAcquisitionTime(), PoolCounterRedis::release(), replaceInternalLinks2(), MovePageForm::showForm(), LogEventsList::showLogExtract(), showUsage(), UserOptions::showUsageAndExit(), slave(), MediaWikiTitleCodec::splitTitleString(), TextContentTest::testDeletionUpdates(), TagHookTest::testFunctionTagHooks(), WikitextContentTest::testGetSecondaryDataUpdates(), PathRouterTest::testLoose(), TagHookTest::testTagHooks(), UserOptions::warn(), wfMissingVendorError(), wfPHPVersionError(), and wfStreamThumb().

Function Documentation

◆ cell()

</td >< td >< table bgcolor="#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, Cell, and in.

◆ row()

! html< table >< tr >< td style="color:red;"></td >< td style="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 >< td rowspan="2"> row ( and  2)

Variable Documentation

◆ !wikitext

Foo</td >< td style="color:red"> Foo</td >< td > html2html !wikitext

Definition at line 5927 of file parserTests.txt.

◆ attributes

◆ Cell

! html< table >< tr >< td style="color:red"></td >< td style="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 >< td rowspan="2"> row</td ></tr >< tr >< td > row</td >< td > Cell

Definition at line 6236 of file parserTests.txt.

Referenced by cell().

◆ contrived

data contrived

Definition at line 6399 of file parserTests.txt.

◆ f9f9f9

f9f9f9

Definition at line 148 of file parserTests.txt.

◆ present

File $file selected reference file if FileDuplicateSearchPage::present

Definition at line 6182 of file parserTests.txt.

◆ style

Foo</td >< td style="color:red"> Foo</td >< td > style ='color:brown

◆ Template

Foo and Baz !endarticle !article Template

Definition at line 58 of file parserTests.txt.

Referenced by ApiQueryRevisionsBase::extractRevisionInfo().

◆ title

bar</td >< td > title

Definition at line 210 of file parserTests.txt.

Referenced by Job::__construct(), FileDeleteForm::__construct(), Exif::__construct(), SearchUpdate::__construct(), ImageHistoryList::__construct(), PPFrame_DOM::__construct(), PPFrame_Hash::__construct(), PPTemplateFrame_DOM::__construct(), PPTemplateFrame_Hash::__construct(), PPFuzzTest::__construct(), FeedItem::__construct(), ArchivedFile::__construct(), ErrorPageError::__construct(), File::__construct(), PageArchive::__construct(), CategoryViewer::__construct(), UnregisteredLocalFile::__construct(), JobSpecification::__construct(), UpdateCollation::__construct(), MediaWiki\Widget\ComplexTitleInputWidget::__construct(), RevisionListBase::__construct(), MergeHistoryPager::__construct(), BacklinkCache::__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_DOM::expand(), PPFrame_Hash::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(), SpecialContributions::getForm(), SpecialChangeContentModel::getFormFields(), LocalFile::getHistory(), CategoryViewer::getImageSection(), PageArchive::getLastRevisionText(), File::getName(), SearchUpdate::getNormalizedTitle(), BacklinkCache::getNumLinks(), CategoryViewer::getPagesSection(), PPFrame_DOM::getPDBK(), PPFrame_Hash::getPDBK(), PageArchive::getPreviousRevision(), ImportTest::getRedirectXML(), PPFuzzTest::getReport(), PageArchive::getRevision(), DerivativeContext::getTitle(), RequestContext::getTitle(), FeedItem::getTitle(), ArchivedFile::getTitle(), WatchedItem::getTitle(), ImportTest::getUnknownTagsXML(), RequestContext::hasTitle(), ImageHistoryList::imageHistoryLine(), WikiRevision::importOldRevision(), PageArchive::isDeleted(), LogPager::limitTitle(), PageArchive::listFiles(), PageArchive::listRevisions(), ArchivedFile::load(), ArchivedFile::loadFromRow(), LocalFile::move(), PPFrame_DOM::newChild(), PPFrame_Hash::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(), DeleteLinksJob::run(), DoubleRedirectJob::run(), EnotifNotifyJob::run(), RefreshLinksJob::run(), ThumbnailRenderJob::run(), TitlePermissionTest::runCSSandJSPermissions(), TitlePermissionTest::runGroupPermissions(), FileDeleteForm::setHeaders(), SpecialChangeContentModel::setParameter(), TitlePermissionTest::setTitle(), WikiRevision::setTitle(), DerivativeContext::setTitle(), RequestContext::setTitle(), RecentChangeTest::setUp(), LogFormatterTest::setUp(), ArticleTest::setUp(), ParserPreloadTest::setUp(), TitlePermissionTest::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(), wfGenericError(), wfImageAuthMain(), and wfThumbError().

◆ width

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
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:18
Further assume MyExt::onFoo needs service Bar
!article Main Page !text blah blah !endarticle !article Foo !text FOO !endarticle !article Template
Bar style

Definition at line 154 of file parserTests.txt.

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