|
MediaWiki master
|
Various core parser functions, registered in every Parser. More...
Static Public Member Functions | |
| static | anchorencode ( $parser, $text) |
| static | basepagename ( $parser, $title=null) |
| static | basepagenamee ( $parser, $title=null) |
| static | bcp47 (Parser $parser, string $code='') |
| Gives the BCP-47 code for a language given the mediawiki internal language code. | |
| static | bidi ( $parser, $text='') |
| 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. | |
| static | contentmodel (Parser $parser, ?string $format=null, ?string $title=null) |
| static | defaultsort ( $parser, $text, $uarg='') |
| static | dir (Parser $parser, string $code='', string $arg='') |
| Gives direction of script of a language given a language code. | |
| static | displaytitle ( $parser, $text='', $uarg='') |
| Override the title of the page when viewed, provided we've been given a title which will normalise to the canonical title. | |
| static | filepath ( $parser, $name='', $argA='', $argB='') |
| Usage {{filepath|300}}, {{filepath|nowiki}}, {{filepath|nowiki|300}} or {{filepath|300|nowiki}} or {{filepath|300px}}, {{filepath|200x300px}}, {{filepath|nowiki|200x300px}}, {{filepath|200x300px|nowiki}}. | |
| static | formal (Parser $parser, string ... $forms) |
| static | formatDate ( $parser, $date, $defaultPref=null) |
| static | formatnum ( $parser, $num='', $arg1='', $arg2='') |
| static | formatRaw ( $num, $raw, $language, ?MagicWordFactory $magicWordFactory=null) |
| Formats a number according to a language. | |
| 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,... $forms) |
| static | grammar ( $parser, $case='', $word='') |
| static | interlanguagelink ( $parser, $prefix='', $title='', $linkText=null) |
| static | interwikilink ( $parser, $prefix='', $title='', $linkText=null) |
| static | intFunction ( $parser, $part1='',... $params) |
| static | language ( $parser, $code='', $inLanguage='') |
| Gives language names. | |
| static | lc ( $parser, $s='') |
| static | lcfirst ( $parser, $s='') |
| static | localurl ( $parser, $s='', $arg=null) |
| static | localurle ( $parser, $s='', $arg=null) |
| 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 | pad ( $parser, $string, $length, $padding='0', $direction=STR_PAD_RIGHT) |
| Unicode-safe str_pad with the restriction that $length is forced to be <= 500. | |
| 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. | |
| static | pagename ( $parser, $title=null) |
| Functions to get and normalize pagenames, corresponding to the magic words of the same names. | |
| static | pagenamee ( $parser, $title=null) |
| static | pagesincategory ( $parser, $name='', $arg1='', $arg2='') |
| Return the number of pages, files or subcats in the given category, or 0 if it's nonexistent. | |
| 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. | |
| static | plural ( $parser, $text='',... $forms) |
| static | protectionexpiry ( $parser, $type='', $title='') |
| Returns the requested protection expiry for the current page. | |
| static | protectionlevel ( $parser, $type='', $title='') |
| Returns the requested protection level for the current page. | |
| static | register (Parser $parser, ServiceOptions $options) |
| static | revisionday ( $parser, $title=null) |
| Get the day from the last revision of a specified page. | |
| static | revisionday2 ( $parser, $title=null) |
| Get the day with leading zeros from the last revision of a specified page. | |
| static | revisionid ( $parser, $title=null) |
| Get the id from the last revision of a specified page. | |
| static | revisionmonth ( $parser, $title=null) |
| Get the month with leading zeros from the last revision of a specified page. | |
| static | revisionmonth1 ( $parser, $title=null) |
| Get the month from the last revision of a specified page. | |
| static | revisiontimestamp ( $parser, $title=null) |
| Get the timestamp from the last revision of a specified page. | |
| static | revisionuser ( $parser, $title=null) |
| Get the user from the last revision of a specified page. | |
| static | revisionyear ( $parser, $title=null) |
| Get the year from the last revision of a specified page. | |
| 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. | |
| 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: (T24474) | |
| static | urlFunction ( $func, $s='', $arg=null) |
Public Attributes | |
| const | REGISTER_OPTIONS |
Various core parser functions, registered in every Parser.
Definition at line 38 of file CoreParserFunctions.php.
|
static |
| Parser | $parser | |
| string | $text |
Definition at line 1363 of file CoreParserFunctions.php.
References MediaWiki\Parser\Parser\guessSectionNameFromWikiText(), and MediaWiki\Parser\Parser\killMarkers().
|
static |
| Parser | $parser | |
| string | null | $title |
Definition at line 1006 of file CoreParserFunctions.php.
References wfEscapeWikiText().
|
static |
| Parser | $parser | |
| string | null | $title |
Definition at line 1019 of file CoreParserFunctions.php.
References wfEscapeWikiText(), and wfUrlencode().
|
static |
Gives the BCP-47 code for a language given the mediawiki internal language code.
| Parser | $parser | |
| string | $code | a language code. If missing, the parser target language will be used. |
Definition at line 1286 of file CoreParserFunctions.php.
References MediaWiki\Parser\Parser\getTargetLanguage().
|
static |
| Parser | $parser | |
| string | $text |
Definition at line 543 of file CoreParserFunctions.php.
References MediaWiki\Parser\Parser\getTargetLanguage().
|
static |
| Parser | $parser | |
| string | $s | |
| string | null | $arg |
Definition at line 350 of file CoreParserFunctions.php.
|
static |
| Parser | $parser | |
| string | $s | |
| string | null | $arg |
Definition at line 360 of file CoreParserFunctions.php.
|
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.
| Parser | $parser | |
| ?string | $title |
Definition at line 1924 of file CoreParserFunctions.php.
References MediaWiki\Parser\Parser\getTitle(), and MediaWiki\Parser\Parser\incrementExpensiveFunctionCount().
|
static |
| Parser | $parser | |
| ?string | $format | |
| ?string | $title |
Definition at line 1948 of file CoreParserFunctions.php.
References $magicWords, MediaWiki\Parser\Parser\getMagicWordFactory(), MediaWiki\Parser\Parser\getTargetLanguage(), MediaWiki\Parser\Parser\incrementExpensiveFunctionCount(), and wfEscapeWikiText().
|
static |
| Parser | $parser | |
| string | $text | The sortkey to use |
| string | $uarg | Either "noreplace" or "noerror" (in en) both suppress errors, and noreplace does nothing if a default sortkey already exists. |
Definition at line 1404 of file CoreParserFunctions.php.
References $magicWords, MediaWiki\Parser\Parser\getMagicWordFactory(), MediaWiki\Parser\Parser\getOutput(), MediaWiki\Parser\Parser\getTargetLanguageConverter(), MediaWiki\Parser\Parser\msg(), and wfEscapeWikiText().
|
static |
Gives direction of script of a language given a language code.
| Parser | $parser | |
| string | $code | a language code. If missing, the parser target language will be used. |
| string | $arg | If this optional argument matches the language_option_bcp47 magic word, the language code will be treated as a BCP-47 code. |
Definition at line 1252 of file CoreParserFunctions.php.
References MediaWiki\Parser\Parser\getTargetLanguage().
|
static |
Override the title of the page when viewed, provided we've been given a title which will normalise to the canonical title.
| Parser | $parser | Parent parser |
| string | $text | Desired title text |
| string | $uarg |
Definition at line 556 of file CoreParserFunctions.php.
References $magicWords, MediaWiki\Parser\Parser\addTrackingCategory(), MediaWiki\Parser\Sanitizer\checkCss(), MediaWiki\Parser\Sanitizer\decodeCharReferencesAndNormalize(), MediaWiki\Parser\Parser\doQuotes(), MediaWiki\MediaWikiServices\getInstance(), MediaWiki\Parser\Parser\getMagicWordFactory(), MediaWiki\Parser\Parser\getOutput(), MediaWiki\Parser\Parser\getTargetLanguageConverter(), MediaWiki\Parser\Parser\getTitle(), MediaWiki\Linker\LinkTarget\hasFragment(), MediaWiki\Parser\Parser\killMarkers(), MediaWiki\Parser\Parser\msg(), MediaWiki\Message\Message\plaintextParam(), MediaWiki\Parser\Sanitizer\removeSomeTags(), MediaWiki\MainConfigNames\RestrictDisplayTitle, MediaWiki\Parser\Sanitizer\stripAllTags(), and wfEscapeWikiText().
|
static |
Usage {{filepath|300}}, {{filepath|nowiki}}, {{filepath|nowiki|300}} or {{filepath|300|nowiki}} or {{filepath|300px}}, {{filepath|200x300px}}, {{filepath|nowiki|200x300px}}, {{filepath|200x300px|nowiki}}.
| Parser | $parser | |
| string | $name | |
| string | $argA | |
| string | $argB |
Definition at line 1446 of file CoreParserFunctions.php.
References $url, MediaWiki\Parser\Parser\parseWidthParam(), and PROTO_RELATIVE.
|
static |
Definition at line 533 of file CoreParserFunctions.php.
|
static |
| Parser | $parser | |
| string | $date | |
| string | null | $defaultPref |
Definition at line 169 of file CoreParserFunctions.php.
References MediaWiki\MediaWikiServices\getInstance(), MediaWiki\Parser\Parser\getOptions(), and MediaWiki\Parser\Parser\getTargetLanguage().
|
static |
| Parser | $parser | |
| string | $num | |
| string | $arg1 | |
| string | $arg2 |
Definition at line 404 of file CoreParserFunctions.php.
References $magicWords, MediaWiki\Parser\Parser\getMagicWordFactory(), MediaWiki\Parser\Parser\getTargetLanguage(), and MediaWiki\Parser\Parser\markerSkipCallback().
|
static |
Formats a number according to a language.
| int | float | $num | |
| ?string | $raw | |
| Language | $language | |
| MagicWordFactory | null | $magicWordFactory | To evaluate $raw |
Definition at line 674 of file CoreParserFunctions.php.
References MediaWiki\MediaWikiServices\getInstance().
|
static |
| Parser | $parser | |
| string | null | $title |
Definition at line 928 of file CoreParserFunctions.php.
References wfEscapeWikiText().
|
static |
| Parser | $parser | |
| string | null | $title |
Definition at line 941 of file CoreParserFunctions.php.
References wfEscapeWikiText().
|
static |
| Parser | $parser | |
| string | $s | |
| string | null | $arg |
Definition at line 325 of file CoreParserFunctions.php.
|
static |
| Parser | $parser | |
| string | $s | |
| string | null | $arg |
Definition at line 335 of file CoreParserFunctions.php.
|
static |
| Parser | $parser | |
| string | $username | |
| string | ...$forms What to output for each gender |
Definition at line 488 of file CoreParserFunctions.php.
References MediaWiki\User\Options\UserOptionsLookup\getDefaultOption(), MediaWiki\MediaWikiServices\getInstance(), MediaWiki\Parser\Parser\getOptions(), MediaWiki\Parser\Parser\getTargetLanguage(), and NS_USER.
|
static |
| Parser | $parser | |
| string | $case | |
| string | $word |
Definition at line 477 of file CoreParserFunctions.php.
References MediaWiki\Parser\Parser\getTargetLanguage(), and MediaWiki\Parser\Parser\killMarkers().
|
static |
| Parser | $parser | |
| string | $prefix | |
| string | $title | |
| string | null | $linkText |
Definition at line 2023 of file CoreParserFunctions.php.
References MediaWiki\Parser\Parser\getOutput().
|
static |
| Parser | $parser | |
| string | $prefix | |
| string | $title | |
| string | null | $linkText |
Definition at line 1988 of file CoreParserFunctions.php.
References MediaWiki\Parser\Parser\getOutput(), and MediaWiki\Parser\Parser\recursiveTagParseFully().
|
static |
| Parser | $parser | |
| string | $part1 | Message key |
| string | ...$params To pass to wfMessage() |
Definition at line 152 of file CoreParserFunctions.php.
References MediaWiki\Parser\Parser\getOptions(), and wfMessage().
|
static |
Gives language names.
| Parser | $parser | |
| string | $code | Language code (of which to get name) |
| string | $inLanguage | Language code (in which to get name); if missing or empty, the language's autonym will be returned. |
Definition at line 1228 of file CoreParserFunctions.php.
References MediaWiki\MediaWikiServices\getInstance(), and MediaWiki\Parser\Parser\getTargetLanguage().
|
static |
| Parser | $parser | |
| string | $s |
Definition at line 281 of file CoreParserFunctions.php.
References MediaWiki\Parser\Parser\getContentLanguage(), and MediaWiki\Parser\Parser\markerSkipCallback().
|
static |
| Parser | $parser | |
| string | $s |
Definition at line 263 of file CoreParserFunctions.php.
References MediaWiki\Parser\Parser\getContentLanguage().
|
static |
| Parser | $parser | |
| string | $s | |
| string | null | $arg |
Definition at line 300 of file CoreParserFunctions.php.
|
static |
| Parser | $parser | |
| string | $s | |
| string | null | $arg |
Definition at line 310 of file CoreParserFunctions.php.
|
static |
| Parser | $parser | |
| string | null | $title |
Definition at line 822 of file CoreParserFunctions.php.
References wfUrlencode().
|
static |
| Parser | $parser | |
| string | null | $title |
Definition at line 835 of file CoreParserFunctions.php.
|
static |
| Parser | $parser | |
| string | $part1 |
Definition at line 192 of file CoreParserFunctions.php.
References MediaWiki\Parser\Parser\getContentLanguage().
|
static |
| Parser | $parser | |
| string | $part1 |
Definition at line 210 of file CoreParserFunctions.php.
References wfUrlencode().
|
static |
| Parser | $parser | |
| string | $name | |
| string | null | $raw |
Definition at line 775 of file CoreParserFunctions.php.
References MediaWiki\Parser\Parser\getTargetLanguage().
|
static |
| Parser | $parser | |
| string | null | $raw |
Definition at line 711 of file CoreParserFunctions.php.
References MediaWiki\Parser\Parser\getTargetLanguage().
|
static |
| Parser | $parser | |
| string | null | $raw |
Definition at line 738 of file CoreParserFunctions.php.
References MediaWiki\Parser\Parser\getTargetLanguage().
|
static |
| Parser | $parser | |
| string | null | $raw |
Definition at line 720 of file CoreParserFunctions.php.
References MediaWiki\Parser\Parser\getTargetLanguage().
|
static |
| Parser | $parser | |
| string | null | $raw |
Definition at line 751 of file CoreParserFunctions.php.
References MediaWiki\Parser\Parser\getTargetLanguage().
|
static |
| Parser | $parser | |
| string | null | $raw |
Definition at line 729 of file CoreParserFunctions.php.
References MediaWiki\Parser\Parser\getTargetLanguage().
|
static |
| Parser | $parser | |
| string | null | $raw |
Definition at line 693 of file CoreParserFunctions.php.
References MediaWiki\Parser\Parser\getTargetLanguage().
|
static |
| Parser | $parser | |
| string | null | $raw |
Definition at line 702 of file CoreParserFunctions.php.
References MediaWiki\Parser\Parser\getTargetLanguage().
|
static |
Unicode-safe str_pad with the restriction that $length is forced to be <= 500.
| Parser | $parser | |
| string | $string | |
| string | $length | |
| string | $padding | |
| int | $direction |
Definition at line 1303 of file CoreParserFunctions.php.
References MediaWiki\Parser\Parser\killMarkers().
|
static |
| Parser | $parser | |
| string | $string | |
| string | $length | |
| string | $padding |
Definition at line 1343 of file CoreParserFunctions.php.
|
static |
| Parser | $parser | |
| string | $string | |
| string | $length | |
| string | $padding |
Definition at line 1354 of file CoreParserFunctions.php.
|
static |
Get the pageid of a specified page.
| Parser | $parser | |
| string | null | $title | Title to get the pageid from |
Definition at line 1633 of file CoreParserFunctions.php.
References MediaWiki\Parser\Parser\getOutput(), MediaWiki\Parser\Parser\getTitle(), and MediaWiki\Parser\Parser\incrementExpensiveFunctionCount().
|
static |
Functions to get and normalize pagenames, corresponding to the magic words of the same names.
| Parser | $parser | |
| string | null | $title |
Definition at line 902 of file CoreParserFunctions.php.
References wfEscapeWikiText().
|
static |
| Parser | $parser | |
| string | null | $title |
Definition at line 915 of file CoreParserFunctions.php.
References wfEscapeWikiText().
|
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.
| Parser | $parser | |
| string | $name | |
| string | $arg1 | |
| string | $arg2 |
Definition at line 1089 of file CoreParserFunctions.php.
References $magicWords, MediaWiki\Parser\Parser\getContentLanguage(), MediaWiki\MediaWikiServices\getInstance(), MediaWiki\Parser\Parser\getMagicWordFactory(), MediaWiki\Parser\Parser\getTargetLanguage(), MediaWiki\Parser\Parser\incrementExpensiveFunctionCount(), and NS_CATEGORY.
|
static |
| Parser | $parser | |
| string | $namespace | |
| string | null | $raw |
Definition at line 761 of file CoreParserFunctions.php.
References MediaWiki\Parser\Parser\getTargetLanguage().
|
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.
| Parser | $parser | |
| string | $page | Name of page to check (Default: empty string) |
| string | null | $raw | Should number be human readable with commas or just number |
Definition at line 1156 of file CoreParserFunctions.php.
References MediaWiki\Parser\Parser\getTargetLanguage().
|
static |
| Parser | $parser | |
| string | $text | |
| string | ...$forms What to output for each number (singular, dual, plural, etc.) |
Definition at line 526 of file CoreParserFunctions.php.
References MediaWiki\Parser\Parser\getTargetLanguage().
|
static |
Returns the requested protection expiry for the current page.
This is an expensive parser function and can't be called too many times per page, unless the protection levels/expiries for the given title have already been retrieved
| Parser | $parser | |
| string | $type | |
| string | $title |
Definition at line 1209 of file CoreParserFunctions.php.
References MediaWiki\MediaWikiServices\getInstance(), MediaWiki\Parser\Parser\getTitle(), and MediaWiki\Parser\Parser\incrementExpensiveFunctionCount().
|
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/expiries for the given title have already been retrieved
| Parser | $parser | |
| string | $type | |
| string | $title |
Definition at line 1185 of file CoreParserFunctions.php.
References MediaWiki\MediaWikiServices\getInstance(), MediaWiki\Parser\Parser\getTitle(), and MediaWiki\Parser\Parser\incrementExpensiveFunctionCount().
|
static |
| Parser | $parser | |
| ServiceOptions | $options |
Definition at line 58 of file CoreParserFunctions.php.
References MediaWiki\MainConfigNames\AllowDisplayTitle, MediaWiki\MainConfigNames\AllowSlowParserFunctions, MediaWiki\Parser\Parser\setFunctionHook(), MediaWiki\Parser\Parser\SFH_NO_HASH, and MediaWiki\Parser\Parser\SFH_OBJECT_ARGS.
|
static |
Get the day from the last revision of a specified page.
| Parser | $parser | |
| string | null | $title | Title to get the day from |
Definition at line 1788 of file CoreParserFunctions.php.
|
static |
Get the day with leading zeros from the last revision of a specified page.
| Parser | $parser | |
| string | null | $title | Title to get the day from |
Definition at line 1805 of file CoreParserFunctions.php.
|
static |
Get the id from the last revision of a specified page.
| Parser | $parser | |
| string | null | $title | Title to get the id from |
Definition at line 1683 of file CoreParserFunctions.php.
References MediaWiki\Parser\Parser\getOptions(), MediaWiki\Parser\Parser\getOutput(), MediaWiki\Parser\Parser\getRevisionId(), MediaWiki\Parser\Parser\getRevisionRecordObject(), and MediaWiki\Parser\Parser\getTitle().
|
static |
Get the month with leading zeros from the last revision of a specified page.
| Parser | $parser | |
| string | null | $title | Title to get the month from |
Definition at line 1822 of file CoreParserFunctions.php.
|
static |
Get the month from the last revision of a specified page.
| Parser | $parser | |
| string | null | $title | Title to get the month from |
Definition at line 1839 of file CoreParserFunctions.php.
|
static |
Get the timestamp from the last revision of a specified page.
| Parser | $parser | |
| string | null | $title | Title to get the timestamp from |
Definition at line 1873 of file CoreParserFunctions.php.
|
static |
Get the user from the last revision of a specified page.
| Parser | $parser | |
| string | null | $title | Title to get the user from |
Definition at line 1890 of file CoreParserFunctions.php.
References MediaWiki\Parser\Parser\getOutput(), MediaWiki\Parser\Parser\getRevisionUser(), and MediaWiki\Parser\Parser\getTitle().
|
static |
Get the year from the last revision of a specified page.
| Parser | $parser | |
| string | null | $title | Title to get the year from |
Definition at line 1856 of file CoreParserFunctions.php.
|
static |
| Parser | $parser | |
| string | null | $title |
Definition at line 980 of file CoreParserFunctions.php.
References wfEscapeWikiText().
|
static |
| Parser | $parser | |
| string | null | $title |
Definition at line 993 of file CoreParserFunctions.php.
References wfEscapeWikiText(), and wfUrlencode().
|
static |
| Parser | $parser | |
| string | $text |
Definition at line 1374 of file CoreParserFunctions.php.
References NS_SPECIAL.
|
static |
| Parser | $parser | |
| string | $text |
Definition at line 1392 of file CoreParserFunctions.php.
References wfUrlencode().
|
static |
| Parser | $parser | |
| string | null | $title |
Definition at line 1058 of file CoreParserFunctions.php.
References wfEscapeWikiText().
|
static |
| Parser | $parser | |
| string | null | $title |
Definition at line 1071 of file CoreParserFunctions.php.
References wfEscapeWikiText().
|
static |
| Parser | $parser | |
| string | null | $title |
Definition at line 874 of file CoreParserFunctions.php.
|
static |
| Parser | $parser | |
| string | null | $title |
Definition at line 887 of file CoreParserFunctions.php.
References wfUrlencode().
|
static |
| Parser | $parser | |
| string | null | $title |
Definition at line 954 of file CoreParserFunctions.php.
References wfEscapeWikiText().
|
static |
| Parser | $parser | |
| string | null | $title |
Definition at line 967 of file CoreParserFunctions.php.
References wfEscapeWikiText().
|
static |
Parser function to extension tag adaptor.
| Parser | $parser | |
| PPFrame | $frame | |
| PPNode[] | $args |
Definition at line 1488 of file CoreParserFunctions.php.
References MediaWiki\Parser\Parser\extensionSubstitution(), MediaWiki\Parser\Parser\getStripList(), MediaWiki\Parser\Parser\getStripState(), MediaWiki\Parser\Parser\killMarkers(), and MediaWiki\Parser\Parser\tagNeedsNowikiStrippedInTagPF().
|
static |
| Parser | $parser | |
| string | null | $title |
Definition at line 1032 of file CoreParserFunctions.php.
References wfEscapeWikiText().
|
static |
| Parser | $parser | |
| string | null | $title |
Definition at line 1045 of file CoreParserFunctions.php.
References wfEscapeWikiText().
|
static |
| Parser | $parser | |
| string | null | $title |
Definition at line 848 of file CoreParserFunctions.php.
|
static |
| Parser | $parser | |
| string | null | $title |
Definition at line 861 of file CoreParserFunctions.php.
References wfUrlencode().
|
static |
| Parser | $parser | |
| string | $s |
Definition at line 290 of file CoreParserFunctions.php.
References MediaWiki\Parser\Parser\getContentLanguage(), and MediaWiki\Parser\Parser\markerSkipCallback().
|
static |
| Parser | $parser | |
| string | $s |
Definition at line 272 of file CoreParserFunctions.php.
References MediaWiki\Parser\Parser\getContentLanguage().
|
static |
urlencodes a string according to one of three patterns: (T24474)
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 '_',
| Parser | $parser | |
| string | $s | The text to encode. |
| string | null | $arg | (optional): The type of encoding. |
Definition at line 230 of file CoreParserFunctions.php.
References $magicWords, MediaWiki\Parser\Parser\getMagicWordFactory(), and MediaWiki\Parser\Parser\killMarkers().
|
static |
| string | $func | |
| string | $s | |
| string | null | $arg |
Definition at line 375 of file CoreParserFunctions.php.
References MediaWiki\Deferred\LinksUpdate\CategoryLinksTable\makeTitle(), NS_FILE, and NS_MEDIA.
| const MediaWiki\Parser\CoreParserFunctions::REGISTER_OPTIONS |
Definition at line 45 of file CoreParserFunctions.php.