Extension:LicenceOnUpload

The LicenceOnUpload extension allows adding the licence template by default on Special:Upload.

Installation

 * Create LicenceOnUpload directory in $IP/extensions/
 * Create two files there from section.
 * Edit $IP/includes/specials/SpecialUpload.php
 * Find lines:
 * Comment out (or delete) everything in the else statement.
 * Either:
 * Place the templates that will be shown in the dropdown menu in Category:licence templates with the name of the licence as the sort order.
 * Create $wgLicenceOnUploadList array in your LocalSettings.php, put the licences information there.
 * Create $wgLicenceOnUploadDefault which should be equal to the name of the licence used by default.

Example from LocalSettings.php: