MediaWiki  1.23.2
CoreParserFunctions Class Reference

Various core parser functions, registered in Parser::firstCallInit() More...

Static Public Member Functions

static anchorencode ( $parser, $text)
 
static basepagename ( $parser, $title=null)
 
static basepagenamee ( $parser, $title=null)
 
static canonicalurl ( $parser, $s='', $arg=null)
 
static canonicalurle ( $parser, $s='', $arg=null)
 
static cascadingsources ( $parser, $title='')
 Returns the sources of any cascading protection acting on a specified page. More...
 
static defaultsort ( $parser, $text, $uarg='')
 
static displaytitle ( $parser, $text='')
 Override the title of the page when viewed, provided we've been given a title which will normalise to the canonical title. More...
 
static filepath ( $parser, $name='', $argA='', $argB='')
 
static formatDate ( $parser, $date, $defaultPref=null)
 
static formatnum ( $parser, $num='', $arg=null)
 
static formatRaw ( $num, $raw)
 
static fullpagename ( $parser, $title=null)
 
static fullpagenamee ( $parser, $title=null)
 
static fullurl ( $parser, $s='', $arg=null)
 
static fullurle ( $parser, $s='', $arg=null)
 
static gender ( $parser, $username)
 
static grammar ( $parser, $case='', $word='')
 
static intFunction ( $parser, $part1='')
 
static language ( $parser, $code='', $inLanguage='')
 Gives language names. More...
 
static lc ( $parser, $s='')
 
static lcfirst ( $parser, $s='')
 
static localurl ( $parser, $s='', $arg=null)
 
static localurle ( $parser, $s='', $arg=null)
 
static mwnamespace ( $parser, $title=null)
 Given a title, return the namespace name that would be given by the corresponding magic word Note: function name changed to "mwnamespace" rather than "namespace" to not break PHP 5.3. More...
 
static namespacee ( $parser, $title=null)
 
static namespacenumber ( $parser, $title=null)
 
static ns ( $parser, $part1='')
 
static nse ( $parser, $part1='')
 
static numberingroup ( $parser, $name='', $raw=null)
 
static numberofactiveusers ( $parser, $raw=null)
 
static numberofadmins ( $parser, $raw=null)
 
static numberofarticles ( $parser, $raw=null)
 
static numberofedits ( $parser, $raw=null)
 
static numberoffiles ( $parser, $raw=null)
 
static numberofpages ( $parser, $raw=null)
 
static numberofusers ( $parser, $raw=null)
 
static numberofviews ( $parser, $raw=null)
 
static pad ( $parser, $string, $length, $padding='0', $direction=STR_PAD_RIGHT)
 Unicode-safe str_pad with the restriction that $length is forced to be <= 500. More...
 
static padleft ( $parser, $string='', $length=0, $padding='0')
 
static padright ( $parser, $string='', $length=0, $padding='0')
 
static pageid ( $parser, $title=null)
 Get the pageid of a specified page. More...
 
static pagename ( $parser, $title=null)
 Functions to get and normalize pagenames, corresponding to the magic words of the same names. More...
 
static pagenamee ( $parser, $title=null)
 
static pagesincategory ( $parser, $name='', $arg1=null, $arg2=null)
 Return the number of pages, files or subcats in the given category, or 0 if it's nonexistent. More...
 
static pagesinnamespace ( $parser, $namespace=0, $raw=null)
 
static pagesize ( $parser, $page='', $raw=null)
 Return the size of the given page, or 0 if it's nonexistent. More...
 
static plural ( $parser, $text='')
 
static protectionlevel ( $parser, $type='', $title='')
 Returns the requested protection level for the current page. More...
 
static register ( $parser)
 
static revisionday ( $parser, $title=null)
 Get the day from the last revision of a specified page. More...
 
static revisionday2 ( $parser, $title=null)
 Get the day with leading zeros from the last revision of a specified page. More...
 
static revisionid ( $parser, $title=null)
 Get the id from the last revision of a specified page. More...
 
static revisionmonth ( $parser, $title=null)
 Get the month with leading zeros from the last revision of a specified page. More...
 
static revisionmonth1 ( $parser, $title=null)
 Get the month from the last revision of a specified page. More...
 
