Wikibase
MediaWiki Wikibase extension
Wikibase\Lib\Formatters\WikiLinkWikitextFormatter Class Reference

Formats the StringValue from a snak as an Wikitext link. More...

+ Inheritance diagram for Wikibase\Lib\Formatters\WikiLinkWikitextFormatter:
+ Collaboration diagram for Wikibase\Lib\Formatters\WikiLinkWikitextFormatter:

Public Member Functions

 __construct ( $namespace)
 
 format ( $value)
 

Private Attributes

 $namespace
 

Detailed Description

Formats the StringValue from a snak as an Wikitext link.

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lib\Formatters\WikiLinkWikitextFormatter::__construct (   $namespace)
Parameters
int$namespacenamespace to be used to format the link

Member Function Documentation

◆ format()

Wikibase\Lib\Formatters\WikiLinkWikitextFormatter::format (   $value)
See also
ValueFormatter::format

Formats the given page title as an Wikitext link

Parameters
StringValue$valueThe page title to be turned into a link
Exceptions
InvalidArgumentException
Returns
string Wikitext external link

Member Data Documentation

◆ $namespace

Wikibase\Lib\Formatters\WikiLinkWikitextFormatter::$namespace
private

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