Go to the documentation of this file.
36 $parser->setHook(
'nowiki',
array( __CLASS__,
'nowiki' ) );
37 $parser->setHook(
'gallery',
array( __CLASS__,
'gallery' ) );
60 $content = str_replace(
62 array(
'>',
'<' ),
86 if (
$parser->getOptions()->getAllowUnsafeRawHtml() ) {
87 return array( $content,
'markerType' =>
'nowiki' );
94 array(
'class' =>
'error' ),
97 wfMessage(
'rawhtml-notallowed' )->escaped()
101 throw new MWException(
'<html> extension tag encountered unexpectedly' );
118 $content = strtr( $content,
array(
128 return array( $content,
'markerType' =>
'nowiki' );
147 return $parser->renderImageGallery( $content, $attributes );
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
Various tag hooks, registered in Parser::firstCallInit()
static nowiki( $content, $attributes, $parser)
Core parser tag hook function for 'nowiki'.
static gallery( $content, $attributes, $parser)
Core parser tag hook function for 'gallery'.
do that in ParserLimitReportFormat instead $parser
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 including delete and has completed for all link tables default is conds Array Extra conditions for the No matching items in log is displayed if loglist is empty msgKey Array If you want a nice box with a set this to the key of the message First element is the message additional optional elements are parameters for the key that are processed with wfMessage() -> params() ->parseAsBlock() - offset Set to overwrite offset parameter in $wgRequest set to '' to unset offset - wrap String Wrap the message in html(usually something like "<
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
when a variable name is used in a it is silently declared as a new masking the global
static html( $content, $attributes, $parser)
Core parser tag hook function for 'html', used only when $wgRawHtml is enabled.
static validateTagAttributes( $attribs, $element)
Take an array of attribute names and values and normalize or discard illegal values for the given ele...
static delimiterReplace( $startDelim, $endDelim, $replace, $subject, $flags='')
Perform an operation equivalent to.
static pre( $text, $attribs, $parser)
Core parser tag hook function for 'pre'.
static rawElement( $element, $attribs=array(), $contents='')
Returns an HTML element in a string.
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 & $attribs