From f216f29d8169ef524a6aec7b6ce2e1419faeec53 Mon Sep 17 00:00:00 2001 From: zweistein Date: Sun, 14 Feb 2016 23:39:43 +0100 Subject: +enable-Test --- ikiwiki/directive/templatebody.mdwn | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 ikiwiki/directive/templatebody.mdwn (limited to 'ikiwiki/directive') diff --git a/ikiwiki/directive/templatebody.mdwn b/ikiwiki/directive/templatebody.mdwn new file mode 100644 index 00000000..5e4011a2 --- /dev/null +++ b/ikiwiki/directive/templatebody.mdwn @@ -0,0 +1,33 @@ +[[!if test="enabled(templatebody)" + then="In diesem Wiki ist die Direktive: templatebody **aktiviert**." + else="In diesem Wiki ist die Direktive: templatebody **nicht aktiv**. ; falls dies gewünscht wird, den Admin benachrichtigen."]] + +--- +The `templatebody` directive is supplied by the +[[!iki plugins/templatebody desc=templatebody]] plugin. + +This directive allows wiki pages to be used as templates +for the [[template]] or [[edittemplate]] directive, without having +[[!cpan HTML::Template]] markup interpreted as wiki markup when that +page is built. + +This directive does not produce any output in the wiki page that +defines the template; the rest of that page can be used to to document +how to use the template. + +The first, un-named parameter is the content of the template. +Because templates often contain [[directives|ikiwiki/directive]], it's +convenient to use the "here-document" syntax for it: + + \[[!templatebody < +
Name:
+
Age:
+ + + + ENDBODY]] + +[[!meta robots="noindex, follow"]] -- cgit v1.2.1