51 if (
isset( $options[
'lang'] ) ) {
67 $this->linksPrefix =
$options[
'prefix'];
71 $this->wikiCode =
$options[
'wikilang'];
75 $this->checks = explode(
',',
$options[
'whitelist'] );
79 explode(
',',
$options[
'blacklist'] )
87 if (
isset( $options[
'output'] ) ) {
91 $this->L =
new Languages( $this->includeExif );
100 'untranslated',
'duplicate',
'obsolete',
'variables',
'empty',
'plural',
101 'whitespace',
'xhtml',
'chars',
'links',
'unbalanced',
'namespace',
102 'projecttalk',
'magic',
'magic-old',
'magic-over',
'magic-case',
103 'special',
'special-old',
113 'namespace',
'projecttalk',
'magic',
'magic-old',
'magic-over',
114 'magic-case',
'special',
'special-old',
124 'duplicate',
'obsolete',
'empty',
'whitespace',
'xhtml',
'chars',
'magic-old',
125 'magic-over',
'magic-case',
'special-old',
135 'untranslated' =>
'getUntranslatedMessages',
136 'duplicate' =>
'getDuplicateMessages',
137 'obsolete' =>
'getObsoleteMessages',
138 'variables' =>
'getMessagesWithMismatchVariables',
139 'plural' =>
'getMessagesWithoutPlural',
140 'empty' =>
'getEmptyMessages',
141 'whitespace' =>
'getMessagesWithWhitespace',
142 'xhtml' =>
'getNonXHTMLMessages',
143 'chars' =>
'getMessagesWithWrongChars',
144 'links' =>
'getMessagesWithDubiousLinks',
145 'unbalanced' =>
'getMessagesWithUnbalanced',
146 'namespace' =>
'getUntranslatedNamespaces',
147 'projecttalk' =>
'getProblematicProjectTalks',
148 'magic' =>
'getUntranslatedMagicWords',
149 'magic-old' =>
'getObsoleteMagicWords',
150 'magic-over' =>
'getOverridingMagicWords',
151 'magic-case' =>
'getCaseMismatchMagicWords',
152 'special' =>
'getUntraslatedSpecialPages',
153 'special-old' =>
'getObsoleteSpecialPages',
165 'namespace' => [
'getNamespaceNames',
'en' ],
166 'projecttalk' =>
null,
167 'magic' => [
'getMagicWords',
'en' ],
168 'magic-old' => [
'getMagicWords',
null ],
169 'magic-over' => [
'getMagicWords',
null ],
170 'magic-case' => [
'getMagicWords',
null ],
171 'special' => [
'getSpecialPageAliases',
'en' ],
172 'special-old' => [
'getSpecialPageAliases',
null ],
182 'untranslated' =>
'$1 message(s) of $2 are not translated to $3, but exist in en:',
183 'duplicate' =>
'$1 message(s) of $2 are translated the same in en and $3:',
185 '$1 message(s) of $2 do not exist in en or are in the ignore list, but exist in $3:',
186 'variables' =>
'$1 message(s) of $2 in $3 don\'t match the variables used in en:',
187 'plural' =>
'$1 message(s) of $2 in $3 don\'t use {{plural}} while en uses:',
188 'empty' =>
'$1 message(s) of $2 in $3 are empty or -:',
189 'whitespace' =>
'$1 message(s) of $2 in $3 have trailing whitespace:',
190 'xhtml' =>
'$1 message(s) of $2 in $3 contain illegal XHTML:',
192 '$1 message(s) of $2 in $3 include hidden chars which should not be used in the messages:',
193 'links' =>
'$1 message(s) of $2 in $3 have problematic link(s):',
194 'unbalanced' =>
'$1 message(s) of $2 in $3 have unbalanced {[]}:',
195 'namespace' =>
'$1 namespace name(s) of $2 are not translated to $3, but exist in en:',
197 '$1 namespace name(s) and alias(es) in $3 are project talk namespaces without the parameter:',
198 'magic' =>
'$1 magic word(s) of $2 are not translated to $3, but exist in en:',
199 'magic-old' =>
'$1 magic word(s) of $2 do not exist in en, but exist in $3:',
200 'magic-over' =>
'$1 magic word(s) of $2 in $3 do not contain the original en word(s):',
202 '$1 magic word(s) of $2 in $3 change the case-sensitivity of the original en word:',
203 'special' =>
'$1 special page alias(es) of $2 are not translated to $3, but exist in en:',
204 'special-old' =>
'$1 special page alias(es) of $2 do not exist in en, but exist in $3:',
219 --all: Check all customized languages.
220 --level: Show the following
display level (
default: 2):
221 * 0: Skip the
checks (useful
for checking syntax).
222 * 1: Show only the stub headers and number of wrong
messages, without
224 * 2: Show only the headers and the message keys, without the message
229 --prefix: prefix to add to
links.
233 translate),
if you know what they are currently not translated and want
234 to focus on other problems (
default off).
237 --easy: Do only the easy
checks, which can be treated by non-speakers of
240Check
codes (ideally, all of them should result 0; all the checks are executed
242 *
untranslated: Messages which are required to translate, but are not
244 *
duplicate: Messages which translation equal to fallback.
245 *
obsolete: Messages which are untranslatable or
do not exist, but are
250 *
whitespace: Messages which have trailing whitespace.
251 *
xhtml: Messages which are not well-formed
XHTML (checks only few common
253 *
chars: Messages with hidden characters.
257 *
namespace: Namespace names that
were not translated.
258 *
projecttalk: Namespace names and aliases where the project talk does not
260 *
magic: Magic words that
were not translated.
261 * magic-old: Magic words which
do not exist.
262 * magic-
over: Magic words that
override the original English word.
263 * magic-
case: Magic words whose translation changes the
case-sensitivity of
264 the original English word.
265 * special: Special page names that
were not translated.
266 * special-old: Special page names which
do not exist.
276 if ( $this->level > 0 ) {
277 switch ( $this->output ) {
285 throw new MWException(
"Invalid output type $this->output" );
294 $ignoredCodes = [
'en',
'enRTL' ];
298 if ( $this->checkAll ) {
299 foreach ( $this->L->getLanguages() as $language ) {
300 if ( !
in_array( $language, $ignoredCodes ) ) {
301 $this->results[$language] = $this->
checkLanguage( $language );
305 if (
in_array( $this->code, $ignoredCodes ) ) {
306 throw new MWException(
"Cannot check code $this->code." );
315 foreach (
$messages as $key => $details ) {
329 static $blacklist =
null;
331 if ( $blacklist !==
null ) {
340 Hooks::run(
'LocalisationChecksBlacklist', [ &$blacklist ] );
356 foreach ( $blacklist as $item ) {
357 if (
isset( $item[
'check'] ) && $check !== $item[
'check'] ) {
365 if (
isset( $item[
'message'] ) &&
366 ( $message ===
false || !
in_array( $message, $item[
'message'] ) )
386 if ( $this->level === 0 ) {
387 $this->L->getMessages(
$code );
393 foreach ( $this->checks as $check ) {
416 if ( $this->doLinks ) {
417 $displayKey = ucfirst( $key );
418 if (
$code == $this->wikiCode ) {
419 return "[[{$this->linksPrefix}MediaWiki:$displayKey|$key]]";
421 return "[[{$this->linksPrefix}MediaWiki:$displayKey/$code|$key]]";
433 $translated = $this->L->getMessages(
$code );
434 $translated = count( $translated[
'translated'] );
438 if ( $check ==
'untranslated' ) {
439 $translatable = $this->L->getGeneralMessages();
440 $total = count( $translatable[
'translatable'] );
443 $totalCount = $totalCount[
$check];
444 $callback = [
$this->L, $totalCount[0] ];
445 $callCode = $totalCount[1] ? $totalCount[1] :
$code;
450 $search = [
'$1',
'$2',
'$3' ];
451 $replace = [ $count, $total,
$code ];
453 echo
"\n" .
str_replace( $search, $replace, $descriptions[$check] ) .
"\n";
454 if ( $this->level == 1 ) {
455 echo
"[messages are hidden]\n";
461 if ( $this->level == 2 || empty(
$value ) ) {
464 echo
"* $key: '$value'\n";
478 $rows[] =
'! Language !! Code !! Total !! ' .
481 $detailTextForLang =
"==$code==\n";
484 $detailTextForLangChecks = [];
492 $messageDetails = [];
493 foreach (
$messages as $key => $details ) {
497 $detailTextForLangChecks[] =
"=== $code-$check ===\n* " . implode(
', ', $messageDetails );
498 $numbers[] =
"'''[[#$code-$check|$count]]'''";
504 if ( count( $detailTextForLangChecks ) ) {
505 $detailText .= $detailTextForLang . implode(
"\n", $detailTextForLangChecks ) .
"\n";
509 # Don't list languages without problems
512 $language = Language::fetchLanguageName(
$code );
513 $rows[] =
"| $language || $code || $problems || " . implode(
' || ', $numbers );
516 $tableRows = implode(
"\n|-\n",
$rows );
521'''Check results are
for:
''' <code>$version</code>
524{|
class=
"sortable wikitable" border=
"2" cellpadding=
"4" cellspacing=
"0" style=
"background-color: #F9F9F9; border: 1px #AAAAAA solid; border-collapse: collapse; clear: both;"
539 foreach ( $this->results as
$results ) {
567 if (
isset( $options[
'lang'] ) ) {
581 $this->wikiCode =
$options[
'wikilang'];
585 $this->checks = explode(
',',
$options[
'whitelist'] );
589 explode(
',',
$options[
'blacklist'] )
597 if (
isset( $options[
'output'] ) ) {
601 # Some additional checks not enabled by default
603 $this->checks[] =
'duplicate';
606 $this->extensions = [];
609 if ( $extension ==
'all' ) {
610 foreach ( MessageGroups::singleton()->getGroups() as $group ) {
611 if (
strpos( $group->getId(),
'ext-' ) === 0 && !$group->isMeta() ) {
615 }
elseif ( $extension ==
'wikimedia' ) {
616 $wikimedia = MessageGroups::getGroup(
'ext-0-wikimedia' );
617 foreach ( $wikimedia->wmfextensions() as $extension ) {
618 $group = MessageGroups::getGroup( $extension );
621 }
elseif ( $extension ==
'flaggedrevs' ) {
622 foreach ( MessageGroups::singleton()->getGroups() as $group ) {
623 if (
strpos( $group->getId(),
'ext-flaggedrevs-' ) === 0 && !$group->isMeta() ) {
630 $group = MessageGroups::getGroup(
'ext-' . $extension );
633 $this->extensions[] = $extension;
635 print "No such extension $extension.\n";
647 'untranslated',
'duplicate',
'obsolete',
'variables',
'empty',
'plural',
648 'whitespace',
'xhtml',
'chars',
'links',
'unbalanced',
666 'duplicate',
'obsolete',
'empty',
'whitespace',
'xhtml',
'chars',
677all of them. Command line
settings are in
form --parameter[=value], except
for
681 (separated by commas),
"all" for all the
extensions,
"wikimedia" for
682 extensions used by
Wikimedia or
"flaggedrevs" for all FLaggedRevs
686 * level: Show the following
display level (
default: 2).
692 * easy: Do only the easy
checks, which can be treated by non-speakers of
695Check
codes (ideally, all of them should result 0; all the checks are executed
697 *
untranslated: Messages which are required to translate, but are not
699 *
duplicate: Messages which translation equal to fallback.
704 *
whitespace: Messages which have trailing whitespace.
705 *
xhtml: Messages which are not well-formed
XHTML (checks only few common
707 *
chars: Messages with hidden characters.
712Display
levels (
default: 2):
713 * 0: Skip the
checks (useful
for checking syntax).
714 * 1: Show only the stub headers and number of wrong
messages, without
list
716 * 2: Show only the headers and the message keys, without the message
737 foreach ( $this->extensions as $extension ) {
738 $this->L = $extension;
740 $this->results[
$code] = parent::checkLanguage(
$code );
743 echo $extension->name() .
":\n";
745 if ( $this->level > 0 ) {
746 switch ( $this->output ) {
754 throw new MWException(
"Invalid output type $this->output" );
769 'code' => [
'az',
'bo',
'cdo',
'dz',
'id',
'fa',
'gan',
'gan-hans',
770 'gan-hant',
'gn',
'hak',
'hu',
'ja',
'jv',
'ka',
'kk-arab',
771 'kk-cyrl',
'kk-latn',
'km',
'kn',
'ko',
'lzh',
'mn',
'ms',
772 'my',
'sah',
'sq',
'tet',
'th',
'to',
'tr',
'vi',
'wuu',
'xmf',
773 'yo',
'yue',
'zh',
'zh-classical',
'zh-cn',
'zh-hans',
774 'zh-hant',
'zh-hk',
'zh-sg',
'zh-tw',
'zh-yue'
Apache License January AND DISTRIBUTION Definitions License shall mean the terms and conditions for and distribution as defined by Sections through of this document Licensor shall mean the copyright owner or entity authorized by the copyright owner that is granting the License Legal Entity shall mean the union of the acting entity and all other entities that control are controlled by or are under common control with that entity For the purposes of this definition control direct or to cause the direction or management of such whether by contract or including but not limited to software source documentation and configuration files Object form shall mean any form resulting from mechanical transformation or translation of a Source including but not limited to compiled object generated and conversions to other media types Work shall mean the work of whether in Source or Object made available under the as indicated by a copyright notice that is included in or attached to the whether in Source or Object that is based or other modifications as a an original work of authorship For the purposes of this Derivative Works shall not include works that remain separable or merely the Work and Derivative Works thereof Contribution shall mean any work of including the original version of the Work and any modifications or additions to that Work or Derivative Works that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner For the purposes of this submitted means any form of or written communication sent to the Licensor or its including but not limited to communication on electronic mailing source code control and issue tracking systems that are managed or on behalf the Licensor for the purpose of discussing and improving the but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as Not a Contribution Contributor shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work Grant of Copyright License Subject to the terms and conditions of this each Contributor hereby grants to You a non no royalty irrevocable copyright license to prepare Derivative Works publicly display
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
c Accompany it with the information you received as to the offer to distribute corresponding source complete source code means all the source code for all modules it contains
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 distribute and or modify the software for each author s protection and we want to make certain that everyone understands that there is no warranty for this free software If the software is modified by someone else and passed we want its recipients to know that what they have is not the so that any problems introduced by others will not reflect on the original authors reputations any free program is threatened constantly by software patents We wish to avoid the danger that redistributors of a free program will individually obtain patent in effect making the program proprietary To prevent we have made it clear that any patent must be licensed for everyone s free use or not licensed at all The precise terms and conditions for distribution and modification follow GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR DISTRIBUTION AND MODIFICATION This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License The refers to any such program or and a work based on the Program means either the Program or any derivative work under copyright a work containing the Program or a portion of either verbatim or with modifications and or translated into another language(Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying
$wgLanguageCode
Site language code.
defaultChecks()
Get the default checks.
checkLanguage( $code)
Check a language and show the results.
execute()
Execute the script.
__construct(array $options, $extension)
nonMessageChecks()
Get the checks which check other things than messages.
easyChecks()
Get the checks that can easily be treated by non-speakers of the language.
doChecks()
Execute the checks.
isCheckBlacklisted( $check, $code, $message)
Verify whether a check is blacklisted.
defaultChecks()
Get the default checks.
getDescriptions()
Get all check descriptions.
nonMessageChecks()
Get the checks which check other things than messages.
checkLanguage( $code)
Check a language.
execute()
Execute the script.
getTotalCount()
Get total count for each check non-messages check.
formatKey( $key, $code)
Format a message key.
outputText()
Output the checks results as plain text.
getCheckBlacklist()
Get the check blacklist.
easyChecks()
Get the checks that can easily be treated by non-speakers of the language.
getChecks()
Get all checks.
__construct(array $options)
isEmpty()
Check if there are any results for the checks, in any language.
outputWiki()
Output the checks results as wiki text.
Class to extract and validate Exif data from jpeg (and possibly tiff) files.
Internationalisation code.
static getVersion( $flags='', $lang=null)
Return a string of the MediaWiki version with Git revision if available.
The ContentHandler facility adds support for arbitrary content types on wiki pages
The ContentHandler facility adds support for arbitrary content types on wiki instead of relying on wikitext for everything It was introduced in MediaWiki Each kind of and so on Built in content types as usual *javascript user provided javascript code *json simple implementation for use by extensions
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 list
do that in ParserLimitReportFormat instead use this to modify the parameters of the image all existing parser cache entries will be invalid To avoid you ll need to handle that somehow(e.g. with the RejectParserCacheValue hook) because MediaWiki won 't do it for you. & $defaults also a ContextSource after deleting those rows but within the same transaction $rows
This code would result in ircNotify being run twice when an article is and once for brion Hooks can return three possible values
> 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
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped & $options
null means default in associative array form
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that When $user is not null
null for the local wiki Added in
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped broken
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 code
you don t have to do a grep find to see where the $wgReverseTitle variable is used
in this case you re responsible for computing and outputting the entire conflict i the difference between revisions and your text headers and sections and Diff initially an empty< div id="toolbar"></div > Hook subscribers can return false to have no toolbar HTML be loaded overridable Default is either copyrightwarning or copyrightwarning2 overridable Default is editpage tos summary such as anonymity and the real check
Returning false makes less sense for events where the action is complete
Using a hook running we can avoid having all this option specific stuff in our mainline code Using the function We ve cleaned up the code here by removing clumps of infrequently used code and moving them off somewhere else It s much easier for someone working with this code to see what s _really_ going and make changes or fix bugs In we can take all the code that deals with the little used title reversing we can concentrate it all in an extension file
passed in as a query string parameter to the various URLs constructed here(i.e. $prevlink) $ldel you ll need to handle error messages
while(( $__line=Maintenance::readconsole()) !==false) print
script(document.cookie)%253c/script%253e</pre ></div > !! end !! test XSS is escaped(inline) !!input< source lang
globals will be eliminated from MediaWiki replaced by an application object which would be passed to constructors Whether that would be an convenient solution remains to be but certainly PHP makes such object oriented programming models easier than they were in previous versions For the time being MediaWiki programmers will have to work in an environment with some global context At the time of globals were initialised on startup by MediaWiki of these were configuration settings
controlled by the following variables
The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a make its entry a array("192.168.0.1:11211", 2))
This document describes the XML format used to represent information about external sites known to a MediaWiki installation This information about external sites is used to allow inter wiki links
in the order they appear.
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 were