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.
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"
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"
25 "The `template` directive is supplied by the [[!iki plugins/template "
26 "desc=template]] plugin."
31 "The template directive allows wiki pages to be used as templates. These "
32 "templates can be filled out and inserted into other pages in the wiki using "
33 "the directive. The [[templates]] page lists templates that can be used with "
39 "The directive has an `id` parameter that identifies the template to use. The "
40 "remaining parameters are used to fill out the template."
51 msgid "\t\\[[!template id=note text=\"\"\"Here is the text to insert into my note.\"\"\"]]\n"
52 msgstr "\t\\[[!template id=note text=\"\"\"Her er teksten til at sætte ind i min note.\"\"\"]]\n"
56 "This fills out the `note` template, filling in the `text` field with the "
57 "specified value, and inserts the result into the page."
59 "Dette udfylder `note`-skabelonen, med `text`-feltet udfyldt med den angivne "
60 "værdi, og indsætter resultatet på siden."
64 msgid "Using a template"
69 "Generally, a value can include any markup that would be allowed in the wiki "
70 "page outside the template. Triple-quoting the value even allows quotes to be "
71 "included in it. Combined with multi-line quoted values, this allows for "
72 "large chunks of marked up text to be embedded into a template:"
77 msgid " \\[[!template id=foo name=\"Sally\" color=\"green\" age=8 notes=\"\"\"\n"
80 #. type: Bullet: ' * '
81 msgid "\\[[Charley]]'s sister."
84 #. type: Bullet: ' * '
85 msgid "\"I want to be an astronaut when I grow up.\""
88 #. type: Bullet: ' * '
89 msgid "Really 8 and a half."
94 msgid "Creating a template"
99 "The template is a regular wiki page, located in the `templates/` "
100 "subdirectory inside the source directory of the wiki."
105 "(Alternatively, templates can be stored in a directory outside the wiki, as "
106 "files with the extension \".tmpl\". By default, these are searched for in `/"
107 "usr/share/ikiwiki/templates`; the `templatedir` setting can be used to make "
108 "another directory be searched first.)"
113 "The template uses the syntax used by the [[!cpan HTML::Template]] perl "
114 "module, which allows for some fairly complex things to be done. Consult its "
115 "documentation for the full syntax, but all you really need to know are a few "
119 #. type: Bullet: '* '
121 "Each parameter you pass to the template directive will generate a template "
122 "variable. There are also some pre-defined variables like PAGE and BASENAME."
125 #. type: Bullet: '* '
127 "To insert the value of a variable, use `<TMPL_VAR variable>`. Wiki markup in "
128 "the value will first be converted to html."
131 #. type: Bullet: '* '
133 "To insert the raw value of a variable, with wiki markup not yet converted to "
134 "html, use `<TMPL_VAR raw_variable>`."
137 #. type: Bullet: '* '
139 "To make a block of text conditional on a variable being set use `<TMPL_IF "
140 "variable>text</TMPL_IF>`."
143 #. type: Bullet: '* '
145 "To use one block of text if a variable is set and a second if it's not, use "
146 "`<TMPL_IF variable>text<TMPL_ELSE>other text</TMPL_IF>`"
150 msgid "Here's a sample template:"
156 " <span class=\"infobox\">\n"
157 " Name: \\[[<TMPL_VAR raw_name>]]<br />\n"
158 " Age: <TMPL_VAR age><br />\n"
160 " Favorite color: <TMPL_VAR color><br />\n"
162 " No favorite color.<br />\n"
166 " <TMPL_VAR notes>\n"
173 "The filled out template will be formatted the same as the rest of the page "
174 "that contains it, so you can include WikiLinks and all other forms of wiki "
175 "markup in the template. Note though that such WikiLinks will not show up as "
176 "backlinks to the page that uses the template."
181 "Note the use of \"raw_name\" inside the [[ikiwiki/WikiLink]] generator in "
182 "the example above. This ensures that if the name contains something that "
183 "might be mistaken for wiki markup, it's not converted to html before being "
184 "processed as a [[ikiwiki/WikiLink]]."
189 msgid "[[!meta robots=\"noindex, follow\"]]\n"
190 msgstr "[[!meta robots=\"noindex, follow\"]]\n"