diff --git a/includes/InformationWidget.php b/includes/InformationWidget.php index 8e2d3a4..bdfb34f 100644 --- a/includes/InformationWidget.php +++ b/includes/InformationWidget.php @@ -76,14 +76,14 @@ class InformationWidget { foreach ($dataMap as $information) { if ($information['type'] === 'pair') { $stringBuilder[] = $information['label'] . $sep . - Utils::makeParagraph($parser->recursiveTagParse($information['text'], $frame), false, true); + Utils::makeParagraph($information['text'], false, true); } } return [implode('', $stringBuilder), 'markerType' => 'nowiki']; } public static function buildTable(\Parser $parser, \PPFrame $frame, array $dataMap, $title, $picture, $float) { - + } /** diff --git a/includes/Widgets.php b/includes/Widgets.php index 5b9cd5b..5cd102a 100644 --- a/includes/Widgets.php +++ b/includes/Widgets.php @@ -27,6 +27,8 @@ class Widgets { $parser->setHook('details', [Html5Widget::class, 'createDetails']); $parser->setHook('summary', [Html5Widget::class, 'createSummary']); + $parser->setFunctionHook('information', [InformationWidget::class, 'create'], SFH_OBJECT_ARGS); + return true; }