Version: 2007-02-15
Status: New
This is a talk page for improving Licenses.
You can also create a creative commons licence this way[1]
(:comment The default licence:)
[[#include]]
(:div179 class='frame' style='width:24em; font-size:x-small;':)
%rel="license"
lfloat%[[http://creativecommons.org/licenses/by-nc-nd/3.0/nz/|
http://i.creativecommons.org/l/by-nc-nd/3.0/nz/88x31.png"Creative Commons
License"]]
These works are licensed under a Creative Commons
%rel="license"%[[http://creativecommons.org/licenses/by-nc-nd/3.0/nz/ |
Attribution-Noncommercial-No Derivative Works[[<<]]3.0 New Zealand
License]].
(:div179end:)
[[#includeend]]
|
|
I am looking into putting a more complete CC license into my wiki, which include several non-standard attributes that allow for Semantic web information. The license text if you get it from CC, looks as follows:
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/us/">
<img alt="Creative Commons License" style="border-width:0" src="
" /></a>
<span xmlns:dc="http://purl.org/dc/elements/1.1/" href="http://purl.org/dc/dcmitype/Text" property="dc:title"
rel="dc:type">Tamara Temple’s Wiki</span>
by <a xmlns:cc="http://creativecommons.org/ns#" href="http://wiki.tamaratemple.com/?n=Profiles.tamara"
property="cc:attributionName" rel="cc:attributionURL">Tamara Temple</a>
is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/us/">
Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License</a>.
Based on a work at
<a xmlns:dc="http://purl.org/dc/elements/1.1/" href="http://wiki.tamaratemple.com" rel="dc:source">wiki.tamaratemple.com</a>.
As you can see, there are a few non-standard attributes:
In the first <span>, xmns:dc and property.
In the second <a>, xmlns:cc and property.
In the fourth and last <a>, xmlns:dc.
There are at least a couple of ways to go about this:
- Do like licenses.php does and provide a single markup expression that will gather the necessary information and build the html code:
(:cclicense type=licensetype attribname="Tamara Temple" attriblink="http://wiki.tamaratemple.com/Profiles/Tamara" workname="wiki.tamaratemple.com" worklink="http://wiki.tamaratemple.com/":)
- Set up a wikistyle for links and spans and add the attributes for each to that, in a recipe or in config.php
%xmlns:dc="http://purl.org/dc/elements/1.1/" href="http://purl.org/dc/dcmitype/Text" property="dc:title"
rel="dc:type"% Tamara Temple’s Wiki%%
I have no idea if you can set an attribute for xmlns:dc via setting $WikiStyleCSS[]="xmlns:dc". It appears putting:
## Add WikiStyleCSS attributes for above:
$WikiStyleCSS[]="xmlns:dc";
$WikiStyleCSS[]="property";
$WikiStyleCSS[]="href";
$WikiStyleCSS[]="xmlns:cc";
into config.php does not do the trick, I'm guessing because of the ":" in xmlns:dc and xmlns:cc.
tamouse July 07, 2011, at 06:32 PM