I want the PerPageLicense extension on humorpedia.miraheze.
Here's the code:
require_once "$IP/extensions/PerPageLicense/PerPageLicense.php"; $wgPerPageLicenseTemplatePage = 'MediaWiki:License-templates'; $wgPerPageLicenseLicenses = array( 'cc-by-nc-sa-2.0' => array( 'url' => 'https://creativecommons.org/licenses/by-nc-sa/2.0/', 'src' => "{$wgStylePath}/common/images/cc-by-nc-sa.png", 'alt' => 'Creative Commons Attribution-NonCommercial-ShareAlike 2.0 Generic License', ), 'cc-by-sa-3.0' => array( 'url' => 'https://creativecommons.org/licenses/by-sa/3.0/', 'src' => "{$wgStylePath}/common/images/cc-by-sa.png", 'alt' => 'Creative Commons Attribution-ShareAlike 3.0 Unported License', ), 'cc-by-sa-4.0' => array( 'url' => 'https://creativecommons.org/licenses/by-sa/4.0/', 'src' => "{$wgStylePath}/common/images/cc-by-sa.png", 'alt' => 'Creative Commons Attribution-ShareAlike 4.0 International License', ), 'cc-by-nc-sa-2.5' => array( 'url' => 'https://creativecommons.org/licenses/by-nc-sa/2.5/', 'src' => "{$wgStylePath}/common/images/cc-by-nc-sa.png", 'alt' => 'Creative Commons Attribution-NonCommercial-ShareAlike 2.5 Generic License', ), 'cc-by-nc-sa-3.0' => array( 'url' => 'https://creativecommons.org/licenses/by-nc-sa/3.0/', 'src' => "{$wgStylePath}/common/images/cc-by-nc-sa.png", 'alt' => 'Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License', 'cc-by-nc-sa-4.0' => array( 'url' => 'https://creativecommons.org/licenses/by-nc-sa/4.0/', 'src' => "{$wgStylePath}/common/images/cc-by-nc-sa.png", 'alt' => 'Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License', ), );
I'm not sure how to do it in a pull request, so I'm requesting it here.