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.
(: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:)
, etc.
(:(no)spacewikiwords:)
(:(no)linkwikiwords:)
(: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
- optional, xxx = name of group, which pages should be included in the list
Q: can you specify pages as well, e.g via regex or mathcing name-prefix: Group\.PREF.* = all pages of group "Group" starting with "PREF"A: No, just groups and not pages. There may be a new option added at some point that allows specifying fullnames by regex. Plus there's always thelist=zzz
option below which does allow arbitrary lists.fmt=yyy
- optional, yyy =
bygroup
- default, level 1 list entries for each group with level 2 list entries for each page of a group
simple
- one line per page, using full pagename: "* groupname.pagename", no group headers
- see also
- Cookbook:DictIndex
list=zzz
- optional, zzz =
normal
- don't include special pages like
RecentChanges
,GroupHeader
andGroupFooter
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
$RCTime = strftime('%b %d %H:%M',$Now);
$RecentChangesFmt['Main.RecentPages'] = ':[[$FullName]]: $RCTime';
(:searchresults group=xxx fmt=yyy list=zzz text:)
<< | PmWiki.DocumentationIndex | >>
This page may have a more recent version on pmwiki.org: PmWiki:Directives, and a talk page: PmWiki:Directives-Talk.