PmWiki uses a number of directives to specify page titles, descriptions, page keywords, and control the display of various components. Directive keywords are not case sensitive, e.g. Description, description, and DESCRIPTION are equivalent.
(:attachlist:)
(:attachlist NAME:)
shows a list of attachments of the group or page NAME.
(:attachlist ext=xxx:)
specifies an extension for filtering by type of file.
(:attachlist *:)
shows the uploads directory and permits browsing of all uploaded files by directory (will not work if $EnableDirectDownload
is set to 0).
(:description text:)
<meta name='description' content='...' />
element in the page output.)
(:keywords word1, word2, ...:)
<meta name='keywords' content='...' />
element in the output.)
(:linebreaks:)
, (:nolinebreaks:)
(:nolinebreaks:)
to cause text lines to automatically join again.
(:linkwikiwords:), (:nolinkwikiwords:)
$EnableWikiWords
. See also $LinkWikiWords
.
(:markup:) ... (:markupend:)
or (:markup:)
[=...=]
(:markup class=horiz:)
will show the markup side by side instead of one upon the other.
(:markup caption='...':)
adds a caption to the markup example.
(:markupend:)
is not required when using (:markup:)
[=...=]
.
[=...=]
option then the opening [=
MUST occur on the same line as the (:markup:)
. If you are using the full (:markup:) ... (:markupend:)
form then your markup code must appear AFTER a newline after the initial (:markup:)
.
(:messages:)
(:noaction:)
(:nogroupheader:)
(:nogroupfooter:)
(:noheader:), (:nofooter:)
(:noleft:), (:noright:), (:notitle:)
(:redirect PageName:)
(:redirect PageName#anchor:)
(:redirect PageName status=301 from=name quiet=1:)
status=
option can be used to return a different HTTP status code as part of the redirect. The from=
option limits redirects to occuring only on pages matching the wildcarded name (helpful when (:redirect:)
is in another page). The quiet=1
option allows the target page not to display a link back to the original page ($EnableRedirectQuiet
variable should be set to 1).
(:spacewikiwords:), (:nospacewikiwords:)
(:title text:)
$EnablePageTitlePriority
about how to change it).
Can I get (:redirect:)
to return a "moved permanently" (HTTP 301) status code?
Use (:redirect PageName status=301:)
.
Is there any way to prevent the "redirected from" message from showing at the top of the target page when I use (:redirect:)
?
From version 2.2.1 on, set in config.php
and in the page $EnableRedirectQuiet
=1;(:redirect OtherPage quiet=1:)
for a quiet redirect.
Is there any method for redirecting to the equivalent page in a different group, i.e. from BadGroup/thispage => GoodGroup/thispage using similar markup to (:redirect Goodgroup.{Name}:)?
How can a wiki enable linebreaks by default, i.e. without having the directive (:linebreaks:)
in a page or in a GroupHeader?
Add to config.php such a line:$HTMLPNewline
= '<br/>';
This page may have a more recent version on pmwiki.org: PmWiki:PageDirectives, and a talk page: PmWiki:PageDirectives-Talk.
Till början |
Skriv ut
Ändrad: 2013-11-22 03:55 / Visad: 1314 gånger.