Handles the NOEXTERNALLANGLINKS parser function.
More...
|
static | handle (Parser $parser,... $langs) |
| Parser function.
|
|
static | getNoExternalLangLinks (ParserOutput $out) |
| Get the noexternallanglinks page property from the ParserOutput, which is set by the {{#noexternallanglinks}} parser function.
|
|
static | setNoExternalLangLinks (ParserOutput $out, array $noexternallanglinks) |
| Set the noexternallanglinks page property in the ParserOutput, which is set by the {{#noexternallanglinks}} parser function.
|
|
Handles the NOEXTERNALLANGLINKS parser function.
- Copyright
- GPL-2.0-or-later
- Author
- Nikola Smolenski smole.nosp@m.nsk@.nosp@m.eunet.nosp@m..rs
-
Katie Filbert < aude..nosp@m.wiki.nosp@m.@gmai.nosp@m.l.co.nosp@m.m >
-
Daniel Kinzler
◆ __construct()
Wikibase\Client\Hooks\NoLangLinkHandler::__construct |
( |
NamespaceChecker |
$namespaceChecker | ) |
|
◆ doHandle()
Wikibase\Client\Hooks\NoLangLinkHandler::doHandle |
( |
Parser |
$parser, |
|
|
array |
$langs |
|
) |
| |
Parser function.
- Parameters
-
Parser | $parser | |
string[] | $langs | |
- Returns
- string
◆ getNoExternalLangLinks()
static Wikibase\Client\Hooks\NoLangLinkHandler::getNoExternalLangLinks |
( |
ParserOutput |
$out | ) |
|
|
static |
Get the noexternallanglinks page property from the ParserOutput, which is set by the {{#noexternallanglinks}} parser function.
- Parameters
-
- Returns
- string[] A list of language codes, identifying which repository links to ignore. Empty if {{#noexternallanglinks}} was not used on the page.
◆ handle()
static Wikibase\Client\Hooks\NoLangLinkHandler::handle |
( |
Parser |
$parser, |
|
|
|
$langs |
|
) |
| |
|
static |
Parser function.
- Parameters
-
Parser | $parser | |
| string | ...$langs Language codes or '*' |
◆ newFromGlobalState()
static Wikibase\Client\Hooks\NoLangLinkHandler::newFromGlobalState |
( |
| ) |
|
|
staticprivate |
◆ setNoExternalLangLinks()
static Wikibase\Client\Hooks\NoLangLinkHandler::setNoExternalLangLinks |
( |
ParserOutput |
$out, |
|
|
array |
$noexternallanglinks |
|
) |
| |
|
static |
Set the noexternallanglinks page property in the ParserOutput, which is set by the {{#noexternallanglinks}} parser function.
- Parameters
-
ParserOutput | $out | |
string[] | $noexternallanglinks | a list of languages to suppress |
◆ $namespaceChecker
Wikibase\Client\Hooks\NoLangLinkHandler::$namespaceChecker |
|
private |
The documentation for this class was generated from the following file: