Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\View\EntityTermsView Interface Reference

Generates HTML to display the terms of an entity. More...

+ Inheritance diagram for Wikibase\View\EntityTermsView:

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'
 

Detailed Description

Generates HTML to display the terms of an entity.

Author
Adrian Heine adria.nosp@m.n.he.nosp@m.ine@w.nosp@m.ikim.nosp@m.edia..nosp@m.de

Member Function Documentation

◆ getHtml()

Wikibase\View\EntityTermsView::getHtml ( $mainLanguageCode,
TermList $labels,
TermList $descriptions,
?AliasGroupList $aliasGroups = null,
?EntityId $entityId = null )
Parameters
string$mainLanguageCodeDesired 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$entityIdthe id of the entity
Returns
string HTML

Implemented in Wikibase\Repo\ParserOutput\PlaceholderEmittingEntityTermsView, Wikibase\Repo\ParserOutput\TermboxView, and Wikibase\View\SimpleEntityTermsView.

◆ getTitleHtml()

Wikibase\View\EntityTermsView::getTitleHtml ( ?EntityId $entityId)
Parameters
EntityId | null$entityId
Returns
string HTML

Implemented in Wikibase\Repo\ParserOutput\TermboxView, and Wikibase\View\SimpleEntityTermsView.

Member Data Documentation

◆ TERMS_EDIT_SPECIAL_PAGE

const Wikibase\View\EntityTermsView::TERMS_EDIT_SPECIAL_PAGE = 'SetLabelDescriptionAliases'

The documentation for this interface was generated from the following file: