Wikibase
MediaWiki Wikibase extension
|
Public Member Functions | |
getFullUrl (EntityId $id) | |
Always returns the full URL. More... | |
getLinkUrl (EntityId $id) | |
Get a URL that's the simplest URL that will be valid to link, locally, to the current Entity. More... | |
Wikibase\Lib\Store\EntityUrlLookup::getFullUrl | ( | EntityId | $id | ) |
Always returns the full URL.
Example: https://www.wikidata.org/wiki/Property:P123
EntityId | $id |
Implemented in Wikibase\Lib\Store\TitleLookupBasedEntityUrlLookup, and Wikibase\Lib\Store\SourceAndTypeDispatchingUrlLookup.
Wikibase\Lib\Store\EntityUrlLookup::getLinkUrl | ( | EntityId | $id | ) |
Get a URL that's the simplest URL that will be valid to link, locally, to the current Entity.
Example Contexts:
Example Values: /wiki/Property:P123 or similar to getFullUrl()
EntityId | $id |
Implemented in Wikibase\Repo\FederatedProperties\ApiEntityUrlLookup, Wikibase\Lib\Store\TitleLookupBasedEntityUrlLookup, and Wikibase\Lib\Store\SourceAndTypeDispatchingUrlLookup.