Actual implementations of various functions to access Wikibase functionality through Scribunto.
More...
Actual implementations of various functions to access Wikibase functionality through Scribunto.
Functions in here can depend on the target language.
- Copyright
- GPL-2.0-or-later
- Author
- Jens Ohlig < jens..nosp@m.ohli.nosp@m.g@wik.nosp@m.imed.nosp@m.ia.de >
-
Marius Hoch < hoo@o.nosp@m.nlin.nosp@m.e.de >
◆ __construct()
- Parameters
-
EntityIdParser | $entityIdParser | |
FallbackLabelDescriptionLookup | $labelDescriptionLookup | |
- Note
- label usage is not tracked in $usageAccumulator. This should be done inside the $labelDescriptionLookup or an underlying TermsLookup.
◆ getDescription()
Wikibase\Client\DataAccess\Scribunto\WikibaseLanguageDependentLuaBindings::getDescription |
( |
|
$prefixedEntityId | ) |
|
- Parameters
-
- Returns
- string[]|null[] Array containing description, description language code. Null for both, if entity couldn't be found/ no description present.
◆ getLabel()
Wikibase\Client\DataAccess\Scribunto\WikibaseLanguageDependentLuaBindings::getLabel |
( |
|
$prefixedEntityId | ) |
|
- Parameters
-
- Returns
- string[]|null[] Array containing label, label language code. Null for both, if entity couldn't be found/ no label present.
◆ $entityIdParser
Wikibase\Client\DataAccess\Scribunto\WikibaseLanguageDependentLuaBindings::$entityIdParser |
|
private |
◆ $labelDescriptionLookup
Wikibase\Client\DataAccess\Scribunto\WikibaseLanguageDependentLuaBindings::$labelDescriptionLookup |
|
private |
The documentation for this class was generated from the following file: