summaryrefslogtreecommitdiff
path: root/po/underlays/directives/ikiwiki/directive/template.de.po
blob: bd23344b3b03048c94abf13a7b664dcdd2c5c498 (plain)
  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.
  5. msgid ""
  6. msgstr ""
  7. "POT-Creation-Date: 2011-05-05 20:04+0300\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"
  11. "Language: \n"
  12. "MIME-Version: 1.0\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"
  16. #. type: Plain text
  17. msgid ""
  18. "The `template` directive is supplied by the [[!iki plugins/template "
  19. "desc=template]] plugin."
  20. msgstr ""
  21. "Die `template`-Anweisung wird durch die [[!iki plugins/template "
  22. "desc=template]]-Erweiterung bereitgestellt."
  23. #. type: Plain text
  24. msgid ""
  25. "The template directive allows wiki pages to be used as templates. These "
  26. "templates can be filled out and inserted into other pages in the wiki using "
  27. "the directive. The [[templates]] page lists templates that can be used with "
  28. "this directive."
  29. msgstr ""
  30. #. type: Plain text
  31. #, fuzzy
  32. #| msgid ""
  33. #| "[[Templates]] are files that can be filled out and inserted into pages in "
  34. #| "the wiki, by using the template directive. The directive has an `id` "
  35. #| "parameter that identifies the template to use. The remaining parameters "
  36. #| "are used to fill out the template."
  37. msgid ""
  38. "The directive has an `id` parameter that identifies the template to use. The "
  39. "remaining parameters are used to fill out the template."
  40. msgstr ""
  41. "[[Vorlagen|templates]] sind Dateien, die ausgefüllt und in Wiki-Seiten "
  42. "eingefügt werden können, indem die template-Anweisung verwendet wird. Die "
  43. "Anweisung hat einen `id`-Parameter, der die zu verwendende Vorlage "
  44. "identifiziert. Die restlichen Parameter werden verwendet, um die Vorlage "
  45. "auszufüllen."
  46. #. type: Title ##
  47. #, fuzzy, no-wrap
  48. #| msgid "Example:"
  49. msgid "Example"
  50. msgstr "Beispiel:"
  51. #. type: Plain text
  52. #, no-wrap
  53. msgid "\t\\[[!template id=note text=\"\"\"Here is the text to insert into my note.\"\"\"]]\n"
  54. msgstr "\t\\[[!template id=note text=\"\"\"Hier ist der Text, der in meine Notiz eingefügt werden soll.\"\"\"]]\n"
  55. #. type: Plain text
  56. msgid ""
  57. "This fills out the `note` template, filling in the `text` field with the "
  58. "specified value, and inserts the result into the page."
  59. msgstr ""
  60. "Dies füllt die Vorlage `note` aus, wobei das Feld `text` mit dem angegebenen "
  61. "Wert gefüllt wird, und fügt das Ergebnis in die Seite ein."
  62. #. type: Title ##
  63. #, no-wrap
  64. msgid "Using a template"
  65. msgstr ""
  66. #. type: Plain text
  67. msgid ""
  68. "Generally, a value can include any markup that would be allowed in the wiki "
  69. "page outside the template. Triple-quoting the value even allows quotes to be "
  70. "included in it. Combined with multi-line quoted values, this allows for "
  71. "large chunks of marked up text to be embedded into a template:"
  72. msgstr ""
  73. #. type: Plain text
  74. #, no-wrap
  75. msgid " \\[[!template id=foo name=\"Sally\" color=\"green\" age=8 notes=\"\"\"\n"
  76. msgstr ""
  77. #. type: Bullet: ' * '
  78. msgid "\\[[Charley]]'s sister."
  79. msgstr ""
  80. #. type: Bullet: ' * '
  81. msgid "\"I want to be an astronaut when I grow up.\""
  82. msgstr ""
  83. #. type: Bullet: ' * '
  84. msgid "Really 8 and a half."
  85. msgstr ""
  86. #. type: Title ##
  87. #, no-wrap
  88. msgid "Creating a template"
  89. msgstr ""
  90. #. type: Plain text
  91. msgid ""
  92. "The template is a regular wiki page, located in the `templates/` "
  93. "subdirectory inside the source directory of the wiki."
  94. msgstr ""
  95. #. type: Plain text
  96. msgid ""
  97. "Alternatively, templates can be stored in a directory outside the wiki, as "
  98. "files with the extension \".tmpl\". By default, these are searched for in `/"
  99. "usr/share/ikiwiki/templates`, the `templatedir` setting can be used to make "
  100. "another directory be searched first. When referring to templates outside "
  101. "the wiki source directory, the \"id\" parameter is not interpreted as a "
  102. "pagespec, and you must include the full filename of the template page, "
  103. "including the \".tmpl\" extension. E.g.:"
  104. msgstr ""
  105. #. type: Plain text
  106. #, no-wrap
  107. msgid " \\[[!template id=blogpost.tmpl]]\n"
  108. msgstr ""
  109. #. type: Plain text
  110. msgid ""
  111. "The template uses the syntax used by the [[!cpan HTML::Template]] perl "
  112. "module, which allows for some fairly complex things to be done. Consult its "
  113. "documentation for the full syntax, but all you really need to know are a few "
  114. "things:"
  115. msgstr ""
  116. #. type: Bullet: '* '
  117. msgid ""
  118. "Each parameter you pass to the template directive will generate a template "
  119. "variable. There are also some pre-defined variables like PAGE and BASENAME."
  120. msgstr ""
  121. #. type: Bullet: '* '
  122. msgid ""
  123. "To insert the value of a variable, use `<TMPL_VAR variable>`. Wiki markup in "
  124. "the value will first be converted to html."
  125. msgstr ""
  126. #. type: Bullet: '* '
  127. msgid ""
  128. "To insert the raw value of a variable, with wiki markup not yet converted to "
  129. "html, use `<TMPL_VAR raw_variable>`."
  130. msgstr ""
  131. #. type: Bullet: '* '
  132. msgid ""
  133. "To make a block of text conditional on a variable being set use `<TMPL_IF "
  134. "variable>text</TMPL_IF>`."
  135. msgstr ""
  136. #. type: Bullet: '* '
  137. msgid ""
  138. "To use one block of text if a variable is set and a second if it's not, use "
  139. "`<TMPL_IF variable>text<TMPL_ELSE>other text</TMPL_IF>`"
  140. msgstr ""
  141. #. type: Plain text
  142. msgid "Here's a sample template:"
  143. msgstr ""
  144. #. type: Plain text
  145. #, no-wrap
  146. msgid ""
  147. " <span class=\"infobox\">\n"
  148. " Name: \\[[<TMPL_VAR raw_name>]]<br />\n"
  149. " Age: <TMPL_VAR age><br />\n"
  150. " <TMPL_IF color>\n"
  151. " Favorite color: <TMPL_VAR color><br />\n"
  152. " <TMPL_ELSE>\n"
  153. " No favorite color.<br />\n"
  154. " </TMPL_IF>\n"
  155. " <TMPL_IF notes>\n"
  156. " <hr />\n"
  157. " <TMPL_VAR notes>\n"
  158. " </TMPL_IF>\n"
  159. " </span>\n"
  160. msgstr ""
  161. #. type: Plain text
  162. msgid ""
  163. "The filled out template will be formatted the same as the rest of the page "
  164. "that contains it, so you can include WikiLinks and all other forms of wiki "
  165. "markup in the template. Note though that such WikiLinks will not show up as "
  166. "backlinks to the page that uses the template."
  167. msgstr ""
  168. #. type: Plain text
  169. msgid ""
  170. "Note the use of \"raw_name\" inside the [[ikiwiki/WikiLink]] generator in "
  171. "the example above. This ensures that if the name contains something that "
  172. "might be mistaken for wiki markup, it's not converted to html before being "
  173. "processed as a [[ikiwiki/WikiLink]]."
  174. msgstr ""
  175. #. type: Plain text
  176. #, no-wrap
  177. msgid "[[!meta robots=\"noindex, follow\"]]\n"
  178. msgstr "[[!meta robots=\"noindex, follow\"]]\n"
  179. #~ msgid ""
  180. #~ "For a list of available templates, and details about how to create more, "
  181. #~ "see the [[templates]] page."
  182. #~ msgstr ""
  183. #~ "Auf der [[Vorlagen|templates]]-Seite gibt es eine Liste der verfügbaren "
  184. #~ "Vorlagen und auch eine Anleitung, wie weitere angelegt werden können."