1 Date: Sat, 26 Dec 2020 12:40:06 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.6.0)
3 Content-Type: application/x-phpwiki;
4 pagename=Hilfe%2FVorlagePlugin;
5 flags=PAGE_LOCKED%2CEXTERNAL_PAGE;
7 Content-Transfer-Encoding: binary
9 Mit der **Vorlage** (//Template//) [[Hilfe:WikiPlugin|WikiPlugin]] können Sie Text von einer Wiki-Seite einfügen und bestimmte Platzhalter durch Parameter ersetzen.
11 A template can be seen as a parametrized block. It is similiar to [[CreatePage]] with the template argument, but at run-time.
13 There are two syntaxes to call a template, the usual Phpwiki syntax for plugins, and a more
14 concise syntax similar to Mediawiki templates.
18 === Without parameters ===
22 <<Template page=Footer>>
30 === With parameters ===
34 <<Template page=Film vars="title=SomeFilm&year=1999">>
39 {{Film|title=SomeFilm|year=1999}}
42 === With a specific revision of the page ===
46 <<Template page=somepage rev=5>>
51 {{somepage?version=5}}
63 | pagename to be included as template
64 | //None// (required argument)
67 | optional parameters to be expanded inside the template
72 | most recent revision
75 | just include a named section
79 | when including a named section show the heading
83 === Page to include ===
85 If "Template:$page" exists, it is used.
87 Else, if "Template/$page" exists, it is used.
91 This allows compatibility with Mediawiki that puts templates in the "Template:" namespace.
93 === Parameter expansion ===
95 We only support named parameters, not numbered ones as in Mediawiki, and
96 the placeholder is %%var%% and not ~{~{~{var~}~}~} as in Mediawiki.
99 vars="var1=value1&var2=value2"
102 The following predefined variables are automatically expanded if existing:
112 | last modified date + time
115 | creation date + time
144 ~<noinclude> .. ~</noinclude> is stripped.
146 ~<includeonly> .. ~</includeonly> is only expanded in pages using the template, not in the template itself.
150 [[PhpWikiDokumentation]] [[KategorieWikiPlugin]]