static revisiontimestamp ( $parser, $title=null)
 Get the timestamp from the last revision of a specified page. More...
 
static revisionuser ( $parser, $title=null)
 Get the user from the last revision of a specified page. More...
 
static revisionyear ( $parser, $title=null)
 Get the year from the last revision of a specified page. More...
 
static rootpagename ( $parser, $title=null)
 
static rootpagenamee ( $parser, $title=null)
 
static special ( $parser, $text)
 
static speciale ( $parser, $text)
 
static subjectpagename ( $parser, $title=null)
 
static subjectpagenamee ( $parser, $title=null)
 
static subjectspace ( $parser, $title=null)
 
static subjectspacee ( $parser, $title=null)
 
static subpagename ( $parser, $title=null)
 
static subpagenamee ( $parser, $title=null)
 
static tagObj ( $parser, $frame, $args)
 Parser function to extension tag adaptor. More...
 
static talkpagename ( $parser, $title=null)
 
static talkpagenamee ( $parser, $title=null)
 
static talkspace ( $parser, $title=null)
 
static talkspacee ( $parser, $title=null)
 
static uc ( $parser, $s='')
 
static ucfirst ( $parser, $s='')
 
static urlencode ( $parser, $s='', $arg=null)
 urlencodes a string according to one of three patterns: (bug 22474) More...
 
static urlFunction ( $func, $s='', $arg=null)
 

Static Private Member Functions

static getCachedRevisionObject ( $parser, $title=null)
 Fetched the current revision of the given title and return this. More...
 
static matchAgainstMagicword ( $magicword, $value)
 Matches the given value against the value of given magic word. More...
 

Detailed Description

Various core parser functions, registered in Parser::firstCallInit()

Definition at line 28 of file CoreParserFunctions.php.

Member Function Documentation

◆ anchorencode()

static CoreParserFunctions::anchorencode (   $parser,
  $text 
)
static
Parameters
$parserParser
$text
Returns
string

Definition at line 794 of file CoreParserFunctions.php.

References $parser.

◆ basepagename()

static CoreParserFunctions::basepagename (   $parser,
  $title = null 
)
static

Definition at line 582 of file CoreParserFunctions.php.

References $t, $title, Title\newFromText(), and wfEscapeWikiText().

◆ basepagenamee()

static CoreParserFunctions::basepagenamee (   $parser,
  $title = null 
)
static

Definition at line 589 of file CoreParserFunctions.php.

References $t, $title, Title\newFromText(), and wfEscapeWikiText().

◆ canonicalurl()

static CoreParserFunctions::canonicalurl (   $parser,
  $s = '',
  $arg = null 
)
static

Definition at line 234 of file CoreParserFunctions.php.

References $s, and urlFunction().

◆ canonicalurle()

static CoreParserFunctions::canonicalurle (   $parser,
  $s = '',
  $arg = null 
)
static

Definition at line 238 of file CoreParserFunctions.php.

References $s, and urlFunction().

◆ cascadingsources()

static CoreParserFunctions::cascadingsources (   $parser,
  $title = '' 
)
static

Returns the sources of any cascading protection acting on a specified page.

Pages will not return their own title unless they transclude themselves. This is an expensive parser function and can't be called too many times per page, unless cascading protection sources for the page have already been loaded.

Parameters
Parser$parser
string$title
Returns
string
Since
1.23

Definition at line 1170 of file CoreParserFunctions.php.

References $parser, $title, array(), as, and Title\newFromText().

◆ defaultsort()

static CoreParserFunctions::defaultsort (   $parser,
  $text,
  $uarg = '' 
)
static
Parameters
$parserParser
string$textThe sortkey to use
string$uargEither "noreplace" or "noerror" (in en) both suppress errors, and noreplace does nothing if a default sortkey already exists.
Returns
string

Definition at line 823 of file CoreParserFunctions.php.

References $magicWords, $parser, array(), wfEscapeWikiText(), and wfMessage().

◆ displaytitle()

static CoreParserFunctions::displaytitle (   $parser,
  $text = '' 
)
static

Override the title of the page when viewed, provided we've been given a title which will normalise to the canonical title.

Parameters
$parserParser: parent parser
string$textdesired title text
Returns
String

Definition at line 357 of file CoreParserFunctions.php.

