From eeb7c436cc670a5910bc868bc2afaa06933334dd Mon Sep 17 00:00:00 2001 From: Cache Saravento Date: Fri, 7 Aug 2015 14:07:50 -0300 Subject: Static generated site --- ikiwiki/pagespec/attachment/index.html | 153 ++++++++++++++++++++++ ikiwiki/pagespec/index.html | 226 +++++++++++++++++++++++++++++++++ ikiwiki/pagespec/po/index.html | 140 ++++++++++++++++++++ ikiwiki/pagespec/sorting/index.html | 138 ++++++++++++++++++++ 4 files changed, 657 insertions(+) create mode 100644 ikiwiki/pagespec/attachment/index.html create mode 100644 ikiwiki/pagespec/index.html create mode 100644 ikiwiki/pagespec/po/index.html create mode 100644 ikiwiki/pagespec/sorting/index.html (limited to 'ikiwiki/pagespec') diff --git a/ikiwiki/pagespec/attachment/index.html b/ikiwiki/pagespec/attachment/index.html new file mode 100644 index 0000000..10c0529 --- /dev/null +++ b/ikiwiki/pagespec/attachment/index.html @@ -0,0 +1,153 @@ + + + + + + + +attachment + + + + + + + + + + + + + + +
+ +
+
+

+ + +
+
+ +
+ +
+ + +
+ +
+

+ Posted Sex 23 Abr 2010 18:36:07 BRT +

+

This wiki has attachments disabled.

+ +

If attachments are enabled, the wiki admin can control what types of +attachments will be accepted, via the allowed_attachments +configuration setting.

+ +

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:

