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