Document generated CSS classes

Change-Id: Id4bc9bfbffb278372f2e234861ad521db6d43643
This commit is contained in:
Ed Sanders 2023-11-09 13:03:46 +00:00 committed by DannyS712
parent fc5d0bb6a8
commit 71c52196f0
2 changed files with 6 additions and 0 deletions

View file

@ -102,6 +102,9 @@ class ErrorReporter {
return Html::rawElement(
'span',
[
// The following classes are generated here:
// * mw-ext-cite-warning
// * mw-ext-cite-error
'class' => "$type mw-ext-cite-$type" . $extraClass,
'lang' => $language->getHtmlCode(),
'dir' => $language->getDir(),

View file

@ -155,6 +155,9 @@ class ReferencesFormatter {
if ( isset( $val['dir'] ) ) {
$dir = strtolower( $val['dir'] );
// The following classes are generated here:
// * mw-cite-dir-ltr
// * mw-cite-dir-rtl
$extraAttributes = Html::expandAttributes( [ 'class' => 'mw-cite-dir-' . $dir ] );
}