References $params, $parser, $title, array(), Sanitizer\checkCss(), Sanitizer\decodeTagAttributes(), global, Title\newFromText(), Sanitizer\normalizeCharReferences(), Sanitizer\removeHTMLtags(), Sanitizer\safeEncodeTagAttributes(), and Sanitizer\stripAllTags().

◆ filepath()

static CoreParserFunctions::filepath (   $parser,
  $name = '',
  $argA = '',
  $argB = '' 
)
static

Definition at line 855 of file CoreParserFunctions.php.

References $file, $name, $parser, array(), PROTO_RELATIVE, wfExpandUrl(), and wfFindFile().

◆ formatDate()

static CoreParserFunctions::formatDate (   $parser,
  $date,
  $defaultPref = null 
)
static
Parameters
Parser$parser
string$date
string$defaultPref
Returns
string

Definition at line 100 of file CoreParserFunctions.php.

References $parser, array(), and DateFormatter\getInstance().

◆ formatnum()

static CoreParserFunctions::formatnum (   $parser,
  $num = '',
  $arg = null 
)
static
Parameters
$parserParser
string$num
string$arg
Returns
string

Definition at line 273 of file CoreParserFunctions.php.

References $parser, and array().

◆ formatRaw()

static CoreParserFunctions::formatRaw (   $num,
  $raw 
)
static

◆ fullpagename()

static CoreParserFunctions::fullpagename (   $parser,
  $title = null 
)
static

Definition at line 540 of file CoreParserFunctions.php.

References $t, $title, Title\newFromText(), and wfEscapeWikiText().

◆ fullpagenamee()

static CoreParserFunctions::fullpagenamee (   $parser,
  $title = null 
)
static

Definition at line 547 of file CoreParserFunctions.php.

References $t, $title, Title\newFromText(), and wfEscapeWikiText().

◆ fullurl()

static CoreParserFunctions::fullurl (   $parser,
  $s = '',
  $arg = null 
)
static

Definition at line 221 of file CoreParserFunctions.php.

References $s, and urlFunction().

◆ fullurle()

static CoreParserFunctions::fullurle (   $parser,
  $s = '',
  $arg = null 
)
static

Definition at line 225 of file CoreParserFunctions.php.

References $s, and urlFunction().

◆ gender()

static CoreParserFunctions::gender (   $parser,
  $username 
)
static
Parameters
$parserParser
$usernamestring
Returns

Definition at line 300 of file CoreParserFunctions.php.

References $parser, $ret, $title, $user, User\getDefaultOption(), User\newFromName(), Title\newFromText(), NS_USER, GenderCache\singleton(), wfProfileIn(), and wfProfileOut().

◆ getCachedRevisionObject()

static CoreParserFunctions::getCachedRevisionObject (   $parser,
  $title = null 
)
staticprivate

Fetched the current revision of the given title and return this.

Will increment the expensive function count and add a template link to get the value refreshed on changes. For a given title, which is equal to the current parser title, the revision object from the parser is used, when that is the current one

Parameters
$parserParser
$titleTitle
Returns
Revision
Since
1.23

Definition at line 946 of file CoreParserFunctions.php.

References $cache, $parser, $rev, $title, array(), Revision\newFromTitle(), IDBAccessObject\READ_NORMAL, and wfDebug().

Referenced by pagesize(), revisionday(), revisionday2(), revisionid(), revisionmonth(), revisionmonth1(), revisiontimestamp(), revisionuser(), and revisionyear().

◆ grammar()

static CoreParserFunctions::grammar (   $parser,
  $case = '',
  $word = '' 
)
static
Parameters
$parserParser
string$case
string$word
Returns

Definition at line 290 of file CoreParserFunctions.php.

References $parser.

◆ intFunction()

static CoreParserFunctions::intFunction (   $parser,
  $part1 = '' 
)
static
Parameters
$parserParser
string$part1
Returns
array

Definition at line 83 of file CoreParserFunctions.php.

References $args, $parser, array(), and wfMessage().

◆ language()

static CoreParserFunctions::language (   $parser,
  $code = '',
  $inLanguage = '' 
)
static

Gives language names.

Parameters
$parserParser
string$codeLanguage code (of which to get name)
string$inLanguageLanguage code (in which to get name)
Returns
String

