]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - locale/de/pgsrc/Hilfe%2FVorlagePlugin
Activated Id Revision substitution for Subversion
[SourceForge/phpwiki.git] / locale / de / pgsrc / Hilfe%2FVorlagePlugin
1 Date: Tue, 2 Jan 2007 13:30:17 +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   pgsrc_version="1 $Revision$";
7   flags="";
8   markup=2;
9   charset=iso-8859-1
10 Content-Transfer-Encoding: binary
11
12 !! Synopsis
13
14 Vorlage = Parametrische Blöcke.
15
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.
18
19 Similiar to the mediawiki templates but not with the "|" parameter seperator. 
20 Note: The mediawiki syntax is also supported.
21
22 !! Usage
23 <verbatim>
24   <?plugin Template page=Template/Footer?>
25
26   <?plugin Template page=Template/Film vars="title=SomeFilm&year=1999" ?>
27
28   {{Template/Film|title=SomeFilm|year=1999}}
29 </verbatim>
30
31 !! Plugin Argumente
32 Argument|
33   Vorgabewert|
34     Beschreibung
35
36 page|
37   (empty)|
38     pagename to be included as template
39
40 vars|
41   (empty)|
42     optional parameters to be expanded inside the template
43
44 ! Parameter expansion:
45   vars="var1=value1&var2=value2"
46
47 We only support named parameters, not numbered ones as in mediawiki, and 
48 the placeholder is %%var%% and not {{~{var~}}} as in mediawiki.
49
50 The following predefined variables are automatically expanded if existing:
51 <verbatim>
52   pagename
53   mtime     - last modified date + time
54   ctime     - creation date + time
55   author    - last author
56   owner     
57   creator   - first author
58   SERVER_URL, DATA_PATH, SCRIPT_NAME, PHPWIKI_BASE_URL and BASE_URL
59 </verbatim>
60
61 <noinclude> .. </noinclude> is stripped
62
63 ! In work:
64 * ENABLE_MARKUP_TEMPLATE = true: (lib/InlineParser.php)
65   Support a mediawiki-style syntax extension which maps 
66 <verbatim>
67     {{Template/Film|title=Some Good Film|year=1999}}
68 </verbatim>
69   to 
70 <verbatim>
71     <?plugin Template page=Template/Film vars="title=Some Good Film&year=1999" ?>
72 </verbatim>
73
74 !! Examples
75
76 <verbatim>
77   <?plugin Template page=Vorlage/Beispiel vars="title=TestTitle" ?>
78 </verbatim>
79
80 Standard syntax:
81   <?plugin Template page=Vorlage/Beispiel vars="title=TestTitle" ?>
82
83 Shorter syntax:
84   {{Vorlage/Beispiel|title=TestTitel}}
85
86 -------------
87 PhpWikiDokumentation Hilfe:WikiPlugin