MediaWiki  1.30.0
tests/parser/preprocess/All_system_messages.txt File Reference

Functions

See &</td >< td > &Fill in a specific reason below (for example, citing particular pages that were vandalized).</td >< td >
 
page as if applicable</td >< td > ve followed a link to a page that doesn &To create the start typing in the box below (see the &#91;&#91;Wiktionary:Help &#124;help page]] for more info). If you are here by mistake
 
could not be made into a sysop (Did you enter the name correctly?) &lt
 
which are not or by specifying more than one search term (only pages containing all of the search terms will appear in the result).</td >< td >
 

Variables

 __pad0__
 
 __pad1__
 
Attention __pad2__
 
WARNING __pad3__
 
 __pad4__
 
optional __pad5__
 
optional __pad6__
 
If this is not the you may have found a bug in the software Please report this to an administrator
 
accesskey contributions & amp
 
If this is not the case
 
to move a page</td >< td > &*You are moving the page across *A non empty talk page already exists under the new or *You uncheck the box below In those cases
 
in the sidebar</td >< td > font color =red&gt
 
matched page titles and the text of pages</td >< td > t write to or create math output directory</td >< td > t write to or create math temp directory</td >< td > check for correct installation of dvips
 
Please log in again after you receive it</td >< td > s a saved copy from
 
matched page titles and the text of pages</td >< td > t write to or create math output directory</td >< td > t write to or create math temp directory</td >< td > check for correct installation of gs
 
 gt
 
shown</td >< td > a href =&quot
 
which are not indexed
 
Your real if you choose to provide it
 
If you want to remove the page from your watchlist later
 
matched page titles and the text of pages</td >< td > t write to or create math output directory</td >< td > t write to or create math temp directory</td >< td > check for correct installation of latex
 
 lt
 
address of the mail
 
to move a page</td >< td > &*You are moving the page across *A non empty talk page already exists under the new or *You uncheck the box below In those you will have to move or merge the page manually if desired</td >< td > be sure to &You are responsible for making sure that links continue to point where they are supposed to go Note that the page will &a page at the new unless it is empty or a redirect and has no past edit history This means that you can rename a page back to where it was just renamed from if you make a mistake
 
Your real name
 
to move a page</td >< td > &*You are moving the page across namespaces
 
 nbsp
 
target page
 
</td >< td > &</td >< td > & quot
 
This list may contain false positives That usually means there is additional text with links below the first Each row contains links to the first and second redirect
 
</td >< td > this can then be imported into another wiki running MediaWiki software
 
wiki Special
 
This list may contain false positives That usually means there is additional text with links below the first Each row contains links to the first and second as well as the first line of the second redirect text
 
has been added to your &Future changes to this page and its associated Talk page will be listed there
 
to move a page</td >< td > &*You are moving the page across *A non empty talk page already exists under the new or *You uncheck the box below In those you will have to move or merge the page manually if desired</td >< td > be sure to &You are responsible for making sure that links continue to point where they are supposed to go Note that the page will &a page at the new title
 
</td >< td > this can then be imported into another wiki running MediaWiki transformed
 
 User
 
page as well
 
</td >< td > &</td >< td > t want your writing to be edited mercilessly and redistributed at will
 
</td >< td > &</td >< td > t want your writing to be edited mercilessly and redistributed at then don &You are also promising us that you wrote this yourself
 

Function Documentation

◆ below() [1/2]

See&</td><td> & Fill in a specific reason below ( for  example,
citing particular pages that were  vandalized 
)

Definition at line 649 of file All_system_messages.txt.

◆ below() [2/2]

page as if applicable</td><td> ve followed a link to a page that doesn& To create the start typing in the box below ( see the &#91;&#91;Wiktionary:Help &#124;help page]] for more  info)

◆ sysop()

could not be made into a sysop ( Did you enter the name correctly?  ) &

◆ term()

Variable Documentation

◆ __pad0__

__pad0__

Definition at line 1079 of file All_system_messages.txt.

◆ __pad1__

__pad1__

Definition at line 1090 of file All_system_messages.txt.

◆ __pad2__

Attention __pad2__

Definition at line 1266 of file All_system_messages.txt.

◆ __pad3__

WARNING __pad3__

Definition at line 1325 of file All_system_messages.txt.

◆ __pad4__

__pad4__

Definition at line 3004 of file All_system_messages.txt.

◆ __pad5__

optional __pad5__

Definition at line 3370 of file All_system_messages.txt.

◆ __pad6__

optional __pad6__

Definition at line 3372 of file All_system_messages.txt.

◆ administrator

If this is not the you may have found a bug in the software Please report this to an administrator

Definition at line 2595 of file All_system_messages.txt.

◆ amp

List redirects& amp

Definition at line 83 of file All_system_messages.txt.

◆ case

If this is not the case

Definition at line 2595 of file All_system_messages.txt.

◆ cases

to move a page</td><td> & * You are moving the page across * A non empty talk page already exists under the new or* You uncheck the box below In those cases

Definition at line 2670 of file All_system_messages.txt.

◆ color

in the sidebar</td><td> font color =red&gt

◆ dvips

matched page titles and the text of pages</td><td> t write to or create math output directory</td><td> t write to or create math temp directory</td><td> check for correct installation of dvips

Definition at line 2465 of file All_system_messages.txt.

◆ from

Please log in again after you receive it</td><td> s a saved copy from
Initial value:
{{int:feea022e}}
</td></tr><tr><td>
</td><td>
The following data is cached and may not be completely up to date:
</td><td>
{{int:d89b33a4}}
</td></tr><tr><td>
</td><td>
Sorry! This feature has been temporarily disabled
because it slows the database down to the point that no one can use
the wiki.
</td><td>
{{int:7c3d6ba1}}
</td></tr><tr><td>
</td><td>
Here&#39

Definition at line 3283 of file All_system_messages.txt.

◆ gs

matched page titles and the text of pages</td><td> t write to or create math output directory</td><td> t write to or create math temp directory</td><td> check for correct installation of gs

Definition at line 2465 of file All_system_messages.txt.

◆ gt

a& gt

Definition at line 83 of file All_system_messages.txt.

◆ href

◆ indexed

which are not indexed

Definition at line 3004 of file All_system_messages.txt.

◆ it

Your real if you choose to provide it

Definition at line 1355 of file All_system_messages.txt.

◆ later

If you want to remove the page from your watchlist later

Definition at line 361 of file All_system_messages.txt.

◆ latex

matched page titles and the text of pages</td><td> t write to or create math output directory</td><td> t write to or create math temp directory</td><td> check for correct installation of latex
Initial value:
{{int:f83fe947}}
</td></tr><tr><td>
</td><td>
Failed to parse
</td><td>
{{int:f8cf40ba}}
</td></tr><tr><td>
</td><td>
PNG conversion failed

Definition at line 2465 of file All_system_messages.txt.

◆ lt

logged in& lt

Definition at line 1 of file All_system_messages.txt.

◆ mail

address of the mail

Definition at line 1386 of file All_system_messages.txt.

Referenced by UserMailer::sendInternal().

◆ mistake

to move a page</td><td> & * You are moving the page across * A non empty talk page already exists under the new or* You uncheck the box below In those you will have to move or merge the page manually if desired</td><td> be sure to& You are responsible for making sure that links continue to point where they are supposed to go Note that the page will& a page at the new unless it is empty or a redirect and has no past edit history This means that you can rename a page back to where it was just renamed from if you make a mistake

Definition at line 2696 of file All_system_messages.txt.

◆ name

to move a page</td><td> & * You are moving the page across * A non empty talk page already exists under the new name

Definition at line 1355 of file All_system_messages.txt.

◆ namespaces

◆ nbsp

& nbsp

Definition at line 3356 of file All_system_messages.txt.

◆ page

page as if applicable</td >< td > ve followed a link to a page that doesn &To create the page

Definition at line 1267 of file All_system_messages.txt.

Referenced by DumpBackup::__construct(), CleanupEmptyCategories::__construct(), BlockListPager::__construct(), UpdateCollation::__construct(), LinksDeletionUpdate::__construct(), CleanupInvalidDbKeys::__construct(), PoolWorkArticleView::__construct(), TextPassDumper::__construct(), Action::__construct(), ThumbnailImage::__construct(), EditPage::__construct(), PHPVersionCheck::checkRequiredPHPVersion(), LinksDeletionUpdate::doUpdate(), PoolWorkArticleView::doWork(), UpdateLogging::execute(), PoolWorkArticleView::fallback(), HistoryAction::fetchRevisions(), LinksDeletionUpdate::getAsJobSpecification(), PoolWorkArticleView::getCachedWork(), CachedAction::getCacheKey(), EditPage::getContentObject(), Action::getContext(), CreditsAction::getContributors(), InfoAction::getContributors(), CreditsAction::getCredits(), EditPage::getCurrentContent(), MediaTransformOutput::getDescLinkAttribs(), FormAction::getForm(), RevertAction::getFormFields(), User::getNewtalk(), RawAction::getOldId(), EditPage::getPreviewParserOptions(), ImportTest::getRedirectXML(), Action::getTitle(), ImportTest::getUnknownTagsXML(), CheckLanguageCLI::help(), EditPage::initialiseForm(), EditPage::internalAttemptSave(), Linker::normalizeSubpageLink(), PurgeAction::onSubmit(), RevertAction::onSubmit(), RevertAction::onSuccess(), CreditsAction::onView(), RawAction::onView(), RollbackAction::onView(), InfoAction::onView(), HistoryAction::onView(), InfoAction::pageInfo(), ApiEditPageTest::provideEditAppend(), PdfImage::retrieveMetaData(), EditPage::setPostEditCookie(), SpecialMIMESearchTest::setUp(), UnprotectAction::show(), DeleteAction::show(), ProtectAction::show(), RenderAction::show(), ViewAction::show(), EditPage::showDiff(), EditPage::showEditForm(), MovePageForm::showForm(), EditPage::showHeader(), SpecialMIMESearchTest::testMimeFiltering(), SideBarTest::testTrickyPipe(), DumpLatestFilter::writeClosePage(), and DumpLatestFilter::writeOpenPage().

◆ quot

optional and it can be used to send you a new password if you forget it</td >< td > & quot
Initial value:
{{int:d4dce921}}
</td></tr><tr><td>
</td><td>
Password sent.
</td><td>
{{int:9e6cd678}}
</td></tr><tr><td>
</td><td>
</td><td>
{{int:37186ec6}}
</td></tr><tr><td>
</td><td>
Added to watchlist
</td><td>
{{int:2bacba53}}
</td></tr><tr><td>
</td><td>
The page &quot

Definition at line 330 of file All_system_messages.txt.

◆ redirect

This list may contain false positives That usually means there is additional text with links below the first Each row contains links to the first and second redirect

◆ software

</td><td> this can then be imported into another wiki running MediaWiki software
Initial value:
{{int:b7845dfb}}
</td></tr><tr><td>
</td><td>
Export pages
</td><td>
{{int:f3e4fadb}}
</td></tr><tr><td>
</td><td>
Include only the current revision, not the full history
</td><td>
{{int:b68aeee1}}
</td></tr><tr><td>
</td><td>
You can export the text and editing history of a particular
page or set of pages wrapped in some XML

Definition at line 1488 of file All_system_messages.txt.

◆ Special

◆ text

This list may contain false positives That usually means there is additional text with links below the first Each row contains links to the first and second as well as the first line of the second redirect text

Definition at line 1267 of file All_system_messages.txt.

◆ there

has been added to your& Future changes to this page and its associated Talk page will be listed there

Definition at line 357 of file All_system_messages.txt.

Referenced by BackupReader::__construct().

◆ title

to move a page</td><td> & * You are moving the page across * A non empty talk page already exists under the new or* You uncheck the box below In those you will have to move or merge the page manually if desired</td><td> be sure to& You are responsible for making sure that links continue to point where they are supposed to go Note that the page will& a page at the new title
Initial value:
{{int:993d5ce8}}
</td></tr><tr><td>
</td><td>
Using the form below will rename a page, moving all
of its history to the new name.
The old title will become a redirect page to the new title.
Links to the old page title will not be changed

Definition at line 2696 of file All_system_messages.txt.

Referenced by MediaWiki\Widget\ComplexTitleInputWidget::__construct(), MergeHistoryPager::__construct(), ErrorPageError::__construct(), PageArchive::__construct(), UpdateCollation::__construct(), RevisionListBase::__construct(), FileDeleteForm::__construct(), CleanupInvalidDbKeys::__construct(), ImageHistoryList::__construct(), FeedItem::__construct(), UnregisteredLocalFile::__construct(), CategoryViewer::__construct(), BacklinkCache::__construct(), Job::__construct(), ArchivedFile::__construct(), Exif::__construct(), JobSpecification::__construct(), PPFuzzTest::__construct(), ChangesListFilterGroup::__construct(), File::__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(), CategoryMembershipChangeJobTest::editPageText(), SpecialCiteThisPage::execute(), FileDeleteForm::execute(), ConvertLinks::execute(), PPFuzzTest::execute(), ApiQueryRevisionsBase::extractRevisionInfo(), 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(), PHPVersionCheck::getIndexErrorOutput(), PageArchive::getLastRevisionText(), File::getName(), BacklinkCache::getNumLinks(), CategoryViewer::getPagesSection(), 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(), LogFormatterTest::newLogEntry(), LocalFile::nextHistoryLine(), SpecialCiteThisPage::onSubmit(), SpecialChangeContentModel::onSubmit(), SpecialChangeContentModel::onSuccess(), AtomFeed::outHeader(), outItem(), AtomFeed::outItem(), WebInstallerOutput::outputFooter(), WebInstallerOutput::outputHeader(), WebInstallerOutput::outputShortHeader(), CoreParserFunctions::pagesincategory(), CategoryViewer::pagingLinks(), BacklinkCache::partition(), SpecialJavaScriptTest::plainQUnit(), SpecialChangeContentModel::postText(), FileDeleteForm::prepareMessage(), Preprocessor_Hash::preprocessToObj(), ErrorPageError::report(), CreatePdfThumbnailsJob::run(), EnotifNotifyJob::run(), ThumbnailRenderJob::run(), DeleteLinksJob::run(), RefreshLinksJob::run(), DoubleRedirectJob::run(), TitlePermissionTest::runCSSandJSPermissions(), TitlePermissionTest::runGroupPermissions(), FileDeleteForm::setHeaders(), SpecialChangeContentModel::setParameter(), TitlePermissionTest::setTitle(), DerivativeContext::setTitle(), RequestContext::setTitle(), WikiRevision::setTitle(), RecentChangeTest::setUp(), ArticleTest::setUp(), TitlePermissionTest::setUp(), ParserPreloadTest::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(), and wfThumbError().

◆ transformed

</td><td> this can then be imported into another wiki running MediaWiki transformed

Definition at line 1488 of file All_system_messages.txt.

◆ User

Definition at line 425 of file All_system_messages.txt.

Referenced by PreferencesTest::__construct(), MediaWiki\Session\SessionBackend::__construct(), ApiMain::__construct(), ParserOptions::__construct(), MediaWiki\Auth\AuthManager::autoCreateUser(), CentralIdLookup::checkAudience(), CompareParsers::checkOptions(), MediaWiki\Auth\AuthManager::continueAccountCreation(), User::createNew(), LocalRepo::findFiles(), FeedUtils::formatDiffRow(), ParserFuzzTest::fuzzTest(), CaptchaPreAuthenticationProvider::getAuthenticationRequests(), TitleBlacklistPreAuthenticationProvider::getAuthenticationRequests(), User::getRights(), MediaWiki\Session\UserInfo::getUser(), ResourceLoaderContext::getUserObj(), DumpRenderer::handleRevision(), WikiRevision::importOldRevision(), ReassignEdits::initialiseUser(), ContentHandler::makeParserOptions(), User::newFromId(), User::newFromName(), User::newFromRow(), User::newFromSession(), Block::prevents(), CaptchaPreAuthenticationProviderTest::providePingLimiter(), TextContentTest::setUp(), CssContentTest::setUp(), UploadFromUrlTestSuite::setUp(), UserGroupMembershipTest::setUp(), DumpTestCase::setUp(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testAccountCreation(), MediaWiki\Auth\AuthManagerTest::testAccountCreationLogging(), ApiMainTest::testAssert(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProviderTest::testBasics(), CaptchaPreAuthenticationProvider::testForAuthentication(), LanguageConverterTest::testGetPreferredVariantUserOption(), LanguageConverterTest::testGetPreferredVariantUserOptionForForeignLanguage(), UserTest::testLoggedIn(), ExtraParserTest::testLongNumericLinesDontKillTheParser(), MediaWiki\Session\CookieSessionProviderTest::testPersistSession(), MediaWiki\Session\CookieSessionProviderTest::testPersistSessionWithHook(), MediaWiki\Auth\UserDataAuthenticationRequestTest::testPopulateUser(), ParserMethodsTest::testPreSaveTransform(), ExtraParserTest::testPreSaveTransform(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testProviderChangeAuthenticationData(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testProviderRevokeAccessForUser(), MediaWiki\Auth\AuthManagerTest::testSecuritySensitiveOperationStatus(), TemplateCategoriesTest::testTemplateCategories(), ArticleTablesTest::testTemplatelinksUsesContentLanguage(), and TitleTest::testWgWhitelistReadRegexp().

◆ well

page as well

Definition at line 2725 of file All_system_messages.txt.

Referenced by CheckLanguageCLI::help().

◆ will

◆ yourself

</td><td> &</td><td> t want your writing to be edited mercilessly and redistributed at then don& You are also promising us that you wrote this yourself

Definition at line 914 of file All_system_messages.txt.

is
We use the convention $dbr for read and $dbw for write to help you keep track of whether the database object is a the world will explode Or to be a subsequent write query which succeeded on the master may fail when replicated to the slave due to a unique key collision Replication on the slave will stop and it may take hours to repair the database and get it back online Setting read_only in my cnf on the slave will avoid this but given the dire we prefer to have as many checks as possible We provide a but the wrapper functions like please read the documentation for except in special pages derived from QueryPage It s a common pitfall for new developers to submit code containing SQL queries which examine huge numbers of rows Remember that COUNT * is(N), counting rows in atable is like counting beans in a bucket.------------------------------------------------------------------------ Replication------------------------------------------------------------------------The largest installation of MediaWiki, Wikimedia, uses a large set ofslave MySQL servers replicating writes made to a master MySQL server. Itis important to understand the issues associated with this setup if youwant to write code destined for Wikipedia.It 's often the case that the best algorithm to use for a given taskdepends on whether or not replication is in use. Due to our unabashedWikipedia-centrism, we often just use the replication-friendly version, but if you like, you can use wfGetLB() ->getServerCount() > 1 tocheck to see if replication is in use.===Lag===Lag primarily occurs when large write queries are sent to the master.Writes on the master are executed in parallel, but they are executed inserial when they are replicated to the slaves. The master writes thequery to the binlog when the transaction is committed. The slaves pollthe binlog and start executing the query as soon as it appears. They canservice reads while they are performing a write query, but will not readanything more from the binlog and thus will perform no more writes. Thismeans that if the write query runs for a long time, the slaves will lagbehind the master for the time it takes for the write query to complete.Lag can be exacerbated by high read load. MediaWiki 's load balancer willstop sending reads to a slave when it is lagged by more than 30 seconds.If the load ratios are set incorrectly, or if there is too much loadgenerally, this may lead to a slave permanently hovering around 30seconds lag.If all slaves are lagged by more than 30 seconds, MediaWiki will stopwriting to the database. All edits and other write operations will berefused, with an error returned to the user. This gives the slaves achance to catch up. Before we had this mechanism, the slaves wouldregularly lag by several minutes, making review of recent editsdifficult.In addition to this, MediaWiki attempts to ensure that the user seesevents occurring on the wiki in chronological order. A few seconds of lagcan be tolerated, as long as the user sees a consistent picture fromsubsequent requests. This is done by saving the master binlog positionin the session, and then at the start of each request, waiting for theslave to catch up to that position before doing any reads from it. Ifthis wait times out, reads are allowed anyway, but the request isconsidered to be in "lagged slave mode". Lagged slave mode can bechecked by calling wfGetLB() ->getLaggedSlaveMode(). The onlypractical consequence at present is a warning displayed in the pagefooter.===Lag avoidance===To avoid excessive lag, queries which write large numbers of rows shouldbe split up, generally to write one row at a time. Multi-row INSERT ...SELECT queries are the worst offenders should be avoided altogether.Instead do the select first and then the insert.===Working with lag===Despite our best efforts, it 's not practical to guarantee a low-lagenvironment. Lag will usually be less than one second, but mayoccasionally be up to 30 seconds. For scalability, it 's very importantto keep load on the master low, so simply sending all your queries tothe master is not the answer. So when you have a genuine need forup-to-date data, the following approach is advised:1) Do a quick query to the master for a sequence number or timestamp 2) Run the full query on the slave and check if it matches the data you gotfrom the master 3) If it doesn 't, run the full query on the masterTo avoid swamping the master every time the slaves lag, use of thisapproach should be kept to a minimum. In most cases you should just readfrom the slave and let the user deal with the delay.------------------------------------------------------------------------ Lock contention------------------------------------------------------------------------Due to the high write rate on Wikipedia(and some other wikis), MediaWiki developers need to be very careful to structure their writesto avoid long-lasting locks. By default, MediaWiki opens a transactionat the first query, and commits it before the output is sent. Locks willbe held from the time when the query is done until the commit. So youcan reduce lock time by doing as much processing as possible before youdo your write queries.Often this approach is not good enough, and it becomes necessary toenclose small groups of queries in their own transaction. Use thefollowing syntax:$dbw=wfGetDB(DB_MASTER
wiki
Prior to maintenance scripts were a hodgepodge of code that had no cohesion or formal method of action Beginning maintenance scripts have been cleaned up to use a unified class Directory structure How to run a script How to write your own DIRECTORY STRUCTURE The maintenance directory of a MediaWiki installation contains several all of which have unique purposes HOW TO RUN A SCRIPT Ridiculously just call php someScript php that s in the top level maintenance directory if not default wiki
Definition: maintenance.txt:1
use
as see the revision history and available at free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to use
Definition: MIT-LICENSE.txt:10
it
=Architecture==Two class hierarchies are used to provide the functionality associated with the different content models:*Content interface(and AbstractContent base class) define functionality that acts on the concrete content of a page, and *ContentHandler base class provides functionality specific to a content model, but not acting on concrete content. The most important function of ContentHandler is to act as a factory for the appropriate implementation of Content. These Content objects are to be used by MediaWiki everywhere, instead of passing page content around as text. All manipulation and analysis of page content must be done via the appropriate methods of the Content object. For each content model, a subclass of ContentHandler has to be registered with $wgContentHandlers. The ContentHandler object for a given content model can be obtained using ContentHandler::getForModelID($id). Also Title, WikiPage and Revision now have getContentHandler() methods for convenience. ContentHandler objects are singletons that provide functionality specific to the content type, but not directly acting on the content of some page. ContentHandler::makeEmptyContent() and ContentHandler::unserializeContent() can be used to create a Content object of the appropriate type. However, it is recommended to instead use WikiPage::getContent() resp. Revision::getContent() to get a page 's content as a Content object. These two methods should be the ONLY way in which page content is accessed. Another important function of ContentHandler objects is to define custom action handlers for a content model, see ContentHandler::getActionOverrides(). This is similar to what WikiPage::getActionOverrides() was already doing.==Serialization==With the ContentHandler facility, page content no longer has to be text based. Objects implementing the Content interface are used to represent and handle the content internally. For storage and data exchange, each content model supports at least one serialization format via ContentHandler::serializeContent($content). The list of supported formats for a given content model can be accessed using ContentHandler::getSupportedFormats(). Content serialization formats are identified using MIME type like strings. The following formats are built in:*text/x-wiki - wikitext *text/javascript - for js pages *text/css - for css pages *text/plain - for future use, e.g. with plain text messages. *text/html - for future use, e.g. with plain html messages. *application/vnd.php.serialized - for future use with the api and for extensions *application/json - for future use with the api, and for use by extensions *application/xml - for future use with the api, and for use by extensions In PHP, use the corresponding CONTENT_FORMAT_XXX constant. Note that when using the API to access page content, especially action=edit, action=parse and action=query &prop=revisions, the model and format of the content should always be handled explicitly. Without that information, interpretation of the provided content is not reliable. The same applies to XML dumps generated via maintenance/dumpBackup.php or Special:Export. Also note that the API will provide encapsulated, serialized content - so if the API was called with format=json, and contentformat is also json(or rather, application/json), the page content is represented as a string containing an escaped json structure. Extensions that use JSON to serialize some types of page content may provide specialized API modules that allow access to that content in a more natural form.==Compatibility==The ContentHandler facility is introduced in a way that should allow all existing code to keep functioning at least for pages that contain wikitext or other text based content. However, a number of functions and hooks have been deprecated in favor of new versions that are aware of the page 's content model, and will now generate warnings when used. Most importantly, the following functions have been deprecated:*Revisions::getText() is deprecated in favor Revisions::getContent() *WikiPage::getText() is deprecated in favor WikiPage::getContent() Also, the old Article::getContent()(which returns text) is superceded by Article::getContentObject(). However, both methods should be avoided since they do not provide clean access to the page 's actual content. For instance, they may return a system message for non-existing pages. Use WikiPage::getContent() instead. Code that relies on a textual representation of the page content should eventually be rewritten. However, ContentHandler::getContentText() provides a stop-gap that can be used to get text for a page. Its behavior is controlled by $wgContentHandlerTextFallback it
Definition: contenthandler.txt:104
page
target page
Definition: All_system_messages.txt:1267
quot
</td >< td > &</td >< td > & quot
Definition: All_system_messages.txt:330
http
Apache License January http
Definition: APACHE-LICENSE-2.0.txt:3
pages
The ContentHandler facility adds support for arbitrary content types on wiki pages
Definition: contenthandler.txt:1
Action
Actions are things which can be done to pages (edit, delete, rollback, etc).
Definition: Action.php:37
conversion
This document describes the state of Postgres support in and is fairly well maintained The main code is very well while extensions are very hit and miss it is probably the most supported database after MySQL Much of the work in making MediaWiki database agnostic came about through the work of creating Postgres as and are nearing end of but without copying over all the usage comments General notes on the conversion
Definition: postgres.txt:22
title
to move a page</td >< td > &*You are moving the page across *A non empty talk page already exists under the new or *You uncheck the box below In those you will have to move or merge the page manually if desired</td >< td > be sure to &You are responsible for making sure that links continue to point where they are supposed to go Note that the page will &a page at the new title
Definition: All_system_messages.txt:2696
a
</source > ! result< div class="mw-highlight mw-content-ltr" dir="ltr">< pre >< span ></span >< span class="kd"> var</span >< span class="nx"> a</span >< span class="p"></span ></pre ></div > ! end ! test Multiline< source/> in lists !input *< source > a b</source > *foo< source > a b</source > ! html< ul >< li >< div class="mw-highlight mw-content-ltr" dir="ltr">< pre > a b</pre ></div ></li ></ul >< ul >< li > foo< div class="mw-highlight mw-content-ltr" dir="ltr">< pre > a b</pre ></div ></li ></ul > ! html tidy< ul >< li >< div class="mw-highlight mw-content-ltr" dir="ltr">< pre > a b</pre ></div ></li ></ul >< ul >< li > foo< div class="mw-highlight mw-content-ltr" dir="ltr">< pre > a b</pre ></div ></li ></ul > ! end ! test Custom attributes !input< source lang="javascript" id="foo" class="bar" dir="rtl" style="font-size: larger;"> var a
Definition: parserTests.txt:89
in
null for the wiki Added in
Definition: hooks.txt:1581
complete
Returning false makes less sense for events where the action is complete
Definition: hooks.txt:197
not
if not
Definition: COPYING.txt:307
form
null means default in associative array form
Definition: hooks.txt:1965
database
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 database
Definition: design.txt:12
will
</td >< td > &</td >< td > t want your writing to be edited mercilessly and redistributed at will
Definition: All_system_messages.txt:914
or
or
Definition: COPYING.txt:140
below
See &</td >< td > &Fill in a specific reason below(for example, citing particular pages that were vandalized).</td >< td >
Definition: All_system_messages.txt:649
any
they could even be mouse clicks or menu items whatever suits your program You should also get your if any
Definition: COPYING.txt:326
some
I won t presume to tell you how to I m just describing the methods I chose to use for myself If you do choose to follow these it will probably be easier for you to collaborate with others on the but if you want to contribute without by all means do which work well I also use K &R brace matching style I know that s a religious issue for some
Definition: design.txt:79
following
Prior to maintenance scripts were a hodgepodge of code that had no cohesion or formal method of action Beginning maintenance scripts have been cleaned up to use a unified class Directory structure How to run a script How to write your own DIRECTORY STRUCTURE The maintenance directory of a MediaWiki installation contains several all of which have unique purposes HOW TO RUN A SCRIPT Ridiculously just call php someScript php that s in the top level maintenance directory if not default do this many per batch HOW TO WRITE YOUR OWN Make a file in the maintenance directory called myScript php or something In write the following
Definition: maintenance.txt:1
set
it s the revision text itself In either if gzip is set
Definition: hooks.txt:2801
text
This list may contain false positives That usually means there is additional text with links below the first Each row contains links to the first and second as well as the first line of the second redirect text
Definition: All_system_messages.txt:1267
and
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
up
static configuration should be added through ResourceLoaderGetConfigVars instead can be used to get the real title after the basic globals have been set up
Definition: hooks.txt:2198
history
presenting them properly to the user as errors is done by the caller return true use this to change the list i e etc next in line in page history
Definition: hooks.txt:1750
of
globals txt Globals are evil The original MediaWiki code relied on globals for processing context far too often MediaWiki development since then has been a story of slowly moving context out of global variables and into objects Storing processing context in object member variables allows those objects to be reused in a much more flexible way Consider the elegance of
Definition: globals.txt:10
that
deferred txt A few of the database updates required by various functions here can be deferred until after the result page is displayed to the user For updating the view updating the linked to tables after a etc PHP does not yet have any way to tell the server to actually return and disconnect while still running these but it might have such a feature in the future We handle these by creating a deferred update object and putting those objects on a global then executing the whole list after the page is displayed We don t do anything smart like collating updates to the same table or such because the list is almost always going to have just one item on if that
Definition: deferred.txt:11
Password
Represents a password hash for use in authentication.
Definition: Password.php:66
name
Your real name
Definition: All_system_messages.txt:1355
redirect
This list may contain false positives That usually means there is additional text with links below the first Each row contains links to the first and second redirect
Definition: All_system_messages.txt:1267
editing
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by editing
Definition: skin.txt:10
data
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 data
Definition: hooks.txt:6