Definition at line 744 of file CoreParserFunctions.php.

References Language\fetchLanguageName(), and wfBCP47().

◆ lc()

static CoreParserFunctions::lc (   $parser,
  $s = '' 
)
static
Parameters
$parserParser
string$s
Returns

Definition at line 193 of file CoreParserFunctions.php.

References $parser, $s, $wgContLang, array(), and global.

◆ lcfirst()

static CoreParserFunctions::lcfirst (   $parser,
  $s = '' 
)
static

Definition at line 178 of file CoreParserFunctions.php.

References $s, $wgContLang, and global.

◆ localurl()

static CoreParserFunctions::localurl (   $parser,
  $s = '',
  $arg = null 
)
static

Definition at line 208 of file CoreParserFunctions.php.

References $s, and urlFunction().

◆ localurle()

static CoreParserFunctions::localurle (   $parser,
  $s = '',
  $arg = null 
)
static

Definition at line 212 of file CoreParserFunctions.php.

References $s, and urlFunction().

◆ matchAgainstMagicword()

static CoreParserFunctions::matchAgainstMagicword (   $magicword,
  $value 
)
staticprivate

Matches the given value against the value of given magic word.

Parameters
string$magicwordmagic word key
mixed$valuevalue to match
Returns
boolean true on successful match

Definition at line 415 of file CoreParserFunctions.php.

References $value, and MagicWord\get().

◆ mwnamespace()

static CoreParserFunctions::mwnamespace (   $parser,
  $title = null 
)
static

Given a title, return the namespace name that would be given by the corresponding magic word Note: function name changed to "mwnamespace" rather than "namespace" to not break PHP 5.3.

Returns
mixed|string

Definition at line 471 of file CoreParserFunctions.php.

References $t, $title, and Title\newFromText().

◆ namespacee()

static CoreParserFunctions::namespacee (   $parser,
  $title = null 
)
static

Definition at line 478 of file CoreParserFunctions.php.

References $t, $title, Title\newFromText(), and wfUrlencode().

◆ namespacenumber()

static CoreParserFunctions::namespacenumber (   $parser,
  $title = null 
)
static

Definition at line 485 of file CoreParserFunctions.php.

References $t, $title, and Title\newFromText().

◆ ns()

static CoreParserFunctions::ns (   $parser,
  $part1 = '' 
)
static

Definition at line 118 of file CoreParserFunctions.php.

References $wgContLang, array(), and global.

Referenced by nse().

◆ nse()

static CoreParserFunctions::nse (   $parser,
  $part1 = '' 
)
static

Definition at line 132 of file CoreParserFunctions.php.

References $parser, $ret, ns(), and wfUrlencode().

◆ numberingroup()

static CoreParserFunctions::numberingroup (   $parser,
  $name = '',
  $raw = null 
)
static

Definition at line 460 of file CoreParserFunctions.php.

References $name, formatRaw(), and SiteStats\numberingroup().

◆ numberofactiveusers()

static CoreParserFunctions::numberofactiveusers (   $parser,
  $raw = null 
)
static

Definition at line 438 of file CoreParserFunctions.php.

References SiteStats\activeUsers(), and formatRaw().

◆ numberofadmins()

static CoreParserFunctions::numberofadmins (   $parser,
  $raw = null 
)
static

Definition at line 447 of file CoreParserFunctions.php.

References formatRaw(), and SiteStats\numberingroup().

◆ numberofarticles()

static CoreParserFunctions::numberofarticles (   $parser,
  $raw = null 
)
static

Definition at line 441 of file CoreParserFunctions.php.

References SiteStats\articles(), and formatRaw().

◆ numberofedits()

static CoreParserFunctions::numberofedits (   $parser,
  $raw = null 
)
static

Definition at line 450 of file CoreParserFunctions.php.

References SiteStats\edits(), and formatRaw().

◆ numberoffiles()

static CoreParserFunctions::numberoffiles (   $parser,
  $raw = null 
)
static

Definition at line 444 of file CoreParserFunctions.php.

References formatRaw(), and SiteStats\images().

◆ numberofpages()

static CoreParserFunctions::numberofpages (   $parser,
  $raw = null 
)
static

Definition at line 432 of file CoreParserFunctions.php.

