1 # German translation of directives/ikiwiki/directive/template page for ikiwiki.
2 # Copyright © 2010 Sebastian Kuhnert <mail@sebastian-kuhnert.de>
3 # Redistribution and use in source and compiled forms, with or without
4 # modification, are permitted under any circumstances. No warranty.
7 "POT-Creation-Date: 2010-07-18 22:29+0000\n"
8 "PO-Revision-Date: 2010-03-14 14:09+0530\n"
9 "Last-Translator: Sebastian Kuhnert <mail@sebastian-kuhnert.de>\n"
10 "Language-Team: None\n"
13 "Content-Type: text/plain; charset=UTF-8\n"
14 "Content-Transfer-Encoding: 8bit\n"
15 "Plural-Forms: nplurals=2; plural=n != 1;\n"
19 "The `template` directive is supplied by the [[!iki plugins/template "
20 "desc=template]] plugin."
22 "Die `template`-Anweisung wird durch die [[!iki plugins/template "
23 "desc=template]]-Erweiterung bereitgestellt."
27 "The template directive allows wiki pages to be used as templates. These "
28 "templates can be filled out and inserted into other pages in the wiki using "
29 "the directive. The [[templates]] page lists templates that can be used with "
36 #| "[[Templates]] are files that can be filled out and inserted into pages in "
37 #| "the wiki, by using the template directive. The directive has an `id` "
38 #| "parameter that identifies the template to use. The remaining parameters "
39 #| "are used to fill out the template."
41 "The directive has an `id` parameter that identifies the template to use. The "
42 "remaining parameters are used to fill out the template."
44 "[[Vorlagen|templates]] sind Dateien, die ausgefüllt und in Wiki-Seiten "
45 "eingefügt werden können, indem die template-Anweisung verwendet wird. Die "
46 "Anweisung hat einen `id`-Parameter, der die zu verwendende Vorlage "
47 "identifiziert. Die restlichen Parameter werden verwendet, um die Vorlage "
58 msgid "\t\\[[!template id=note text=\"\"\"Here is the text to insert into my note.\"\"\"]]\n"
59 msgstr "\t\\[[!template id=note text=\"\"\"Hier ist der Text, der in meine Notiz eingefügt werden soll.\"\"\"]]\n"
63 "This fills out the `note` template, filling in the `text` field with the "
64 "specified value, and inserts the result into the page."
66 "Dies füllt die Vorlage `note` aus, wobei das Feld `text` mit dem angegebenen "
67 "Wert gefüllt wird, und fügt das Ergebnis in die Seite ein."
71 msgid "Using a template"
76 "Generally, a value can include any markup that would be allowed in the wiki "
77 "page outside the template. Triple-quoting the value even allows quotes to be "
78 "included in it. Combined with multi-line quoted values, this allows for "
79 "large chunks of marked up text to be embedded into a template:"
84 msgid " \\[[!template id=foo name=\"Sally\" color=\"green\" age=8 notes=\"\"\"\n"
87 #. type: Bullet: ' * '
88 msgid "\\[[Charley]]'s sister."
91 #. type: Bullet: ' * '
92 msgid "\"I want to be an astronaut when I grow up.\""
95 #. type: Bullet: ' * '
96 msgid "Really 8 and a half."
101 msgid "Creating a template"
106 "The template is a regular wiki page, located in the `templates/` "
107 "subdirectory inside the source directory of the wiki."
112 "(Alternatively, templates can be stored in a directory outside the wiki, as "
113 "files with the extension \".tmpl\". By default, these are searched for in `/"
114 "usr/share/ikiwiki/templates`; the `templatedir` setting can be used to make "
115 "another directory be searched first.)"
120 "The template uses the syntax used by the [[!cpan HTML::Template]] perl "
121 "module, which allows for some fairly complex things to be done. Consult its "
122 "documentation for the full syntax, but all you really need to know are a few "
126 #. type: Bullet: '* '
128 "Each parameter you pass to the template directive will generate a template "
129 "variable. There are also some pre-defined variables like PAGE and BASENAME."
132 #. type: Bullet: '* '
134 "To insert the value of a variable, use `<TMPL_VAR variable>`. Wiki markup in "
135 "the value will first be converted to html."
138 #. type: Bullet: '* '
140 "To insert the raw value of a variable, with wiki markup not yet converted to "
141 "html, use `<TMPL_VAR raw_variable>`."
144 #. type: Bullet: '* '
146 "To make a block of text conditional on a variable being set use `<TMPL_IF "
147 "variable>text</TMPL_IF>`."
150 #. type: Bullet: '* '
152 "To use one block of text if a variable is set and a second if it's not, use "
153 "`<TMPL_IF variable>text<TMPL_ELSE>other text</TMPL_IF>`"
157 msgid "Here's a sample template:"
163 " <span class=\"infobox\">\n"
164 " Name: \\[[<TMPL_VAR raw_name>]]<br />\n"
165 " Age: <TMPL_VAR age><br />\n"
167 " Favorite color: <TMPL_VAR color><br />\n"
169 " No favorite color.<br />\n"
173 " <TMPL_VAR notes>\n"
180 "The filled out template will be formatted the same as the rest of the page "
181 "that contains it, so you can include WikiLinks and all other forms of wiki "
182 "markup in the template. Note though that such WikiLinks will not show up as "
183 "backlinks to the page that uses the template."
188 "Note the use of \"raw_name\" inside the [[ikiwiki/WikiLink]] generator in "
189 "the example above. This ensures that if the name contains something that "
190 "might be mistaken for wiki markup, it's not converted to html before being "
191 "processed as a [[ikiwiki/WikiLink]]."
196 msgid "[[!meta robots=\"noindex, follow\"]]\n"
197 msgstr "[[!meta robots=\"noindex, follow\"]]\n"
200 #~ "For a list of available templates, and details about how to create more, "
201 #~ "see the [[templates]] page."
203 #~ "Auf der [[Vorlagen|templates]]-Seite gibt es eine Liste der verfügbaren "
204 #~ "Vorlagen und auch eine Anleitung, wie weitere angelegt werden können."