Extension:LicenseByCategory
From WikiEducator
| LicenseByCategory Release status: stable | |
|---|---|
| Implementation | User interface |
| Description | Changes the license in the header and footer when special CC-BY, CC0, or PD categories are detected. |
| Author(s) | JimTittslerTalk |
| Last Version | 2.0 (2026-01-24) |
| MediaWiki | >=1.35 |
| License | GPL2 |
| Download | git [1] |
What does this extension do?
The LicenseByCategory extension allows the page author to change the license in the header and footer of the page when the special CC-BY, CC0 or PD categories are detected.
Usage
Mark pages that should not get the default CC-BY-SA license with the appropriate category tag.
Example:
[[Category:CC-BY]]
Installation
- Install the extension from git.
- git checkout master
- Add the line
require_once("$IP/extensions/licensebycategory/LicenseByCategory.php");to your LocalSettings.php file. - Optionally apply the OutputPage.php.patch so that only a single license line is added to the header.