[pmwiki-users] Creative Commons

Patrick R. Michaud pmichaud at pobox.com
Fri Sep 2 15:28:36 CDT 2005

On Fri, Sep 02, 2005 at 03:54:15PM -0400, DaveG wrote:
> Just in case it wasn't clear, what I'd like to do is incorporate the 
> code below to that it's rendered normally, rather than being displayed 
> as actual text which is what happens when I simply paste into the 
> SideBar. I realize why it's not rendered (prevent people injecting 
> malicious code), but I wonder if there's not a variable I could assign 
> the code-snippet to attach it to the SideBar.

Do you really want/need all of the <rdf:elements> that are in the
bottom part of the code?  They're all embedded within an HTML comment, which
means they aren't displayed anyway.

For the visible stuff, you can put the following at the bottom of your
SideBar page (it's a little long):

%rel=license% [[http://creativecommons.org/licenses/by-nc-sa/2.5/ | http://creativecommons.org/images/public/somerights20.gif"Creative Commons License"]]
This work is licensed under a %rel=license% [[http://creativecommons.org/licenses/by-nc-sa/2.5/ | Creative Commons Attribution-NonCommercial-ShareAlike 2.5 License]]

You can see the effect of this markup at (and copy/paste it from)
http://www.pmwiki.org/wiki/Test/CCLicense .

Or perhaps we come up with a "(:cclicense by-nc-sa:)" recipe that 
allows one to select the license and it automatically generates 
the appropriate HTML code.


More information about the pmwiki-users mailing list