]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - locale/de/pgsrc/Hilfe%2FVorlagePlugin
ENABLE_MARKUP_TEMPLATE removed, it had to be true so that Wikicreole syntax for image...
[SourceForge/phpwiki.git] / locale / de / pgsrc / Hilfe%2FVorlagePlugin
1 Date: Sat, 17 Oct 2009 17:03:32 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.3.13)
3 X-Rcs-Id: $Id$
4 Content-Type: application/x-phpwiki;
5   pagename=Hilfe%2FVorlagePlugin;
6   flags="";
7   markup=2;
8   charset=utf-8
9 Content-Transfer-Encoding: binary
10
11 === Synopsis
12
13 Vorlage = Parametrische Blöcke.
14
15 Include text from a wiki page and replace certain placeholders by parameters.
16 Similiar to CreatePage with the template argument, but at run-time.
17
18 Similiar to the mediawiki templates but not with the "|" parameter seperator. 
19 Note: The mediawiki syntax is also supported.
20
21 === Usage
22 {{{
23   <<Template page=Template/Footer>>
24
25   <<Template page=Template/Film vars="title=SomeFilm&year=1999" >>
26
27   {{Template/Film|title=SomeFilm|year=1999}}
28 }}}
29
30 === Plugin Argumente
31 Argument|
32   Vorgabewert|
33     Beschreibung
34
35 page|
36   (empty)|
37     pagename to be included as template
38
39 vars|
40   (empty)|
41     optional parameters to be expanded inside the template
42
43 ==== Parameter expansion:
44   vars="var1=value1&var2=value2"
45
46 We only support named parameters, not numbered ones as in mediawiki, and 
47 the placeholder is %%var%% and not {{~{var~}}} as in mediawiki.
48
49 The following predefined variables are automatically expanded if existing:
50 {{{
51   pagename
52   mtime     - last modified date + time
53   ctime     - creation date + time
54   author    - last author
55   owner     
56   creator   - first author
57   SERVER_URL, DATA_PATH, SCRIPT_NAME, PHPWIKI_BASE_URL and BASE_URL
58 }}}
59
60 <noinclude> .. </noinclude> is stripped
61
62 ==== In work:
63   Support a mediawiki-style syntax extension which maps 
64 {{{
65     {{Template/Film|title=Some Good Film|year=1999}}
66 }}}
67   to 
68 {{{
69     <<Template page=Template/Film vars="title=Some Good Film&year=1999" >>
70 }}}
71
72 === Examples
73
74 {{{
75   <<Template page=Vorlage/Beispiel vars="title=TestTitle" >>
76 }}}
77
78 Standard syntax:
79   <<Template page=Vorlage/Beispiel vars="title=TestTitle" >>
80
81 Shorter syntax:
82   {{Vorlage/Beispiel|title=TestTitel}}
83
84 -------------
85 PhpWikiDokumentation Hilfe:WikiPlugin