public static function isInfoboxTemplate(Title $title)
 {
     $namespace = $title->getNamespace();
     if ($namespace === NS_TEMPLATE && class_exists('TemplateClassificationController')) {
         $tc = new TemplateClassificationController($title);
         return $tc->isType($tc::TEMPLATE_INFOBOX) || TemplateDraftHelper::isTitleDraft($title);
     }
     return false;
 }
 /**
  * Checks if the template (Title object) is marked by human as infobox
  * @param Title $title
  * @return bool
  */
 public function isMarkedAsInfobox(Title $title)
 {
     $tc = new TemplateClassificationController($title);
     return $tc->isType($tc::TEMPLATE_INFOBOX);
 }