]> sipb.mit.edu Git - ikiwiki.git/blob - po/underlays/directives/ikiwiki/directive/template.da.po
Merge remote branch 'intrigeri/po'
[ikiwiki.git] / po / underlays / directives / ikiwiki / directive / template.da.po
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
23 #. type: Plain text
24 msgid ""
25 "The `template` directive is supplied by the [[!iki plugins/template "
26 "desc=template]] plugin."
27 msgstr ""
28
29 #. type: Plain text
30 msgid ""
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 "
34 "this directive."
35 msgstr ""
36
37 #. type: Plain text
38 msgid ""
39 "The directive has an `id` parameter that identifies the template to use. The "
40 "remaining parameters are used to fill out the template."
41 msgstr ""
42
43 #. type: Title ##
44 #, fuzzy, no-wrap
45 #| msgid "Example:"
46 msgid "Example"
47 msgstr "Eksempel:"
48
49 #. type: Plain text
50 #, no-wrap
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"
53
54 #. type: Plain text
55 msgid ""
56 "This fills out the `note` template, filling in the `text` field with the "
57 "specified value, and inserts the result into the page."
58 msgstr ""
59 "Dette udfylder `note`-skabelonen, med `text`-feltet udfyldt med den angivne "
60 "værdi, og indsætter resultatet på siden."
61
62 #. type: Title ##
63 #, no-wrap
64 msgid "Using a template"
65 msgstr ""
66
67 #. type: Plain text
68 msgid ""
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:"
73 msgstr ""
74
75 #. type: Plain text
76 #, no-wrap
77 msgid "        \\[[!template id=foo name=\"Sally\" color=\"green\" age=8 notes=\"\"\"\n"
78 msgstr ""
79
80 #. type: Bullet: '        * '
81 msgid "\\[[Charley]]'s sister."
82 msgstr ""
83
84 #. type: Bullet: '        * '
85 msgid "\"I want to be an astronaut when I grow up.\""
86 msgstr ""
87
88 #. type: Bullet: '        * '
89 msgid "Really 8 and a half."
90 msgstr ""
91
92 #. type: Title ##
93 #, no-wrap
94 msgid "Creating a template"
95 msgstr ""
96
97 #. type: Plain text
98 msgid ""
99 "The template is a regular wiki page, located in the `templates/` "
100 "subdirectory inside the source directory of the wiki."
101 msgstr ""
102
103 #. type: Plain text
104 msgid ""
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.)"
109 msgstr ""
110
111 #. type: Plain text
112 msgid ""
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 "
116 "things:"
117 msgstr ""
118
119 #. type: Bullet: '* '
120 msgid ""
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."
123 msgstr ""
124
125 #. type: Bullet: '* '
126 msgid ""
127 "To insert the value of a variable, use `<TMPL_VAR variable>`. Wiki markup in "
128 "the value will first be converted to html."
129 msgstr ""
130
131 #. type: Bullet: '* '
132 msgid ""
133 "To insert the raw value of a variable, with wiki markup not yet converted to "
134 "html, use `<TMPL_VAR raw_variable>`."
135 msgstr ""
136
137 #. type: Bullet: '* '
138 msgid ""
139 "To make a block of text conditional on a variable being set use `<TMPL_IF "
140 "variable>text</TMPL_IF>`."
141 msgstr ""
142
143 #. type: Bullet: '* '
144 msgid ""
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>`"
147 msgstr ""
148
149 #. type: Plain text
150 msgid "Here's a sample template:"
151 msgstr ""
152
153 #. type: Plain text
154 #, no-wrap
155 msgid ""
156 "        <span class=\"infobox\">\n"
157 "        Name: \\[[<TMPL_VAR raw_name>]]<br />\n"
158 "        Age: <TMPL_VAR age><br />\n"
159 "        <TMPL_IF color>\n"
160 "        Favorite color: <TMPL_VAR color><br />\n"
161 "        <TMPL_ELSE>\n"
162 "        No favorite color.<br />\n"
163 "        </TMPL_IF>\n"
164 "        <TMPL_IF notes>\n"
165 "        <hr />\n"
166 "        <TMPL_VAR notes>\n"
167 "        </TMPL_IF>\n"
168 "        </span>\n"
169 msgstr ""
170
171 #. type: Plain text
172 msgid ""
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."
177 msgstr ""
178
179 #. type: Plain text
180 msgid ""
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]]."
185 msgstr ""
186
187 #. type: Plain text
188 #, no-wrap
189 msgid "[[!meta robots=\"noindex, follow\"]]\n"
190 msgstr "[[!meta robots=\"noindex, follow\"]]\n"