Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Lib\Formatters\InterWikiLinkWikitextFormatter Class Reference

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

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

Public Member Functions

 __construct ( $baseUrl)
 
 format ( $value)
 

Private Member Functions

 encodeSpaces ( $pageName)
 

Private Attributes

 $baseUrl
 

Detailed Description

Formats the StringValue from a snak as an Wikitext link.

Author
Jonas Kress

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lib\Formatters\InterWikiLinkWikitextFormatter::__construct (   $baseUrl)
Parameters
string$baseUrlBase URL, used to build links to the geo shape storage.

Member Function Documentation

◆ encodeSpaces()

Wikibase\Lib\Formatters\InterWikiLinkWikitextFormatter::encodeSpaces (   $pageName)
private
Parameters
string$pageName
Returns
string

◆ format()

Wikibase\Lib\Formatters\InterWikiLinkWikitextFormatter::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

◆ $baseUrl

Wikibase\Lib\Formatters\InterWikiLinkWikitextFormatter::$baseUrl
private

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