MediaWiki REL1_39
|
Expansions of core magic variables, used by the parser. More...
Static Public Member Functions | |
static | expand (Parser $parser, string $id, ConvertibleTimestamp $ts, NamespaceInfo $nsInfo, ServiceOptions $svcOptions, LoggerInterface $logger) |
Expand the magic variable given by $index. | |
Expansions of core magic variables, used by the parser.
Definition at line 34 of file CoreMagicVariables.php.
|
static |
Expand the magic variable given by $index.
Parser | $parser | |
string | $id | The name of the variable, and equivalently, the magic word ID which was used to match the variable |
ConvertibleTimestamp | $ts | Timestamp to use when expanding magic variable |
NamespaceInfo | $nsInfo | The NamespaceInfo to use when expanding |
ServiceOptions | $svcOptions | Service options for the parser |
LoggerInterface | $logger |
Definition at line 51 of file CoreMagicVariables.php.
References $title, SiteStats\activeUsers(), SiteStats\articles(), SiteStats\edits(), MediaWiki\Config\ServiceOptions\get(), Parser\getContentLanguage(), Parser\getOptions(), Parser\getOutput(), Parser\getRevisionId(), Parser\getRevisionRecordObject(), Parser\getRevisionSize(), Parser\getRevisionUser(), SpecialVersion\getVersion(), SiteStats\images(), NamespaceInfo\isSubject(), SiteStats\numberingroup(), SiteStats\pages(), SiteStats\users(), wfEscapeWikiText(), and wfUrlencode().