Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.mrao.cam.ac.uk/projects/OAS/pmwiki/pmwiki.php/PmWiki/PageDirectives?action=print
Дата изменения: Unknown Дата индексирования: Sat Mar 1 21:41:49 2014 Кодировка: Поисковые слова: п п п п п п п п п п п п п п п п п п п п п п р п р п р п р р п п р п п р п п р п п р п п р п п р п п р п п р п п р п п р п п р п п р п |
PmWiki uses a number of directives to specify page titles, descriptions, page keywords, and control the display of various components. Keywords are not case sensitive.
(: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:)
(: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:)
(:nl:)
[[<<]]
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}:)?
This page may have a more recent version on pmwiki.org: PmWiki:PageDirectives, and a talk page: PmWiki:PageDirectives-Talk.