Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Client\Hooks\NoLangLinkHandler Class Reference

Handles the NOEXTERNALLANGLINKS parser function. More...

Public Member Functions

 __construct (NamespaceChecker $namespaceChecker)
 
 doHandle (Parser $parser, array $langs)
 Parser function.
 

Static Public Member Functions

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.
 

Static Private Member Functions

static newFromGlobalState ()
 

Private Attributes

 $namespaceChecker
 

Detailed Description

Handles the NOEXTERNALLANGLINKS parser function.

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

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Client\Hooks\NoLangLinkHandler::__construct ( NamespaceChecker  $namespaceChecker)

Member Function Documentation

◆ 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
ParserOutput$out
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
Returns
self

◆ 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[]$noexternallanglinksa list of languages to suppress

Member Data Documentation

◆ $namespaceChecker

Wikibase\Client\Hooks\NoLangLinkHandler::$namespaceChecker
private

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