References formatRaw(), and SiteStats\pages().

◆ numberofusers()

static CoreParserFunctions::numberofusers (   $parser,
  $raw = null 
)
static

Definition at line 435 of file CoreParserFunctions.php.

References formatRaw(), and SiteStats\users().

◆ numberofviews()

static CoreParserFunctions::numberofviews (   $parser,
  $raw = null 
)
static

Definition at line 453 of file CoreParserFunctions.php.

References formatRaw(), global, and SiteStats\views().

◆ pad()

static CoreParserFunctions::pad (   $parser,
  $string,
  $length,
  $padding = '0',
  $direction = STR_PAD_RIGHT 
)
static

Unicode-safe str_pad with the restriction that $length is forced to be <= 500.

Returns
string

Definition at line 755 of file CoreParserFunctions.php.

References $parser.

Referenced by padleft(), and padright().

◆ padleft()

static CoreParserFunctions::padleft (   $parser,
  $string = '',
  $length = 0,
  $padding = '0' 
)
static

Definition at line 781 of file CoreParserFunctions.php.

References $parser, and pad().

◆ padright()

static CoreParserFunctions::padright (   $parser,
  $string = '',
  $length = 0,
  $padding = '0' 
)
static

Definition at line 785 of file CoreParserFunctions.php.

References $parser, and pad().

◆ pageid()

static CoreParserFunctions::pageid (   $parser,
  $title = null 
)
static

Get the pageid of a specified page.

Parameters
$parserParser
$titlestring Title to get the pageid from
Since
1.23

Definition at line 992 of file CoreParserFunctions.php.

References $parser, $t, $title, Title\newFromText(), and LinkCache\singleton().

◆ pagename()

static CoreParserFunctions::pagename (   $parser,
  $title = null 
)
static

Functions to get and normalize pagenames, corresponding to the magic words of the same names.

Returns
String

Definition at line 526 of file CoreParserFunctions.php.

References $t, $title, Title\newFromText(), and wfEscapeWikiText().

◆ pagenamee()

static CoreParserFunctions::pagenamee (   $parser,
  $title = null 
)
static

Definition at line 533 of file CoreParserFunctions.php.

References $t, $title, Title\newFromText(), and wfEscapeWikiText().

◆ pagesincategory()

static CoreParserFunctions::pagesincategory (   $parser,
  $name = '',
  $arg1 = null,
  $arg2 = null 
)
static

Return the number of pages, files or subcats in the given category, or 0 if it's nonexistent.

This is an expensive parser function and can't be called too many times per page.

Returns
string

Definition at line 631 of file CoreParserFunctions.php.

References $cache, $count, $magicWords, $name, $parser, $title, $type, $wgContLang, array(), formatRaw(), global, Title\makeTitleSafe(), Category\newFromTitle(), NS_CATEGORY, and title.

◆ pagesinnamespace()

static CoreParserFunctions::pagesinnamespace (   $parser,
  $namespace = 0,
  $raw = null 
)
static

Definition at line 457 of file CoreParserFunctions.php.

References formatRaw(), and SiteStats\pagesInNs().

◆ pagesize()

static CoreParserFunctions::pagesize (   $parser,
  $page = '',
  $raw = null 
)
static

Return the size of the given page, or 0 if it's nonexistent.

This is an expensive parser function and can't be called too many times per page.

Parameters
$parserParser
$pageString Name of page to check (Default: empty string)
$rawString Should number be human readable with commas or just number
Returns
string

Definition at line 698 of file CoreParserFunctions.php.

References $parser, $rev, $title, formatRaw(), getCachedRevisionObject(), and Title\newFromText().

◆ plural()

static CoreParserFunctions::plural (   $parser,
  $text = '' 
)
static
Parameters
$parserParser
string$text
Returns

Definition at line 342 of file CoreParserFunctions.php.

References $parser.

◆ protectionlevel()

static CoreParserFunctions::protectionlevel (   $parser,
  $type = '',
  $title = '' 
)
static

Returns the requested protection level for the current page.

This is an expensive parser function and can't be called too many times per page, unless the protection levels for the given title have already been retrieved

Parameters
Parser$parser
string$type
string$title
Returns
string

Definition at line 723 of file CoreParserFunctions.php.

