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