See also the MarkupMasterIndex.
PmWiki uses the markup sequence (:directive ...:)
for a number of directives and text substitutions. Many of these replace the "double-bracket" directives that were used in PmWiki 1.0 and earlier versions. Here's a brief description of each.
(:title Patrick's home page:)
<meta name='keywords' content='word, ...' />
tag.
(:description A page about ...:)
<meta name='description' content='A page about...' />
tag.
(:comment This won't be displayed:)
(:include PageName:)
and (:include PageName#start#end:)
(:include RecentChanges#1#10:)
grabs only the first ten lines of the RecentChanges file.
(:include:)
directive, thus:
(:include SomePage :)
- include all of SomePage(:include SomePage lines=10 :)
- include lines 1-10 of SomePage(:include SomePage lines=1..10 :)
- include lines 1-10 of SomePage(:include SomePage lines=6..10 :)
- include lines 6-10 of SomePage(:include SomePage lines=6.. :)
- include lines 6 to end of SomePage(:include SomePage lines=6..6:)
- include only line 6 of SomePage
(:noheader:)
,
(:nofooter:)
,
(:notitle:)
,
(:nogroupheader:)
,
(:nofootheader:)
,
etc.
(:if cond param:)
syntax allows portions of the markup text to be conditionally processed (up to the next (:if:)
) depending on administrator-defined conditions. The predefined conditions are "true", "false", "group", and "name". For example,
(:if group PmWiki:)This text displays only in the PmWiki group(:if:)
(:pagelist group=xxx fmt=yyy list=zzz:)
(:pagelist ..:)
syntax allows to include a bulleted list of pagenames which are within the specified group. The group and pagenames are displayed as links.
group=xxx
list=zzz
option below which does allow arbitrary lists.
fmt=yyy
bygroup
simple
list=zzz
normal
RecentChanges
, GroupHeader
and GroupFooter
in the list
(:pagelist:)
to get a list of all pages,
(:pagelist group=PmWiki:)
to get a list of all pages in the PmWiki group,
(:pagelist group={$Group}:)
to get a list of all pages in the current group,
(:pagelist group={$Group} list=normal:)
to get a list of all pages in the current group except GroupHeader, GroupFooter, RecentChanges
etc.,
(:pagelist fmt=group :)
to get a list of all groups,
(:pagelist fmt=group -{$Group} :)
to get a list of all groups exept the current one.
$RCTime = strftime('%b %d %H:%M',$Now);
$RecentChangesFmt['Main.RecentPages'] = ':[[$FullName]]: $RCTime';
(:searchresults group=xxx fmt=yyy list=zzz text:)
For usage of group, fmt and list, see the (:pagelist:) directive above.
<< | PmWiki.DocumentationIndex | >>
This page may have a more recent version on pmwiki.org: PmWiki:Directives, and a talk page: PmWiki:Directives-Talk.