mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-15 10:59:56 +00:00
Merge "Use div for references in section preview"
This commit is contained in:
commit
bf3df3fce6
|
@ -1163,11 +1163,15 @@ class Cite {
|
|||
}
|
||||
}
|
||||
if ( $isSectionPreview && $s !== '' ) {
|
||||
$text .= "\n"
|
||||
. '<span class="mw-ext-cite-cite_section_preview_references" >'
|
||||
. "<h2>" . wfMessage( 'cite_section_preview_references' )->escaped() . "</h2>"
|
||||
. $s
|
||||
. '</span>';
|
||||
// provide a preview of references in its own section
|
||||
$text .= "\n" . '<div class="mw-ext-cite-cite_section_preview_references" >';
|
||||
$headerMsg = wfMessage( 'cite_section_preview_references' );
|
||||
if ( !$headerMsg->isDisabled() ) {
|
||||
$text .= '<h2 id="mw-ext-cite-cite_section_preview_references_header" >'
|
||||
. $headerMsg->escaped()
|
||||
. '</h2>';
|
||||
}
|
||||
$text .= $s . '</div>';
|
||||
} else {
|
||||
$text .= $s;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue