/**
  * @see EntityView::getMainHtml
  *
  * @param EntityRevision $entityRevision
  *
  * @throws InvalidArgumentException
  * @return string HTML
  */
 protected function getMainHtml(EntityRevision $entityRevision)
 {
     $item = $entityRevision->getEntity();
     if (!$item instanceof Item) {
         throw new InvalidArgumentException('$entityRevision must contain an Item.');
     }
     $html = $this->getHtmlForFingerprint($entityRevision) . $this->templateFactory->render('wikibase-toc') . $this->statementSectionsView->getHtml($item->getStatements());
     return $html;
 }
 /**
  * @see EntityView::getMainHtml
  *
  * @param EntityRevision $entityRevision
  *
  * @throws InvalidArgumentException
  * @return string HTML
  */
 protected function getMainHtml(EntityRevision $entityRevision)
 {
     $property = $entityRevision->getEntity();
     if (!$property instanceof Property) {
         throw new InvalidArgumentException('$entityRevision must contain a Property.');
     }
     $html = $this->getHtmlForFingerprint($entityRevision) . $this->templateFactory->render('wikibase-toc') . $this->getHtmlForDataType($property->getDataTypeId()) . $this->statementSectionsView->getHtml($property->getStatements());
     $footer = wfMessage('wikibase-property-footer');
     if (!$footer->isBlank()) {
         $html .= "\n" . $footer->parse();
     }
     return $html;
 }