summaryrefslogtreecommitdiff
path: root/ikiwiki/pagespec/attachment.mdwn
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2011-02-11 02:48:57 +0100
committerJonas Smedegaard <dr@jones.dk>2011-02-11 02:48:57 +0100
commit8ca29252c1926e0238cc9c1390541b345877449a (patch)
tree929c93b1c22a16d56d155ec0b1d9cd3c9e9a581d /ikiwiki/pagespec/attachment.mdwn
parent24d0f83d5af8385ad674616632b1b6330be8fa14 (diff)
parentd9c40b97ef32e65677a5b310e95a5804b3ff8fbb (diff)
Merge branch 'da' into HEAD
Diffstat (limited to 'ikiwiki/pagespec/attachment.mdwn')
-rw-r--r--ikiwiki/pagespec/attachment.mdwn50
1 files changed, 25 insertions, 25 deletions
diff --git a/ikiwiki/pagespec/attachment.mdwn b/ikiwiki/pagespec/attachment.mdwn
index fa2bc58..302732f 100644
--- a/ikiwiki/pagespec/attachment.mdwn
+++ b/ikiwiki/pagespec/attachment.mdwn
@@ -1,38 +1,38 @@
[[!meta robots="noindex, follow"]]
[[!if test="enabled(attachment)"
- then="This wiki has attachments **enabled**."
- else="This wiki has attachments **disabled**."]]
+ then="Denne wiki har vedhæftninger **aktiveret**."
+ else="Denne wiki har vedhæftninger **deaktiveret**."]]
-If attachments are enabled, the wiki admin can control what types of
-attachments will be accepted, via the `allowed_attachments`
-configuration setting.
+Hvis vedhæftninger er aktiveret, kan wiki-administratoren styre hvilke typer
+vedhæftninger der vil blive accepteret gennem opsætningsindstillingen
+`allowed_attachments`.
-For example, to limit most users to uploading small images, and nothing else,
-while allowing larger mp3 files to be uploaded by joey into a specific
-directory, and check all attachments for viruses, something like this could be
-used:
+Som eksempel, for at begrænse de fleste brugere til kun at kunne lægge små
+billeder op, og intet andet, mens større mp3-filer må lægges op af joey til
+en bestemt mappe, og alle vedhæftninger checkes for vira, kunne noget i stil
+med dette bruges:
virusfree() and ((user(joey) and podcast/*.mp3 and mimetype(audio/mpeg) and maxsize(15mb)) or (mimetype(image/*) and maxsize(50kb)))
-The regular [[ikiwiki/PageSpec]] syntax is expanded with the following
-additional tests:
+Den normale [[ikiwiki/PageSpec]]-syntaks er udvidet med følgende yderligere
+tests:
-* "`maxsize(size)`" - tests whether the attachment is no larger than the
- specified size. The size defaults to being in bytes, but "kb", "mb", "gb"
- etc can be used to specify the units.
+* "`maxsize(størrelse)`" - tester hvorvidt vedhæftningen højst fylder den
+ angivne størrelse. Størrelsen angives som standard i bytes, men "kb",
+ "mb", "gb" osv. kan bruges til at angive enheder.
-* "`minsize(size)`" - tests whether the attachment is no smaller than the
- specified size.
+* "`minsize(størrelse)`" - tester hvorvidt størrelsen mindst fylder den
+ angivne størrelse.
-* "`ispage()`" - tests whether the attachment will be treated by ikiwiki as a
- wiki page. (Ie, if it has an extension of ".mdwn", or of any other enabled
- page format).
+* "`ispage()`" - tester hvorvidt vedhæftningen bliver håndteret af ikiwiki
+ som en wikiside. (altså om den har endelsen ".mdwn", eller et hvilket som
+ helst andet aktiveret sideformat).
- So, if you don't want to allow wiki pages to be uploaded as attachments,
- use `!ispage()` ; if you only want to allow wiki pages to be uploaded
- as attachments, use `ispage()`.
+ Derfor, hvis du ikke vil tillade wikisider at blive lagt op som vedhæftninger,
+ så brug `!ispage()` ; hvis du kun vil tillade wikisider at blive lagt op som
+ vedhæftninger, så brug `ispage()`.
-* "`mimetype(foo/bar)`" - checks the MIME type of the attachment. You can
- include a glob in the type, for example `mimetype(image/*)`.
+* "`mimetype(foo/bar)`" - checker MIME-typen for vedhæftningen. Du kan
+ angive et glob som type, eksempelvis `mimetype(image/*)`.
-* "`virusfree()`" - checks the attachment with an antiviral program.
+* "`virusfree()`" - checker vedhæftningen med et antivirusprogram.