Extension:LicenseByCategory

From WikiEducator
Jump to: navigation, search
Manual on MediaWiki Extensions
List of MediaWiki Extensions
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

  1. Install the extension from git.
  2. git checkout master
  3. Add the line require_once("$IP/extensions/licensebycategory/LicenseByCategory.php"); to your LocalSettings.php file.
  4. Optionally apply the OutputPage.php.patch so that only a single license line is added to the header.