]> sipb.mit.edu Git - ikiwiki.git/blob - po/underlays/directives/ikiwiki/directive/template.da.po
Merge remote-tracking 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: 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"
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.  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.:"
112 msgstr ""
113
114 #. type: Plain text
115 #, no-wrap
116 msgid "    \\[[!template id=blogpost.tmpl]]\n"
117 msgstr ""
118
119 #. type: Plain text
120 msgid ""
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 "
124 "things:"
125 msgstr ""
126
127 #. type: Bullet: '* '
128 msgid ""
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."
131 msgstr ""
132
133 #. type: Bullet: '* '
134 msgid ""
135 "To insert the value of a variable, use `<TMPL_VAR variable>`. Wiki markup in "
136 "the value will first be converted to html."
137 msgstr ""
138
139 #. type: Bullet: '* '
140 msgid ""
141 "To insert the raw value of a variable, with wiki markup not yet converted to "
142 "html, use `<TMPL_VAR raw_variable>`."
143 msgstr ""
144
145 #. type: Bullet: '* '
146 msgid ""
147 "To make a block of text conditional on a variable being set use `<TMPL_IF "
148 "variable>text</TMPL_IF>`."
149 msgstr ""
150
151 #. type: Bullet: '* '
152 msgid ""
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>`"
155 msgstr ""
156
157 #. type: Plain text
158 msgid "Here's a sample template:"
159 msgstr ""
160
161 #. type: Plain text
162 #, no-wrap
163 msgid ""
164 "        <span class=\"infobox\">\n"
165 "        Name: \\[[<TMPL_VAR raw_name>]]<br />\n"
166 "        Age: <TMPL_VAR age><br />\n"
167 "        <TMPL_IF color>\n"
168 "        Favorite color: <TMPL_VAR color><br />\n"
169 "        <TMPL_ELSE>\n"
170 "        No favorite color.<br />\n"
171 "        </TMPL_IF>\n"
172 "        <TMPL_IF notes>\n"
173 "        <hr />\n"
174 "        <TMPL_VAR notes>\n"
175 "        </TMPL_IF>\n"
176 "        </span>\n"
177 msgstr ""
178
179 #. type: Plain text
180 msgid ""
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."
185 msgstr ""
186
187 #. type: Plain text
188 msgid ""
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]]."
193 msgstr ""
194
195 #. type: Plain text
196 #, no-wrap
197 msgid "[[!meta robots=\"noindex, follow\"]]\n"
198 msgstr "[[!meta robots=\"noindex, follow\"]]\n"