References $parser, $title, $type, and Title\newFromText().

◆ register()

static CoreParserFunctions::register (   $parser)
static
Parameters
$parserParser
Returns
void

Definition at line 33 of file CoreParserFunctions.php.

References $parser, array(), as, global, SFH_NO_HASH, and SFH_OBJECT_ARGS.

◆ revisionday()

static CoreParserFunctions::revisionday (   $parser,
  $title = null 
)
static

Get the day from the last revision of a specified page.

Parameters
$parserParser
$titlestring Title to get the day from
Since
1.23

Definition at line 1052 of file CoreParserFunctions.php.

References $parser, $rev, $t, $title, format, getCachedRevisionObject(), MWTimestamp\getLocalInstance(), and Title\newFromText().

◆ revisionday2()

static CoreParserFunctions::revisionday2 (   $parser,
  $title = null 
)
static

Get the day with leading zeros from the last revision of a specified page.

Parameters
$parserParser
$titlestring Title to get the day from
Since
1.23

Definition at line 1068 of file CoreParserFunctions.php.

References $parser, $rev, $t, $title, format, getCachedRevisionObject(), MWTimestamp\getLocalInstance(), and Title\newFromText().

◆ revisionid()

static CoreParserFunctions::revisionid (   $parser,
  $title = null 
)
static

Get the id from the last revision of a specified page.

Parameters
$parserParser
$titlestring Title to get the id from
Since
1.23

Definition at line 1036 of file CoreParserFunctions.php.

References $parser, $rev, $t, $title, getCachedRevisionObject(), and Title\newFromText().

◆ revisionmonth()

static CoreParserFunctions::revisionmonth (   $parser,
  $title = null 
)
static

Get the month with leading zeros from the last revision of a specified page.

Parameters
$parserParser
$titlestring Title to get the month from
Since
1.23

Definition at line 1084 of file CoreParserFunctions.php.

References $parser, $rev, $t, $title, format, getCachedRevisionObject(), MWTimestamp\getLocalInstance(), and Title\newFromText().

◆ revisionmonth1()

static CoreParserFunctions::revisionmonth1 (   $parser,
  $title = null 
)
static

Get the month from the last revision of a specified page.

Parameters
$parserParser
$titlestring Title to get the month from
Since
1.23

Definition at line 1100 of file CoreParserFunctions.php.

References $parser, $rev, $t, $title, format, getCachedRevisionObject(), MWTimestamp\getLocalInstance(), and Title\newFromText().

◆ revisiontimestamp()

static CoreParserFunctions::revisiontimestamp (   $parser,
  $title = null 
)
static

Get the timestamp from the last revision of a specified page.

Parameters
$parserParser
$titlestring Title to get the timestamp from
Since
1.23

Definition at line 1132 of file CoreParserFunctions.php.

References $parser, $rev, $t, $title, format, getCachedRevisionObject(), MWTimestamp\getLocalInstance(), and Title\newFromText().

◆ revisionuser()

static CoreParserFunctions::revisionuser (   $parser,
  $title = null 
)
static

Get the user from the last revision of a specified page.

Parameters
$parserParser
$titlestring Title to get the user from
Since
1.23

Definition at line 1148 of file CoreParserFunctions.php.

References $parser, $rev, $t, $title, getCachedRevisionObject(), and Title\newFromText().

◆ revisionyear()

static CoreParserFunctions::revisionyear (   $parser,
  $title = null 
)
static

Get the year from the last revision of a specified page.

Parameters
$parserParser
$titlestring Title to get the year from
Since
1.23

Definition at line 1116 of file CoreParserFunctions.php.

References $parser, $rev, $t, $title, format, getCachedRevisionObject(), MWTimestamp\getLocalInstance(), and Title\newFromText().

◆ rootpagename()

static CoreParserFunctions::rootpagename (   $parser,
  $title = null 
)
static

Definition at line 568 of file CoreParserFunctions.php.

References $t, $title, Title\newFromText(), and wfEscapeWikiText().

◆ rootpagenamee()

static CoreParserFunctions::rootpagenamee (   $parser,
  $title = null 
)
static

Definition at line 575 of file CoreParserFunctions.php.

References $t, $title, Title\newFromText(), and wfEscapeWikiText().

