Recent Changes - Search:

Cookbook

PmWiki

pmwiki.org

Licenses

Summary: Markup to display licensing info on pages
Version: 2007-02-15
Prerequisites: PmWiki 2.0
Status: New
Maintainer: Pm
Categories: Markup

Questions answered by this recipe

How can I allow authors to display a Creative Commons license in pages?

Description

This recipe enables a (:license:) markup, which allows authors to embed common licensing links (such as Creative Commons licenses) into pages.

To install the recipe, simply download licenses.phpΔ into the cookbook/ directory, and then add the line below to a local customization file:

    include_once('cookbook/licenses.php');

Once installed, the recipe enables the (:license:) markup, which can be used to display a variety of licenses based on its parameter:

(:license by-nc-nd:)   CC Attribution Non-commercial No Derivatives
(:license by-nc-sa:)   CC Attribution Non-commercial Share Alike
(:license by-nc:)      CC Attribution Non-commercial
(:license by-nd:)      CC Attribution No Derivatives
(:license by-sa:)      CC Attribution Share Alike
(:license by:)         CC Attribution
(:license pd:)         Public Domain
(:license:)            site default license, configured by $LicenseDefault
Example 1
(:license by-nc-sa:)
Creative Commons License

WikiStyles can be used to alter the appearance and behavior of the directive, thus

Example 2
%rframe newwin% (:license pd:)
Public Domain Dedication

Notes

History

  • 2007-03-07: This version is for the new creative license 3.0. It also ads nice 80X15px buttons when entering the code. You can see the button at http://wiki.fali.nl Not sure if I could remove the other one. licenses30.phpΔ Lighans
  • 2007-02-15: Corrected bug with 'pd' license. Allow either uppercase or lowercase specifications.

Comments

  • It would also be nice if the recipe included links to other licenses, e.g. different GPL and BSD. chr

See Also

Contributors

Edit - History - Print - Recent Changes - Search
Page last modified on March 07, 2007, at 03:35 AM