]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - locale/de/pgsrc/Hilfe%2FVorlagePlugin
Wikicreole syntax for verbatim
[SourceForge/phpwiki.git] / locale / de / pgsrc / Hilfe%2FVorlagePlugin
1 Date: Sun,  5 Jul 2009 21:04:20 +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 * ENABLE_MARKUP_TEMPLATE = true: (lib/InlineParser.php)
64   Support a mediawiki-style syntax extension which maps 
65 {{{
66     {{Template/Film|title=Some Good Film|year=1999}}
67 }}}
68   to 
69 {{{
70     <<Template page=Template/Film vars="title=Some Good Film&year=1999" >>
71 }}}
72
73 === Examples
74
75 {{{
76   <<Template page=Vorlage/Beispiel vars="title=TestTitle" >>
77 }}}
78
79 Standard syntax:
80   <<Template page=Vorlage/Beispiel vars="title=TestTitle" >>
81
82 Shorter syntax:
83   {{Vorlage/Beispiel|title=TestTitel}}
84
85 -------------
86 PhpWikiDokumentation Hilfe:WikiPlugin