+ +
virusfree() and ((user(joey) and podcast/*.mp3 and mimetype(audio/mpeg) and maxsize(15mb)) or (mimetype(image/*) and maxsize(50kb)))
+
+ +

The regular PageSpec syntax is expanded with the following +additional 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.

  • +
  • "minsize(size)" - tests whether the attachment is no smaller than the +specified size.

  • +
  • "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).

    + +

    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().

  • +
  • "mimetype(foo/bar)" - checks the MIME type of the attachment. You can +include a glob in the type, for example mimetype(image/*).

  • +
  • "virusfree()" - checks the attachment with an antiviral program.

  • +
+ + +
+ +
+ + + + + +
+ + + +
+ +
+ + + +
+ +
+
+ + + diff --git a/ikiwiki/pagespec/index.html b/ikiwiki/pagespec/index.html new file mode 100644 index 0000000..18608a6 --- /dev/null +++ b/ikiwiki/pagespec/index.html @@ -0,0 +1,226 @@ + + + + + + + +pagespec + + + + + + + + + + + + + + +
+ +
+
+

+ + +
+
+ +
+ +
+ + +
+ +
+

+ Posted Qua 20 Out 2010 20:53:50 BRST +

+

To select a set of pages, such as pages that are locked, pages +whose commit emails you want subscribe to, or pages to combine into a +blog, the wiki uses a PageSpec. This is an expression that matches +a set of pages.

+ +

The simplest PageSpec is a simple list of pages. For example, this matches +any of the three listed pages:

+ +
foo or bar or baz
+
+ +

More often you will want to match any pages that have a particular thing in +their name. You can do this using a glob pattern. "*" stands for any part +of a page name, and "?" for any single letter of a page name. So this +matches all pages about music, and any SubPages of the SandBox, but does +not match the SandBox itself:

+ +
*music* or SandBox/*
+
+ +

You can also prefix an item with "!" to skip pages that match it. So to +match all pages except for Discussion pages and the SandBox:

+ +
* and !SandBox and !*/Discussion
+
+ +

Some more elaborate limits can be added to what matches using these functions:

+ +
    +
  • "glob(someglob)" - matches pages and other files that match the given glob. +Just writing the glob by itself is actually a shorthand for this function.
  • +
  • "page(glob)" - like glob(), but only matches pages, not other files
  • +
  • "link(page)" - matches only pages that link to a given page (or glob)
  • +
  • "tagged(tag)" - matches pages that are tagged or link to the given tag (or +tags matched by a glob)
  • +
  • "backlink(page)" - matches only pages that a given page links to
  • +
  • "creation_month(month)" - matches only files created on the given month +number
  • +
  • "creation_day(mday)" - or day of the month
  • +
  • "creation_year(year)" - or year
  • +
  • "created_after(page)" - matches only files created after the given page +was created
  • +
  • "created_before(page)" - matches only files created before the given page +was created
  • +
  • "internal(glob)" - like glob(), but matches even internal-use +pages that globs do not usually match.
  • +
  • "title(glob)", "author(glob)", "authorurl(glob)", +"license(glob)", "copyright(glob)", "guid(glob)" + +
      +
    • match pages that have the given metadata, matching the specified glob.
    • +
    +
  • +
  • "user(username)" - tests whether a modification is being made by a +user with the specified username. If openid is enabled, an openid can also +be put here. Glob patterns can be used in the username. For example, +to match all openid users, use user(*://*)
  • +
  • "admin()" - tests whether a modification is being made by one of the +wiki admins.
  • +
  • "ip(address)" - tests whether a modification is being made from the +specified IP address.
  • +
  • "comment(glob)" - matches comments to a page matching the glob.
  • +
  • "comment_pending(glob)" - matches unmoderated, pending comments.
  • +
  • "postcomment(glob)" - matches only when comments are being +posted to a page matching the specified glob
  • +
+ + +

For example, to match all pages in a blog that link to the page about music +and were written in 2005:

+ +
blog/* and link(music) and creation_year(2005)
+
+ +

Note the use of "and" in the above example, that means that only pages that +match each of the three expressions match the whole. Use "and" when you +want to combine expression like that; "or" when it's enough for a page to +match one expression. Note that it doesn't make sense to say "index and +SandBox", since no page can match both expressions.

+ +

More complex expressions can also be created, by using parentheses for +grouping. For example, to match pages in a blog that are tagged with either +of two tags, use:

+ +
blog/* and (tagged(foo) or tagged(bar))
+
+ +

Note that page names in PageSpecs are matched against the absolute +filenames of the pages in the wiki, so a pagespec "foo" used on page +"a/b" will not match a page named "a/foo" or "a/b/foo". To match +relative to the directory of the page containing the pagespec, you can +use "./". For example, "./foo" on page "a/b" matches page "a/foo".

+ +

To indicate the name of the page the PageSpec is used in, you can +use a single dot. For example, link(.) matches all the pages +linking to the page containing the PageSpec.

+ +
+ +
+ + + + + +
+ + + +
+ +
+ + + +
+ +
+
+ + + diff --git a/ikiwiki/pagespec/po/index.html b/ikiwiki/pagespec/po/index.html new file mode 100644 index 0000000..919d6b8 --- /dev/null +++ b/ikiwiki/pagespec/po/index.html @@ -0,0 +1,140 @@ + + + + + + + +po + + + + + + + + + + + + + + +
+ +
+
+

+ + +
+
+ +
+ +
+ + +
+ +
+

+ Posted Seg 12 Jul 2010 16:42:30 BRT +

+

This wiki has po support disabled.

+ +

If the po plugin is enabled, the regular +PageSpec syntax is expanded with the following additional +tests that can be used to improve user navigation in a multi-lingual +wiki:

+ +
    +
  • "lang(LL)" - tests whether a page is written in the language +specified as a ISO639-1 (two-letter) language code.
  • +
  • "currentlang()" - tests whether a page is written in the same +language as the current page.
  • +
  • "needstranslation()" - tests whether a page needs translation +work. Only slave pages match this PageSpec. A minimum target +translation percentage can optionally be passed as an integer +parameter: "needstranslation(50)" matches only pages less than 50% +translated.
  • +
+ + +

Note that every non-po page is considered to be written in +po_master_language, as specified in ikiwiki.setup.

+ +
+ +
+ + + + + +
+ + + +
+ +
+ + + +
+ +
+
+ + + diff --git a/ikiwiki/pagespec/sorting/index.html b/ikiwiki/pagespec/sorting/index.html new file mode 100644 index 0000000..fbdd48e --- /dev/null +++ b/ikiwiki/pagespec/sorting/index.html @@ -0,0 +1,138 @@ + + + + + + + +sorting + + + + + + + + + + + + + + +
+ +
+
+

+ + +
+
+ +
+ +
+ + +
+ +
+

+ Posted Sáb 12 Nov 2011 14:02:20 BRST +

+

Some directives that use +PageSpecs allow +specifying the order that matching pages are shown in. The following sort +orders can be specified.

+ +
    +
  • age - List pages from the most recently created to the oldest.

  • +
  • mtime - List pages with the most recently modified first.

  • +
  • title - Order by title (page name), e.g. "z/a a/b a/c"

  • +
  • path - Order by page name including parents, e.g. "a/b a/c z/a"

  • +
  • meta(title) - Order according to the [[!meta title="foo" sortas="bar"]] +or [[!meta title="foo"]] directive, or the page name if no +full title was set. meta(author), meta(date), meta(updated), etc. +also work.

  • +
+ + +

In addition, you can combine several sort orders and/or reverse the order of +sorting, with a string like age -title (which would sort by age, then by +title in reverse order if two pages have the same age).

+ +
+ +
+ + + + + +
+ + + +
+ +
+ + + +
+ +
+
+ + + -- cgit v1.2.3