◆ special()

static CoreParserFunctions::special (   $parser,
  $text 
)
static

◆ speciale()

static CoreParserFunctions::speciale (   $parser,
  $text 
)
static

Definition at line 811 of file CoreParserFunctions.php.

References $parser, and wfUrlencode().

◆ subjectpagename()

static CoreParserFunctions::subjectpagename (   $parser,
  $title = null 
)
static

Definition at line 610 of file CoreParserFunctions.php.

References $t, $title, Title\newFromText(), and wfEscapeWikiText().

◆ subjectpagenamee()

static CoreParserFunctions::subjectpagenamee (   $parser,
  $title = null 
)
static

Definition at line 617 of file CoreParserFunctions.php.

References $t, $title, Title\newFromText(), and wfEscapeWikiText().

◆ subjectspace()

static CoreParserFunctions::subjectspace (   $parser,
  $title = null 
)
static

Definition at line 506 of file CoreParserFunctions.php.

References $t, $title, and Title\newFromText().

◆ subjectspacee()

static CoreParserFunctions::subjectspacee (   $parser,
  $title = null 
)
static

Definition at line 513 of file CoreParserFunctions.php.

References $t, $title, Title\newFromText(), and wfUrlencode().

◆ subpagename()

static CoreParserFunctions::subpagename (   $parser,
  $title = null 
)
static

Definition at line 554 of file CoreParserFunctions.php.

References $t, $title, Title\newFromText(), and wfEscapeWikiText().

◆ subpagenamee()

static CoreParserFunctions::subpagenamee (   $parser,
  $title = null 
)
static

Definition at line 561 of file CoreParserFunctions.php.

References $t, $title, Title\newFromText(), and wfEscapeWikiText().

◆ tagObj()

static CoreParserFunctions::tagObj (   $parser,
  $frame,
  $args 
)
static

Parser function to extension tag adaptor.

Returns
string

Definition at line 893 of file CoreParserFunctions.php.

References $args, $name, $params, $parser, $value, array(), as, PPFrame\STRIP_COMMENTS, and wfMessage().

◆ talkpagename()

static CoreParserFunctions::talkpagename (   $parser,
  $title = null 
)
static

Definition at line 596 of file CoreParserFunctions.php.

References $t, $title, Title\newFromText(), and wfEscapeWikiText().

◆ talkpagenamee()

static CoreParserFunctions::talkpagenamee (   $parser,
  $title = null 
)
static

Definition at line 603 of file CoreParserFunctions.php.

References $t, $title, Title\newFromText(), and wfEscapeWikiText().

◆ talkspace()

static CoreParserFunctions::talkspace (   $parser,
  $title = null 
)
static

Definition at line 492 of file CoreParserFunctions.php.

References $t, $title, and Title\newFromText().

◆ talkspacee()

static CoreParserFunctions::talkspacee (   $parser,
  $title = null 
)
static

Definition at line 499 of file CoreParserFunctions.php.

References $t, $title, Title\newFromText(), and wfUrlencode().

◆ uc()

static CoreParserFunctions::uc (   $parser,
  $s = '' 
)
static
Parameters
$parserParser
string$s
Returns

Definition at line 203 of file CoreParserFunctions.php.

References $parser, $s, $wgContLang, array(), and global.

◆ ucfirst()

static CoreParserFunctions::ucfirst (   $parser,
  $s = '' 
)
static

Definition at line 183 of file CoreParserFunctions.php.

References $s, $wgContLang, and global.

◆ urlencode()

static CoreParserFunctions::urlencode (   $parser,
  $s = '',
  $arg = null 
)
static

urlencodes a string according to one of three patterns: (bug 22474)

By default (for HTTP "query" strings), spaces are encoded as '+'. Or to encode a value for the HTTP "path", spaces are encoded as '%20'. For links to "wiki"s, or similar software, spaces are encoded as '_',

Parameters
$parserParser object
string$sThe text to encode.
string$arg(optional): The type of encoding.
Returns
string

Definition at line 152 of file CoreParserFunctions.php.

References $magicWords, $parser, $s, and array().

◆ urlFunction()

static CoreParserFunctions::urlFunction (   $func,
  $s = '',
  $arg = null 
)
static

The documentation for this class was generated from the following file: