1 Date: Tue, 2 Jan 2007 13:30:17 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.3.13)
4 Content-Type: application/x-phpwiki;
5 pagename=Hilfe%2FVorlagePlugin;
6 pgsrc_version="1 $Revision$";
10 Content-Transfer-Encoding: binary
14 Vorlage = Parametrische Blöcke.
16 Include text from a wiki page and replace certain placeholders by parameters.
17 Similiar to CreatePage with the template argument, but at run-time.
19 Similiar to the mediawiki templates but not with the "|" parameter seperator.
20 Note: The mediawiki syntax is also supported.
24 <?plugin Template page=Template/Footer?>
26 <?plugin Template page=Template/Film vars="title=SomeFilm&year=1999" ?>
28 {{Template/Film|title=SomeFilm|year=1999}}
38 pagename to be included as template
42 optional parameters to be expanded inside the template
44 ! Parameter expansion:
45 vars="var1=value1&var2=value2"
47 We only support named parameters, not numbered ones as in mediawiki, and
48 the placeholder is %%var%% and not {{~{var~}}} as in mediawiki.
50 The following predefined variables are automatically expanded if existing:
53 mtime - last modified date + time
54 ctime - creation date + time
57 creator - first author
58 SERVER_URL, DATA_PATH, SCRIPT_NAME, PHPWIKI_BASE_URL and BASE_URL
61 <noinclude> .. </noinclude> is stripped
64 * ENABLE_MARKUP_TEMPLATE = true: (lib/InlineParser.php)
65 Support a mediawiki-style syntax extension which maps
67 {{Template/Film|title=Some Good Film|year=1999}}
71 <?plugin Template page=Template/Film vars="title=Some Good Film&year=1999" ?>
77 <?plugin Template page=Vorlage/Beispiel vars="title=TestTitle" ?>
81 <?plugin Template page=Vorlage/Beispiel vars="title=TestTitle" ?>
84 {{Vorlage/Beispiel|title=TestTitel}}
87 PhpWikiDokumentation Hilfe:WikiPlugin