Go to the documentation of this file.
52 $mTOCEnabled =
true; # Whether TOC should be shown, can
't override __NOTOC__
53 private $mIndexPolicy = ''; # 'index
' or 'noindex
'? Any other value will result in no change.
54 private $mAccessedOptions = array(); # List of ParserOptions (stored in the keys)
55 private $mSecondaryDataUpdates = array(); # List of DataUpdate, used to save info from the page somewhere else.
56 private $mExtensionData = array(); # extra data used by extensions
57 private $mLimitReportData = array(); # Parser limit report data
58 private $mParseStartTime = array(); # Timestamps for getTimeSinceStart()
59 private $mPreventClickjacking = false; # Whether to emit X-Frame-Options: DENY
61 const EDITSECTION_REGEX = '#<(?:mw:)?editsection
page=
"(.*?)" section=
"(.*?)"(?:/>|>(.*?)(</(?:mw:)?editsection>))#
';
63 function __construct( $text = '', $languageLinks = array(), $categoryLinks = array(),
64 $containsOldMagic = false, $titletext = ''
67 $this->mLanguageLinks = $languageLinks;
68 $this->mCategories = $categoryLinks;
69 $this->mContainsOldMagic = $containsOldMagic;
70 $this->mTitleText = $titletext;
74 wfProfileIn( __METHOD__ );
76 if ( $this->mEditSectionTokens ) {
77 $text = preg_replace_callback( ParserOutput::EDITSECTION_REGEX,
80 $text = preg_replace( ParserOutput::EDITSECTION_REGEX, '', $text );
83 // If you have an old cached version of this class - sorry, you can't disable the TOC
85 $text = str_replace(
array( Parser::TOC_START, Parser::TOC_END ),
'', $text );
88 '#' . preg_quote( Parser::TOC_START ) .
'.*?' . preg_quote( Parser::TOC_END ) .
'#s',
107 htmlspecialchars_decode( $m[1] ),
108 htmlspecialchars_decode( $m[2] ),
109 isset( $m[4] ) ? $m[3] :
null,
112 if ( !is_object(
$args[0] ) ) {
113 throw new MWException(
"Bad parser output text." );
117 return call_user_func_array(
array(
$skin,
'doEditSectionLink' ),
$args );
166 $this->mOutputHooks[] =
array( $hook, $data );
170 $this->mNewSection = (bool)
$value;
173 $this->mHideNewSection = (bool)
$value;
176 return (
bool)$this->mHideNewSection;
179 return (
bool)$this->mNewSection;
190 return (
bool)preg_match(
'/^' .
192 ( substr( $internal, 0, 2 ) ===
'//' ?
'(?:https?:)?' :
'' ) .
193 preg_quote( $internal,
'/' ) .
201 # We don't register links pointing to our own server, unless... :-)
202 global $wgServer, $wgRegisterInternalExternals;
204 $registerExternalLink =
true;
205 if ( !$wgRegisterInternalExternals ) {
206 $registerExternalLink = !self::isLinkInternal( $wgServer, $url );
208 if ( $registerExternalLink ) {
209 $this->mExternalLinks[$url] = 1;
220 if (
$title->isExternal() ) {
222 $this->addInterwikiLink(
$title );
225 $ns =
$title->getNamespace();
226 $dbk =
$title->getDBkey();
234 } elseif ( $dbk ===
'' ) {
238 if ( !isset( $this->mLinks[$ns] ) ) {
239 $this->mLinks[$ns] =
array();
241 if ( is_null( $id ) ) {
242 $id =
$title->getArticleID();
244 $this->mLinks[$ns][$dbk] = $id;
255 $this->mImages[
$name] = 1;
256 if (
$timestamp !==
null && $sha1 !==
null ) {
269 $ns =
$title->getNamespace();
270 $dbk =
$title->getDBkey();
271 if ( !isset( $this->mTemplates[$ns] ) ) {
272 $this->mTemplates[$ns] =
array();
274 $this->mTemplates[$ns][$dbk] = $page_id;
275 if ( !isset( $this->mTemplateIds[$ns] ) ) {
276 $this->mTemplateIds[$ns] =
array();
278 $this->mTemplateIds[$ns][$dbk] = $rev_id;
286 if ( !
$title->isExternal() ) {
287 throw new MWException(
'Non-interwiki link passed, internal parser error.' );
289 $prefix =
$title->getInterwiki();
290 if ( !isset( $this->mInterwikiLinks[$prefix] ) ) {
291 $this->mInterwikiLinks[$prefix] =
array();
293 $this->mInterwikiLinks[$prefix][
$title->getDBkey()] = 1;
302 if ( $tag !==
false ) {
310 $this->mModules = array_merge( $this->mModules, (
array)$modules );
314 $this->mModuleScripts = array_merge( $this->mModuleScripts, (
array)$modules );
318 $this->mModuleStyles = array_merge( $this->mModuleStyles, (
array)$modules );
322 $this->mModuleMessages = array_merge( $this->mModuleMessages, (
array)$modules );
333 if ( is_array(
$keys ) ) {
335 $this->mJsConfigVars[$key] =
$value;
349 $this->addModules(
$out->getModules() );
350 $this->addModuleScripts(
$out->getModuleScripts() );
351 $this->addModuleStyles(
$out->getModuleStyles() );
352 $this->addModuleMessages(
$out->getModuleMessages() );
353 $this->addJsConfigVars(
$out->getJsConfigVars() );
355 $this->mHeadItems = array_merge( $this->mHeadItems,
$out->getHeadItemsArray() );
356 $this->mPreventClickjacking = $this->mPreventClickjacking ||
$out->getPreventClickjacking();
367 $this->setTitleText( $text );
368 $this->setProperty(
'displaytitle', $text );
377 $t = $this->getTitleText();
388 $this->mFlags[$flag] =
true;
392 return isset( $this->mFlags[$flag] );
457 return isset( $this->mProperties[
$name] ) ? $this->mProperties[
$name] :
false;
461 if ( !isset( $this->mProperties ) ) {
462 $this->mProperties =
array();
464 return $this->mProperties;
473 if ( !isset( $this->mAccessedOptions ) ) {
476 return array_keys( $this->mAccessedOptions );
489 $this->mAccessedOptions[$option] =
true;
503 $this->mSecondaryDataUpdates[] = $update;
523 if ( is_null(
$title ) ) {
575 unset( $this->mExtensionData[$key] );
577 $this->mExtensionData[$key] =
$value;
593 if ( isset( $this->mExtensionData[$key] ) ) {
594 return $this->mExtensionData[$key];
600 private static function getTimes( $clock =
null ) {
602 if ( !$clock || $clock ===
'wall' ) {
603 $ret[
'wall'] = microtime(
true );
605 if ( ( !$clock || $clock ===
'cpu' ) && function_exists(
'getrusage' ) ) {
607 $ret[
'cpu'] = $ru[
'ru_utime.tv_sec'] + $ru[
'ru_utime.tv_usec'] / 1e6;
608 $ret[
'cpu'] += $ru[
'ru_stime.tv_sec'] + $ru[
'ru_stime.tv_usec'] / 1e6;
618 $this->mParseStartTime = self::getTimes();
633 if ( !isset( $this->mParseStartTime[$clock] ) ) {
637 $end = self::getTimes( $clock );
638 return $end[$clock] - $this->mParseStartTime[$clock];
661 $this->mLimitReportData[$key] =
$value;
672 return wfSetVar( $this->mPreventClickjacking, $flag );
680 array_keys( get_object_vars( $this ) ),
681 array(
'mSecondaryDataUpdates',
'mParseStartTime' )
addOutputPageMetadata(OutputPage $out)
Copy items from the OutputPage object into this one.
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 overridable Default is either copyrightwarning or copyrightwarning2 overridable Default is editpage tos summary such as anonymity and the real check
occurs before session is loaded can be modified ID
static newFromText( $text, $defaultNamespace=NS_MAIN)
Create a new Title from text, such as what one would find in a link.
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
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been 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 etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Parser cache specific expiry check.
addModuleScripts( $modules)
resetParseStartTime()
Resets the parse start timestamps for future calls to getTimeSinceStart()
getSecondaryDataUpdates(Title $title=null, $recursive=true)
Returns any DataUpdate jobs to be executed in order to store secondary information extracted from the...
setDisplayTitle( $text)
Override the title to be used for display – this is assumed to have been validated (check equal norma...
setTimestamp( $timestamp)
getUsedOptions()
Returns the options from its ParserOptions which have been taken into account to produce this output ...
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
setLimitReportData( $key, $value)
Sets parser limit report data for a key.
wfSetVar(&$dest, $source, $force=false)
Sets dest to source and returns the original value of dest If source is NULL, it just returns the val...
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
__sleep()
Save space for for serialization by removing useless values.
Some information about database access in MediaWiki By Tim January Database layout For information about the MediaWiki database such as a description of the tables and their contents
addTemplate( $title, $page_id, $rev_id)
Register a template dependency for this output.
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 noclasses & $ret
setFlag( $flag)
Fairly generic flag setter thingy.
addLink(Title $title, $id=null)
Record a local or interwiki inline link for saving in future link tables.
namespace and then decline to actually register it RecentChangesLinked and Watchlist RecentChangesLinked and Watchlist e g Watchlist but no entry for that model exists in $wgContentHandlers if desired whether it is OK to use $contentModel on $title Handler functions that modify $ok should generally return false to prevent further hooks from further modifying $ok in case the handler function wants to provide a converted Content object Note that $result getContentModel() must return $toModel. Handler functions that modify $result should generally return false to further attempts at conversion. 'ContribsPager you ll need to handle error messages
Abstract base class for update jobs that do something with some secondary data extracted from article...
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 and does all the work of translating among various forms such as plain database key
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
addModuleMessages( $modules)
static isLinkInternal( $internal, $url)
Checks, if a url is pointing to the own server.
getTimeSinceStart( $clock)
Returns the time since resetParseStartTime() was last called.
wfProfileOut( $functionname='missing')
Stop profiling of a function.
addImage( $name, $timestamp=null, $sha1=null)
Register a file dependency for this output.
static getTimes( $clock=null)
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
addModuleStyles( $modules)
when a variable name is used in a it is silently declared as a new masking the global
getDisplayTitle()
Get the title to be used for display.
setEditSectionTokens( $t)
This class should be covered by a general architecture document which does not exist as of January 20...
</td >< td > &</td >< td > t want your writing to be edited mercilessly and redistributed at will
recordOption( $option)
Tags a parser option for use in the cache key for this parser output.
addOutputHook( $hook, $data=false)
setProperty( $name, $value)
Set a property to be stored in the page_props database table.
presenting them properly to the user as errors is done by the caller $title
setExtensionData( $key, $value)
Attaches arbitrary data to this ParserObject.
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such and we might be restricted by PHP settings such as safe mode or open_basedir We cannot assume that the software even has read access anywhere useful Many shared hosts run all users web applications under the same user
Allows to change the fields on the form that will be generated $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 noclasses just before the function returns a value If you return an< a > element with HTML attributes $attribs and contents $html will be returned If you return $ret will be returned and may include noclasses after processing after in associative array form externallinks $linksUpdate
controlled by $wgMainCacheType controlled by $wgParserCacheType controlled by $wgMessageCacheType If you set CACHE_NONE to one of the three control variable
addSecondaryDataUpdate(DataUpdate $update)
Adds an update job to the output.
pre inside other HTML tags(bug 54946) !! wikitext a< div >< pre > foo</pre ></div >< pre ></pre > !! html< p >a</p >< div >< pre > foo</pre ></div >< pre ></pre > !! end !! test HTML pre followed by indent-pre !! wikitext< pre >foo</pre > bar !! html< pre >foo</pre >< pre >bar</pre > !! end !!test Block tag pre !!options parsoid !! wikitext< p >< pre >foo</pre ></p > !! html< p data-parsoid
published in in Madrid In the first edition of the Vocabolario for was published In in Rotterdam was the Dictionnaire Universel ! html< p > The first monolingual dictionary written in a Romance language was< i > Sebastián Covarrubias</i >< i > Tesoro de la lengua castellana o published in in Madrid In the first edition of the< i > Vocabolario dell< a href="/index.php?title=Accademia_della_Crusca&action=edit&redlink=1" class="new" title="Accademia della Crusca (page does not exist)"> Accademia della Crusca</a ></i > for was published In in Rotterdam was the< i > Dictionnaire Universel</i ></p > ! end ! test Italics and ! wikitext foo ! html< p >< i > foo</i ></p > !end ! test Italics and ! wikitext foo ! html< p >< i > foo</i ></p > !end ! test Italics and ! wikitext foo ! html< p >< i > foo</i ></p > !end ! test Italics and ! wikitext foo ! html php< p >< i > foo</i ></p > ! html parsoid< p >< i > foo</i >< b ></b ></p > !end ! test Italics and ! wikitext foo ! html< p >< i > foo</i ></p > !end ! test Italics and ! wikitext foo ! html< p >< b > foo</b ></p > !end ! test Italics and ! wikitext foo ! html< p >< b > foo</b ></p > !end ! test Italics and ! wikitext foo ! html php< p >< b > foo</b ></p > ! html parsoid< p >< b > foo</b >< i ></i ></p > !end ! test Italics and ! wikitext foo ! html< p >< i > foo</i ></p > !end ! test Italics and ! wikitext foo ! html< p >< b > foo</b ></p > !end ! test Italics and ! wikitext foo ! html< p >< b > foo</b ></p > !end ! test Italics and ! wikitext foo ! html php< p >< b > foo</b ></p > ! html parsoid< p >< b > foo</b >< i ></i ></p > !end ! test Italics and ! options ! wikitext foo ! html< p >< b >< i > foo</i ></b ></p > !end ! test Italics and ! wikitext foo ! html< p >< i >< b > foo</b ></i ></p > !end ! test Italics and ! wikitext foo ! html< p >< i >< b > foo</b ></i ></p > !end ! test Italics and ! wikitext foo ! html< p >< i >< b > foo</b ></i ></p > !end ! test Italics and ! wikitext foo bar ! html< p >< i > foo< b > bar</b ></i ></p > !end ! test Italics and ! wikitext foo bar ! html< p >< i > foo< b > bar</b ></i ></p > !end ! test Italics and ! wikitext foo bar ! html< p >< i > foo< b > bar</b ></i ></p > !end ! test Italics and ! wikitext foo bar ! html php< p >< b > foo</b > bar</p > ! html parsoid< p >< b > foo</b > bar< i ></i ></p > !end ! test Italics and ! wikitext foo bar ! html php< p >< b > foo</b > bar</p > ! html parsoid< p >< b > foo</b > bar< b ></b ></p > !end ! test Italics and ! wikitext this is about foo s family ! html< p >< i > this is about< b > foo s family</b ></i ></p > !end ! test Italics and ! wikitext this is about foo s family ! html< p >< i > this is about< b > foo s</b > family</i ></p > !end ! test Italics and ! wikitext this is about foo s family ! html< p >< b > this is about< i > foo</i ></b >< i > s family</i ></p > !end ! test Italics and ! options ! wikitext this is about foo s family ! html< p >< i > this is about</i > foo< b > s family</b ></p > !end ! test Italics and ! wikitext this is about foo s family ! html< p >< b > this is about< i > foo s</i > family</b ></p > !end ! test Italicized possessive ! wikitext The s talk page ! html< p > The< i >< a href="/wiki/Main_Page" title="Main Page"> Main Page</a ></i > s talk page</p > ! end ! test Parsoid only
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 noclasses just before the function returns a value If you return an< a > element with HTML attributes $attribs and contents $html will be returned If you return $ret will be returned $skin
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
Represents a title within MediaWiki.
this class mediates it Skin Encapsulates a look and feel for the wiki All of the functions that render HTML and make choices about how to render it are here and are called from various other places when and is meant to be subclassed with other skins that may override some of its functions The User object contains a reference to a and so rather than having a global skin object we just rely on the global User and get the skin with $wgUser and also has some character encoding functions and other locale stuff The current user interface language is instantiated as $wgLang
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 output() to send it all. It could be easily changed to send incrementally if that becomes useful
Prior to maintenance scripts were a hodgepodge of code that had no cohesion or formal method of action Beginning in
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 on
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 https
you don t have to do a grep find to see where the $wgReverseTitle variable is used
addJsConfigVars( $keys, $value=null)
Add one or more variables to be set in mw.config in JavaScript.
replaceEditSectionLinksCallback( $m)
callback used by getText to replace editsection tokens
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such as
return false to override stock group addition can be modified try getUserPermissionsErrors userCan checks are continued by internal code can override on output return false to not delete it return false to override the default password checks this Boolean value will be checked to determine if the password was valid return false to implement your own hashing method this String will be used as the hash which may be added to this hook is run right before returning the options to the caller Warning
getExtensionData( $key)
Gets extensions data previously attached to this ParserOutput using setExtensionData().
addInterwikiLink( $title)
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 order
addHeadItem( $section, $tag=false)
Add some text to the "<head>".
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such and we might be restricted by PHP settings such as safe mode or open_basedir We cannot assume that the software even has read access anywhere useful Many shared hosts run all users web applications under the same so they can t rely on Unix and must forbid reads to even standard directories like tmp lest users read each others files We cannot assume that the user has the ability to install or run any programs not written as web accessible PHP scripts Since anything that works on cheap shared hosting will work if you have shell or root access MediaWiki s design is based around catering to the lowest common denominator Although we support higher end setups as the way many things work by default is tailored toward shared hosting These defaults are unconventional from the point of view of and they certainly aren t ideal for someone who s installing MediaWiki as MediaWiki does not conform to normal Unix filesystem layout Hopefully we ll offer direct support for standard layouts in the but for now *any change to the location of files is unsupported *Moving things and leaving symlinks will *probably *not break but it is *strongly *advised not to try any more intrusive changes to get MediaWiki to conform more closely to your filesystem hierarchy Any such attempt will almost certainly result in unnecessary bugs The standard recommended location to install relative to the web is it should be possible to enable the appropriate rewrite rules by if you can reconfigure the web server
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been 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
preventClickjacking( $flag=null)
Get or set the prevent-clickjacking flag.
do that in ParserLimitReportFormat instead use this to modify the parameters of the image and a DIV can begin in one section and end in another Make sure your code can handle that case gracefully See the EditSectionClearerLink extension for an example zero but section is usually empty its values are the globals values my talk page