]> sipb.mit.edu Git - ikiwiki.git/blob - doc/plugins/contrib/default_content_for___42__copyright__42___and___42__license__42__.mdwn
response
[ikiwiki.git] / doc / plugins / contrib / default_content_for___42__copyright__42___and___42__license__42__.mdwn
1 [[!template id=plugin name=copyright author="[[tschwinge]]"]]
2 [[!template id=plugin name=license author="[[tschwinge]]"]]
3
4 [[!meta title="default content for *copyright* and *license*"]]
5
6 Someone was just asking for it and I had written these two plugins already some months ago,
7 so I'm now publishing them here.
8
9 <http://www.schwinge.homeip.net/~thomas/tmp/copyright.pm>
10 <http://www.schwinge.homeip.net/~thomas/tmp/license.pm>
11
12 --[[tschwinge]]
13
14 I was asking about this in IRC the other day, but someone pointed me at the
15 [[Varioki|todo/varioki_--_add_template_variables___40__with_closures_for_values__41___in_ikiwiki.setup]]
16 plugin. It seems to me that it would be a better idea to have a way of defining
17 template variables in general, rather than having to add a new plugin for every
18 template variable somebody wants to use.
19
20 --[[bma]]
21
22 Copyright and license values are not "template values", they are values
23 tracked by the [[meta]] plugin, and that various code compares and uses to fill
24 out the templates. Something like varioki cannot do that. --[[Joey]]
25
26 Somewhat more detailed usage documentation would be appreciated. I tried to setup
27 those plugins with a current ikiwiki release, i.e. 2.61, but they appeared to do
28 nothing, really. Also, those example pages don't seem to use those plugins, even;
29 they set "copyright" and "license" properties using ordinary [[meta]] tags. Maybe
30 I'm missing something terribly obvious? --Peter
31 > Only obvious if you read the source :-). You need to put a file named "copyright.html"
32 >(respectively "license.html") in your wiki. Everything underneath that (in the wikilink sense) will use that
33 >content for the license or copyright. Saves putting \[[meta license="foo"]] in every page [[DavidBremner]]