From: This, that and the other Date: Thu, 12 Jan 2017 03:33:59 +0000 (+1100) Subject: Arrange Special:Version/credits into columns and remove space at top X-Git-Tag: 1.31.0-rc.0~4335^2 X-Git-Url: http://git.cyclocoop.org/%27.parametre_url%28%20%20%20generer_action_auteur%28%27charger_plugin%27%2C%20%27update_flux%27%29%2C%27update_flux%27%2C%20%27oui%27%29.%27?a=commitdiff_plain;h=38848e8f4aaabc8a1e7294cfa3a421f2b3563057;p=lhc%2Fweb%2Fwiklou.git Arrange Special:Version/credits into columns and remove space at top Make the long list of names more manageable and readable. Change-Id: I3bb5da73ecf0c46b77a675324dcd62c9c4ea60da --- diff --git a/CREDITS b/CREDITS index d9ff9709f1..b37edf2a36 100644 --- a/CREDITS +++ b/CREDITS @@ -1,10 +1,9 @@ -{{int:version-credits-summary}} - - + +The following list can be found parsed under Special:Version/Credits --> == Contributors == diff --git a/includes/specials/SpecialVersion.php b/includes/specials/SpecialVersion.php index 272f07415f..708eced849 100644 --- a/includes/specials/SpecialVersion.php +++ b/includes/specials/SpecialVersion.php @@ -78,9 +78,16 @@ class SpecialVersion extends SpecialPage { // Now figure out what to do switch ( strtolower( $parts[0] ) ) { case 'credits': + $out->addModuleStyles( 'mediawiki.special.version' ); + $wikiText = '{{int:version-credits-not-found}}'; if ( $extName === 'MediaWiki' ) { $wikiText = file_get_contents( $IP . '/CREDITS' ); + // Put the contributor list into columns + $wikiText = str_replace( + [ '', '' ], + [ '
', '
' ], + $wikiText ); } elseif ( ( $extNode !== null ) && isset( $extNode['path'] ) ) { $file = $this->getExtAuthorsFileName( dirname( $extNode['path'] ) ); if ( $file ) { diff --git a/resources/src/mediawiki.special/mediawiki.special.version.css b/resources/src/mediawiki.special/mediawiki.special.version.css index 5b259e70ab..ebb6b486c9 100644 --- a/resources/src/mediawiki.special/mediawiki.special.version.css +++ b/resources/src/mediawiki.special/mediawiki.special.version.css @@ -18,3 +18,9 @@ th.mw-version-ext-col-label { .mw-version-ext-vcs-version { unicode-bidi: embed; } + +.mw-version-credits { + column-width: 18em; + -moz-column-width: 18em; + -webkit-column-width: 18em; +}