Looking through the licenses for extensions installed on enwiki, the following are missing detailed license information:
- RevisionSlider (no license file)
- TwoColConflict (no license file)
- UniversalLanguageSelector (multiple license files
, none named how MW expects. MW only also supports 1 file) - QuickSurveys (no license file)
- ParsoidBatchAPI (no license file)
- RelatedArticles (no license file)
- FancyCaptcha (license file is in parent ConfirmEdit folder)
- CodeMirror (no license file)
- Timeless (no license file)
For the result, see, eg, https://en.wikipedia.org/wiki/Special:Version/License/Timeless - "No detailed license information was found for this extension."
This is due to MW not finding a COPYING or LICENSE file in the extension root:
public static function getExtLicenseFileName( $extDir ) { if ( !$extDir ) { return false; } foreach ( scandir( $extDir ) as $file ) { $fullPath = $extDir . DIRECTORY_SEPARATOR . $file; if ( preg_match( '/^((COPYING)|(LICENSE))(\.txt)?$/', $file ) && is_readable( $fullPath ) && is_file( $fullPath ) ) { return $fullPath; } } return false; }
Depending on the actual files that exist for the listed extensions:
- MW should support more filenames
- Add a license file where one is missing to the extension folder
- Rename the license file inside the extension to match where appropriate so MediaWiki can detect and read it