|
|
|
@ -14,7 +14,7 @@ class ExtraFontWidget {
|
|
|
|
|
$existsFonts = [];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$content = $text = $parser->recursiveTagParseFully($text, $frame);
|
|
|
|
|
$content = $text = trim($parser->recursiveTagParseFully($text, $frame));
|
|
|
|
|
if (empty($params['name'])) {
|
|
|
|
|
return '<span class="error">' . wfMessage('isekai-font-error-invalid-params')->parse() . '</span>' . $content;
|
|
|
|
|
}
|
|
|
|
@ -35,11 +35,8 @@ class ExtraFontWidget {
|
|
|
|
|
}
|
|
|
|
|
$fontId = $existsFonts[$fontName];
|
|
|
|
|
|
|
|
|
|
return [
|
|
|
|
|
Html::rawElement('span', [
|
|
|
|
|
return Html::openElement('span', [
|
|
|
|
|
'class' => 'isekai-extra-font font-' . $fontId,
|
|
|
|
|
], $content),
|
|
|
|
|
"markerType" => 'nowiki'
|
|
|
|
|
];
|
|
|
|
|
]) . $content . Html::closeElement('span');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|