Index: Cite_body.php =================================================================== --- Cite_body.php (revision 114644) +++ Cite_body.php (working copy) @@ -551,6 +551,8 @@ function guardedReferences( $str, $argv, $parser, $group = CITE_DEFAULT_GROUP ) { global $wgAllowCiteGroups; + $style = ''; + $extraClasses = ''; $this->mParser = $parser; if ( isset( $argv['group'] ) && $wgAllowCiteGroups ) { @@ -558,6 +560,21 @@ unset ( $argv['group'] ); } + if ( isset( $argv['class'] ) ) { + $arr = explode ( " ", $argv['class'] ); + foreach ( $arr as &$c ) { + $c = Sanitizer::escapeClass ( $c ); + } + $extraClasses = trim ( implode ( " ", $arr ) ); + unset ( $argv['class'] ); + } + + if ( isset( $argv['style'] ) ) { + $style = ' style="' . $argv['style'] . '"'; + $style = Sanitizer::fixTagAttributes ( $style , 'ol' ); + unset ( $argv['style'] ); + } + if ( strval( $str ) !== '' ) { $this->mReferencesGroup = $group; @@ -601,7 +618,7 @@ } elseif ( count( $argv ) ) { return $this->error( 'cite_error_references_invalid_parameters' ); } else { - $s = $this->referencesFormat( $group ); + $s = $this->referencesFormat( $group , $extraClasses , $style ); if ( $parser->getOptions()->getIsSectionPreview() ) { return $s; } @@ -622,7 +639,7 @@ * * @return string XHTML ready for output */ - function referencesFormat( $group ) { + function referencesFormat( $group , $extraClasses , $extraAttributes ) { if ( ( count( $this->mRefs ) == 0 ) || ( empty( $this->mRefs[$group] ) ) ) { return ''; } @@ -634,7 +651,7 @@ $ent[] = $this->referencesFormatEntry( $k, $v ); } - $prefix = wfMsgForContentNoTrans( 'cite_references_prefix' ); + $prefix = wfMsgForContentNoTrans( 'cite_references_prefix' , $extraClasses , $extraAttributes); $suffix = wfMsgForContentNoTrans( 'cite_references_suffix' ); $content = implode( "\n", $ent ); Index: Cite.i18n.php =================================================================== --- Cite.i18n.php (revision 114644) +++ Cite.i18n.php (working copy) @@ -76,7 +76,7 @@ # Although I could just use # instead of
  • above and nothing here that # will break on input that contains linebreaks - 'cite_references_prefix' => '
      ', + 'cite_references_prefix' => '
        ', 'cite_references_suffix' => '
      ', );