mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-13 17:53:09 +00:00
Document generated CSS classes
Change-Id: Id4bc9bfbffb278372f2e234861ad521db6d43643
This commit is contained in:
parent
fc5d0bb6a8
commit
71c52196f0
|
@ -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(),
|
||||
|
|
|
@ -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 ] );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue