Wikibase
MediaWiki Wikibase extension
|
Generates HTML to display the terms of an entity. More...
Public Member Functions | |
getHtml ( $mainLanguageCode, TermList $labels, TermList $descriptions, ?AliasGroupList $aliasGroups=null, ?EntityId $entityId=null) | |
getTitleHtml (?EntityId $entityId) | |
Public Attributes | |
const | TERMS_EDIT_SPECIAL_PAGE = 'SetLabelDescriptionAliases' |
Generates HTML to display the terms of an entity.
Wikibase\View\EntityTermsView::getHtml | ( | $mainLanguageCode, | |
TermList | $labels, | ||
TermList | $descriptions, | ||
?AliasGroupList | $aliasGroups = null, | ||
?EntityId | $entityId = null ) |
string | $mainLanguageCode | Desired language of the label, description and aliases in the title and header section. Not necessarily identical to the interface language. |
TermList | $labels | |
TermList | $descriptions | |
AliasGroupList | null | $aliasGroups | |
EntityId | null | $entityId | the id of the entity |
Implemented in Wikibase\Repo\ParserOutput\PlaceholderEmittingEntityTermsView, Wikibase\Repo\ParserOutput\TermboxView, and Wikibase\View\SimpleEntityTermsView.
Wikibase\View\EntityTermsView::getTitleHtml | ( | ?EntityId | $entityId | ) |
EntityId | null | $entityId |
Implemented in Wikibase\Repo\ParserOutput\TermboxView, and Wikibase\View\SimpleEntityTermsView.
const Wikibase\View\EntityTermsView::TERMS_EDIT_SPECIAL_PAGE = 'SetLabelDescriptionAliases' |