Wikibase
MediaWiki Wikibase extension
|
Backend renderer that generates the HTML representation of a statement for use in an entity view. More...
Public Member Functions | |
__construct (TemplateFactory $templateFactory, SnakHtmlGenerator $snakHtmlGenerator, NumberLocalizer $numberLocalizer, LocalizedTextProvider $textProvider) | |
getHtmlForStatement (Statement $statement, $editSectionHtml) | |
Builds and returns the HTML representing a single WikibaseEntity's statement. More... | |
Private Member Functions | |
getHtmlForQualifiers (SnakList $qualifiers) | |
getHtmlForReferences (ReferenceList $referenceList) | |
wrapInListview ( $listviewContent) | |
getHtmlForReference (Reference $reference) | |
getSnaklistviewHtml (array $snaks) | |
getReferencesHeading (Statement $statement) | |
getRankSelector ( $rank) | |
Private Attributes | |
const | RANK_NAMES |
$templateFactory | |
$snakHtmlGenerator | |
$numberLocalizer | |
$referenceHeadings = [] | |
$statementRankSelector = [] | |
$textProvider | |
Backend renderer that generates the HTML representation of a statement for use in an entity view.
Wikibase\View\StatementHtmlGenerator::__construct | ( | TemplateFactory | $templateFactory, |
SnakHtmlGenerator | $snakHtmlGenerator, | ||
NumberLocalizer | $numberLocalizer, | ||
LocalizedTextProvider | $textProvider | ||
) |
|
private |
SnakList | $qualifiers |
|
private |
Reference | $reference |
|
private |
ReferenceList | $referenceList |
Wikibase\View\StatementHtmlGenerator::getHtmlForStatement | ( | Statement | $statement, |
$editSectionHtml | |||
) |
Builds and returns the HTML representing a single WikibaseEntity's statement.
Statement | $statement | |
string | $editSectionHtml | has the html for the edit section |
|
private |
int | $rank |
|
private |
Statement | $statement |
|
private |
Snak[] | $snaks |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |