Go to the documentation of this file.
7 array(
'hello this is ~~~',
8 "hello this is [[Special:Contributions/127.0.0.1|127.0.0.1]]",
10 array(
'hello \'\'this\'\' is <nowiki>~~~</nowiki>',
11 'hello \'\'this\'\' is <nowiki>~~~</nowiki>',
25 $user->setName(
"127.0.0.1" );
29 $this->assertEquals( $expected, $text );
41 $frame =
$wgParser->getPreprocessor()->newFrame();
43 array(
'pre',
'foo',
'style' =>
'margin-left: 1.6em' )
46 $this->assertSame(
array(
48 'text' =>
'<pre style="margin-left: 1.6em">foo</pre>',
49 ),
$ret,
'callParserFunction works for {{#tag:pre|foo|style=margin-left: 1.6em}}' );
61 $this->assertSame(
array(
68 'fromtitle' =>
$title->getPrefixedDBkey(),
88 'fromtitle' =>
$title->getPrefixedDBkey(),
92 ),
$out->getSections(),
'getSections() with proper value when <h2> is used' );
Set options of the Parser.
static newFromText( $text, $defaultNamespace=NS_MAIN)
Create a new Title from text, such as what one would find in a link.
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
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
static providePreSaveTransform()
testPreSaveTransform( $text, $expected)
@dataProvider providePreSaveTransform @covers Parser::preSaveTransform
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
testCallParserFunction()
@covers Parser::callParserFunction
when a variable name is used in a it is silently declared as a new masking the global
presenting them properly to the user as errors is done by the caller $title
please add to it if you re going to add events to the MediaWiki code where normally authentication against an external auth plugin would be creating a account $user
testGetSections()
@covers Parser::parse @covers ParserOutput::getSections
static newFromUser( $user)
Get a ParserOptions object from a given user.