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: 2011-05-05 20:04+0300\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. When referring to templates outside "
109 "the wiki source directory, the \"id\" parameter is not interpreted as a "
110 "pagespec, and you must include the full filename of the template page, "
111 "including the \".tmpl\" extension. E.g.:"
116 msgid " \\[[!template id=blogpost.tmpl]]\n"
121 "The template uses the syntax used by the [[!cpan HTML::Template]] perl "
122 "module, which allows for some fairly complex things to be done. Consult its "
123 "documentation for the full syntax, but all you really need to know are a few "
127 #. type: Bullet: '* '
129 "Each parameter you pass to the template directive will generate a template "
130 "variable. There are also some pre-defined variables like PAGE and BASENAME."
133 #. type: Bullet: '* '
135 "To insert the value of a variable, use `<TMPL_VAR variable>`. Wiki markup in "
136 "the value will first be converted to html."
139 #. type: Bullet: '* '
141 "To insert the raw value of a variable, with wiki markup not yet converted to "
142 "html, use `<TMPL_VAR raw_variable>`."
145 #. type: Bullet: '* '
147 "To make a block of text conditional on a variable being set use `<TMPL_IF "
148 "variable>text</TMPL_IF>`."
151 #. type: Bullet: '* '
153 "To use one block of text if a variable is set and a second if it's not, use "
154 "`<TMPL_IF variable>text<TMPL_ELSE>other text</TMPL_IF>`"
158 msgid "Here's a sample template:"
164 " <span class=\"infobox\">\n"
165 " Name: \\[[<TMPL_VAR raw_name>]]<br />\n"
166 " Age: <TMPL_VAR age><br />\n"
168 " Favorite color: <TMPL_VAR color><br />\n"
170 " No favorite color.<br />\n"
174 " <TMPL_VAR notes>\n"
181 "The filled out template will be formatted the same as the rest of the page "
182 "that contains it, so you can include WikiLinks and all other forms of wiki "
183 "markup in the template. Note though that such WikiLinks will not show up as "
184 "backlinks to the page that uses the template."
189 "Note the use of \"raw_name\" inside the [[ikiwiki/WikiLink]] generator in "
190 "the example above. This ensures that if the name contains something that "
191 "might be mistaken for wiki markup, it's not converted to html before being "
192 "processed as a [[ikiwiki/WikiLink]]."
197 msgid "[[!meta robots=\"noindex, follow\"]]\n"
198 msgstr "[[!meta robots=\"noindex, follow\"]]\n"