Wikibase
MediaWiki Wikibase extension
|
A formatter for exclusive use on client wikis. More...
Public Member Functions | |
__construct (EntityTitleLookup $entityTitleLookup, LabelDescriptionLookup $labelLookup) | |
formatEntityId (EntityId $entityId) | |
Private Attributes | |
$entityTitleLookup | |
$labelLookup | |
A formatter for exclusive use on client wikis.
It expects an entity ID and returns a wikitext snippet, containing a link to a local page as specified by the relevant sitelink, labeled with the label in the local (or a fallback) language. Both the sitelink and the label are optional.
Wikibase\Lib\Formatters\EntityIdSiteLinkFormatter::__construct | ( | EntityTitleLookup | $entityTitleLookup, |
LabelDescriptionLookup | $labelLookup ) |
Wikibase\Lib\Formatters\EntityIdSiteLinkFormatter::formatEntityId | ( | EntityId | $entityId | ) |
EntityId | $entityId |
Implements Wikibase\DataModel\Services\EntityId\EntityIdFormatter.
|
private |
|
private |