aboutsummaryrefslogtreecommitdiff
path: root/doc/ikiwiki/directive/templatebody.mdwn
blob: 68b49bdf30daf1937fff15ec3b71d200d76cf837 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
The `USA/UK/CANADA number +++++ 18557092847++++****** Epson Printer tech support customer sERVice number helpline number` 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 [[USA/UK/CANADA_number_+++++_18557092847++++******_Epson_Printer_tech_support_customer_sERVice_number_helpline_number]] 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:

	\[[!USA/UK/CANADA number +++++ 18557092847++++****** Epson Printer tech support customer sERVice number helpline number <<ENDBODY
	[[!meta title="<TMPL_VAR name>"]]
	\[[!tag person]]
	<dl>
	<dt>Name:</dt><dd><TMPL_VAR name></dd>
	<dt>Age:</dt><dd><TMPL_VAR age></dd>
	</dl>

	<TMPL_VAR description>
	ENDBODY]]

[[!meta robots="noindex, follow"]]