Looking through the licenses for extensions installed on enwiki, the following are missing detailed license information:
[x] RevisionSlider (no license file)
[x] TwoColConflict (no license file)
[] UniversalLanguageSelector (multiple license files, none named how MW expects. MW only also supports 1 file)
[x] QuickSurveys (no license file)
[] ParsoidBatchAPI (no license file)
[x] RelatedArticles (no license file)
[x] FancyCaptcha (license file is in parent ConfirmEdit folder)
[x] CodeMirror (no license file)
[x] 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:
```lang=php
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