1 Date: Sat, 2 Aug 2008 14:15:24 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.3.14-20080124)
3 X-Rcs-Id: $Id: Help%2FTemplatePlugin,v 1.4 2008-08-03 16:46:12 vargenau Exp $
4 Content-Type: application/x-phpwiki;
5 pagename=Help%2FTemplatePlugin;
9 Content-Transfer-Encoding: binary
11 Template = Parametrized blocks.
13 Include text from a wiki page and replace certain placeholders by parameters.
14 Similiar to [CreatePage] with the template argument, but at run-time.
15 Similiar to the Mediawiki templates but not with the "|" parameter seperator.
20 <?plugin Template page=Templates/Footer?>
21 <?plugin Template page=Templates/Film vars="title=SomeFilm&year=1999" ?>
22 {{Templates/Film|title=SomeFilm|year=1999}}
25 If ENABLE_MARKUP_TEMPLATE is true, we support a Mediawiki-style syntax extension which maps
27 {{TemplateFilm|title=Some Good Film|year=1999}}
31 <?plugin Template page=TemplateFilm vars="title=Some Good Film&year=1999" ?>
42 pagename to be included as template
46 optional parameters to be expanded inside the template
48 !! Parameter expansion
50 vars="var1=value1&var2=value2"
52 We only support named parameters, not numbered ones as in Mediawiki, and
53 the placeholder is %%var%% and not ~{~{~{var~}~}~} as in Mediawiki.
55 The following predefined variables are automatically expanded if existing:
61 last modified date + time
92 <noinclude> .. </noinclude> is stripped.
94 <includeonly> .. </includeonly> is only expanded in pages using the template, not in the template itself.
100 <?plugin Template page=TemplateExample vars="title=TestTitle" ?>
105 {{TemplateExample|title=TestTitle}}
109 [PhpWikiDocumentation] [CategoryWikiPlugin]