Wikibase
MediaWiki Wikibase extension
|
Public Member Functions | |
getFullUrl (EntityId $id) | |
Always returns the full URL. | |
getLinkUrl (EntityId $id) | |
Get a URL that's the simplest URL that will be valid to link, locally, to the current Entity. | |
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\SourceAndTypeDispatchingUrlLookup, and Wikibase\Lib\Store\TitleLookupBasedEntityUrlLookup.
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\Lib\Store\SourceAndTypeDispatchingUrlLookup, Wikibase\Lib\Store\TitleLookupBasedEntityUrlLookup, and Wikibase\Repo\FederatedProperties\ApiEntityUrlLookup.