summaryrefslogtreecommitdiff
path: root/po/underlays/directives/ikiwiki/directive/template.da.po
blob: 25c5413250092953b56f52194cd7a7a23a4fc5df (plain)
  1. # Danish translation of directives/ikiwiki/directive/template page for ikiwiki.
  2. # Copyright (C) 2008-2009 Jonas Smedegaard <dr@jones.dk>
  3. # This file is distributed under the same license as the ikiwiki package.
  4. # Jonas Smedegaard <dr@jones.dk>, 2008.
  5. #
  6. msgid ""
  7. msgstr ""
  8. "Project-Id-Version: ikiwiki 3.15\n"
  9. "Report-Msgid-Bugs-To: \n"
  10. "POT-Creation-Date: 2010-07-18 22:29+0000\n"
  11. "PO-Revision-Date: 2009-07-23 00:06+0200\n"
  12. "Last-Translator: Jonas Smedegaard <dr@jones.dk>\n"
  13. "Language-Team: None\n"
  14. "Language: \n"
  15. "MIME-Version: 1.0\n"
  16. "Content-Type: text/plain; charset=UTF-8\n"
  17. "Content-Transfer-Encoding: 8bit\n"
  18. "Plural-Forms: nplurals=2; plural=(n != 1);\n"
  19. "X-Poedit-Language: Danish\n"
  20. "X-Poedit-Country: DENMARK\n"
  21. "X-Poedit-SourceCharset: utf-8\n"
  22. #. type: Plain text
  23. msgid ""
  24. "The `template` directive is supplied by the [[!iki plugins/template "
  25. "desc=template]] plugin."
  26. msgstr ""
  27. #. type: Plain text
  28. msgid ""
  29. "The template directive allows wiki pages to be used as templates. These "
  30. "templates can be filled out and inserted into other pages in the wiki using "
  31. "the directive. The [[templates]] page lists templates that can be used with "
  32. "this directive."
  33. msgstr ""
  34. #. type: Plain text
  35. msgid ""
  36. "The directive has an `id` parameter that identifies the template to use. The "
  37. "remaining parameters are used to fill out the template."
  38. msgstr ""
  39. #. type: Title ##
  40. #, fuzzy, no-wrap
  41. #| msgid "Example:"
  42. msgid "Example"
  43. msgstr "Eksempel:"
  44. #. type: Plain text
  45. #, no-wrap
  46. msgid "\t\\[[!template id=note text=\"\"\"Here is the text to insert into my note.\"\"\"]]\n"
  47. msgstr "\t\\[[!template id=note text=\"\"\"Her er teksten til at sætte ind i min note.\"\"\"]]\n"
  48. #. type: Plain text
  49. msgid ""
  50. "This fills out the `note` template, filling in the `text` field with the "
  51. "specified value, and inserts the result into the page."
  52. msgstr ""
  53. "Dette udfylder `note`-skabelonen, med `text`-feltet udfyldt med den angivne "
  54. "værdi, og indsætter resultatet på siden."
  55. #. type: Title ##
  56. #, no-wrap
  57. msgid "Using a template"
  58. msgstr ""
  59. #. type: Plain text
  60. msgid ""
  61. "Generally, a value can include any markup that would be allowed in the wiki "
  62. "page outside the template. Triple-quoting the value even allows quotes to be "
  63. "included in it. Combined with multi-line quoted values, this allows for "
  64. "large chunks of marked up text to be embedded into a template:"
  65. msgstr ""
  66. #. type: Plain text
  67. #, no-wrap
  68. msgid " \\[[!template id=foo name=\"Sally\" color=\"green\" age=8 notes=\"\"\"\n"
  69. msgstr ""
  70. #. type: Bullet: ' * '
  71. msgid "\\[[Charley]]'s sister."
  72. msgstr ""
  73. #. type: Bullet: ' * '
  74. msgid "\"I want to be an astronaut when I grow up.\""
  75. msgstr ""
  76. #. type: Bullet: ' * '
  77. msgid "Really 8 and a half."
  78. msgstr ""
  79. #. type: Title ##
  80. #, no-wrap
  81. msgid "Creating a template"
  82. msgstr ""
  83. #. type: Plain text
  84. msgid ""
  85. "The template is a regular wiki page, located in the `templates/` "
  86. "subdirectory inside the source directory of the wiki."
  87. msgstr ""
  88. #. type: Plain text
  89. msgid ""
  90. "(Alternatively, templates can be stored in a directory outside the wiki, as "
  91. "files with the extension \".tmpl\". By default, these are searched for in `/"
  92. "usr/share/ikiwiki/templates`; the `templatedir` setting can be used to make "
  93. "another directory be searched first.)"
  94. msgstr ""
  95. #. type: Plain text
  96. msgid ""
  97. "The template uses the syntax used by the [[!cpan HTML::Template]] perl "
  98. "module, which allows for some fairly complex things to be done. Consult its "
  99. "documentation for the full syntax, but all you really need to know are a few "
  100. "things:"
  101. msgstr ""
  102. #. type: Bullet: '* '
  103. msgid ""
  104. "Each parameter you pass to the template directive will generate a template "
  105. "variable. There are also some pre-defined variables like PAGE and BASENAME."
  106. msgstr ""
  107. #. type: Bullet: '* '
  108. msgid ""
  109. "To insert the value of a variable, use `<TMPL_VAR variable>`. Wiki markup in "
  110. "the value will first be converted to html."
  111. msgstr ""
  112. #. type: Bullet: '* '
  113. msgid ""
  114. "To insert the raw value of a variable, with wiki markup not yet converted to "
  115. "html, use `<TMPL_VAR raw_variable>`."
  116. msgstr ""
  117. #. type: Bullet: '* '
  118. msgid ""
  119. "To make a block of text conditional on a variable being set use `<TMPL_IF "
  120. "variable>text</TMPL_IF>`."
  121. msgstr ""
  122. #. type: Bullet: '* '
  123. msgid ""
  124. "To use one block of text if a variable is set and a second if it's not, use "
  125. "`<TMPL_IF variable>text<TMPL_ELSE>other text</TMPL_IF>`"
  126. msgstr ""
  127. #. type: Plain text
  128. msgid "Here's a sample template:"
  129. msgstr ""
  130. #. type: Plain text
  131. #, no-wrap
  132. msgid ""
  133. " <span class=\"infobox\">\n"
  134. " Name: \\[[<TMPL_VAR raw_name>]]<br />\n"
  135. " Age: <TMPL_VAR age><br />\n"
  136. " <TMPL_IF color>\n"
  137. " Favorite color: <TMPL_VAR color><br />\n"
  138. " <TMPL_ELSE>\n"
  139. " No favorite color.<br />\n"
  140. " </TMPL_IF>\n"
  141. " <TMPL_IF notes>\n"
  142. " <hr />\n"
  143. " <TMPL_VAR notes>\n"
  144. " </TMPL_IF>\n"
  145. " </span>\n"
  146. msgstr ""
  147. #. type: Plain text
  148. msgid ""
  149. "The filled out template will be formatted the same as the rest of the page "
  150. "that contains it, so you can include WikiLinks and all other forms of wiki "
  151. "markup in the template. Note though that such WikiLinks will not show up as "
  152. "backlinks to the page that uses the template."
  153. msgstr ""
  154. #. type: Plain text
  155. msgid ""
  156. "Note the use of \"raw_name\" inside the [[ikiwiki/WikiLink]] generator in "
  157. "the example above. This ensures that if the name contains something that "
  158. "might be mistaken for wiki markup, it's not converted to html before being "
  159. "processed as a [[ikiwiki/WikiLink]]."
  160. msgstr ""
  161. #. type: Plain text
  162. #, no-wrap
  163. msgid "[[!meta robots=\"noindex, follow\"]]\n"
  164. msgstr "[[!meta robots=\"noindex, follow\"]]\n"