Extension:LicenseByCategory

From WikiEducator
Jump to: navigation, search
Manual on MediaWiki Extensions
List of MediaWiki Extensions
Crystal Clear action run.png
LicenseByCategory

Release status: beta

Implementation User interface
Description Changes the license in header and footer when special CC-BY, CC0, or PD categories detected.
Author(s) JimTittslerTalk
Last Version 1.0 (2011-05-31)
MediaWiki 1.15.5 with patch
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.