summaryrefslogtreecommitdiff
path: root/ikiwiki/pagespec/attachment.mdwn
diff options
context:
space:
mode:
Diffstat (limited to 'ikiwiki/pagespec/attachment.mdwn')
-rw-r--r--ikiwiki/pagespec/attachment.mdwn61
1 files changed, 30 insertions, 31 deletions
diff --git a/ikiwiki/pagespec/attachment.mdwn b/ikiwiki/pagespec/attachment.mdwn
index 2a1f8aa..450c56f 100644
--- a/ikiwiki/pagespec/attachment.mdwn
+++ b/ikiwiki/pagespec/attachment.mdwn
@@ -1,56 +1,55 @@
[[!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, by entering a [[ikiwiki/PageSpec]] in the
-"Allowed Attachments" field of their preferences page.
+Hvis vedhæftninger er aktiveret, kan wiki-administratoren styre hvilke typer
+vedhæftninger der vil blive accepteret, ved at angive et [[ikiwiki/PageSpec]] i
+"Tilladte vedhæftninger"-feltet på deres opsætningsside.
-For example, to limit arbitrary files to 50 kilobytes, but allow
-larger mp3 files to be uploaded by joey into a specific directory, and
-check all attachments for virii, something like this could be used:
+Som eksempel, for at begrænse vilkårlige filer til 50 kilobytes, men tillade
+større mp3-filer at blive lagt op af joey til en bestemt mappe, og checke alle
+vedhæftninger for vira, kunne noget i stil med dette bruges:
virusfree() and ((user(joey) and podcast/*.mp3 and mimetype(audio/mpeg) and maxsize(15mb)) or (!ispage() and maxsize(50kb)))
-The regular [[ikiwiki/PageSpec]] syntax is expanded with thw following
-additional tests:
+Den normale [[ikiwiki/PageSpec]] syntaks er udvidet med følgende yderligere
+tests:
-* maxsize(size)
+* maxsize(størrelse)
- 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.
+ Tester hvorvidt vedhæftningen højst fylder er den angivne størrelse.
+ Størrelsen angives som standard i bytes, men "kb", "mb", "gb" osv. kan bruges
+ til at angive enheder.
-* minsize(size)
+* minsize(størrelse)
- Tests whether the attachment is no smaller than the specified size.
+ 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).
+ Tester hvorvidt vedhæftningen vil blive håndteret af ikiwiki som en wikiside.
+ (altså om det har endelsen ".mdwn", eller ethvert 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()`.
-* user(username)
+* user(brugernavn)
- Tests whether the attachment is being uploaded by a user with the
- specified username. If openid is enabled, an openid can also be put here.
+ Tester hvorvidt vedhæftningen bliver lagt op af en bruger med det angivne
+ brugernavn. Hvis openid er aktiveret, kan en openid også bruges her.
-* ip(address)
+* ip(adresse)
- Tests whether the attacment is being uploaded from the specified IP
- address.
+ Tester hvorvidt vedhæftningen bliver lagt op fra den angivne IP-adresse.
* mimetype(foo/bar)
- This checks the MIME type of the attachment. You can include a glob
- in the type, for example `mimetype(image/*)`.
+ Dette checker MIME-typen for vedhæftningen. Du kan angive et glob som type,
+ eksampelvis `mimetype(image/*)`.
* virusfree()
- Checks the attachment with an antiviral program.
+ Checker vedhæftningen med et antivirusprogram.