Date: Sat, 10 Sep 2005 21:42:11 +0100 Mime-Version: 1.0 (Produced by PhpWiki 1.3.11) X-Rcs-Id: $Id: Help%2FTemplatePlugin,v 1.1 2005-11-21 22:19:00 rurban Exp $ Content-Type: application/x-phpwiki; pagename=Help%2FTemplatePlugin; pgsrc_version="1 $Revision: 1.1 $"; flags=""; markup=2; charset=iso-8859-1 Content-Transfer-Encoding: binary !! Synopsis Template = Parametrized blocks. Include text from a wiki page and replace certain placeholders by parameters. Similiar to CreatePage with the template argument, but at run-time. Similiar to the mediawiki templates but not with the "|" parameter seperator. !! Usage {{Templates/Film|title=SomeFilm|year=1999}} !! Plugin Arguments Argument| Default Value| Description page| (empty)| pagename to be included as template vars| (empty)| optional parameters to be expanded inside the template ! Parameter expansion: vars="var1=value1&var2=value2" We only support named parameters, not numbered ones as in mediawiki, and the placeholder is %%var%% and not {{~{var~}}} as in mediawiki. The following predefined variables are automatically expanded if existing: pagename mtime - last modified date + time ctime - creation date + time author - last author owner creator - first author SERVER_URL, DATA_PATH, SCRIPT_NAME, PHPWIKI_BASE_URL and BASE_URL .. is stripped ! In work: * ENABLE_MARKUP_TEMPLATE = true: (lib/InlineParser.php) Support a mediawiki-style syntax extension which maps {{TemplateFilm|title=Some Good Film|year=1999}} to !! Examples Standard syntax: Shorter syntax: {{TemplateExample|title=TestTitle}} ------------- PhpWikiDocumentation Help:WikiPlugin