Directives are similar to a WikiLink in form, except they
begin with !
and may contain parameters. The general form is:
[[!directive param="value" param="value"]]
This gets expanded before the rest of the page is processed, and can be used
to transform the page in various ways.
The quotes around values can be omitted if the value is a simple word.
Also, some directives may use parameters without values, for example:
[[!tag foo]]
A directive does not need to all be on one line, it can be
wrapped to multiple lines if you like:
[[!directive foo="baldersnatch"
bar="supercalifragilisticexpialidocious" baz=11]]
Also, multiple lines of quoted text can be used for a value.
To allow quote marks inside the quoted text, delimit the block
of text with triple-quotes:
[[!directive text="""
1. "foo"
2. "bar"
3. "baz"
"""]]
ikiwiki also has an older syntax for directives, which requires a space in
directives to distinguish them from wikilinks. This
syntax has several disadvantages: it requires a space after directives with
no parameters (such as [[pagecount ]]
), and it prohibits spaces in
wikilinks. ikiwiki now provides the !
-prefixed
syntax shown above as default. However, ikiwiki still supports wikis using
the older syntax, if the prefix_directives
option is disabled.
aggregate
Posted mar 03 mar 2009 17:54:09 -05
brokenlinks
Posted mar 03 mar 2009 17:54:09 -05
calendar
Posted mar 03 mar 2009 17:54:09 -05
color
Posted mar 03 mar 2009 17:54:09 -05
copy
Posted mar 03 mar 2009 17:54:09 -05
cut
Posted mar 03 mar 2009 17:54:09 -05
cutpaste
Posted mar 03 mar 2009 17:54:09 -05
discussion
Posted mar 03 mar 2009 17:54:09 -05
discussion
Posted mar 03 mar 2009 17:54:09 -05
discussion
Posted mar 03 mar 2009 17:54:09 -05
discussion
Posted mar 03 mar 2009 17:54:09 -05
edittemplate
Posted mar 03 mar 2009 17:54:09 -05
format
Posted mar 03 mar 2009 17:54:09 -05
fortune
Posted mar 03 mar 2009 17:54:09 -05
graph
Posted mar 03 mar 2009 17:54:09 -05
haiku
Posted mar 03 mar 2009 17:54:09 -05
if
Posted mar 03 mar 2009 17:54:09 -05
img
Posted mar 03 mar 2009 17:54:09 -05
inline
Posted mar 03 mar 2009 17:54:09 -05
linkmap
Posted mar 03 mar 2009 17:54:09 -05
listdirectives
Posted mar 03 mar 2009 17:54:09 -05
map
Posted mar 03 mar 2009 17:54:09 -05
meta
Posted mar 03 mar 2009 17:54:09 -05
more
Posted mar 03 mar 2009 17:54:09 -05
orphans
Posted mar 03 mar 2009 17:54:09 -05
pagecount
Posted mar 03 mar 2009 17:54:09 -05
pagestats
Posted mar 03 mar 2009 17:54:09 -05
pagetemplate
Posted mar 03 mar 2009 17:54:09 -05
paste
Posted mar 03 mar 2009 17:54:09 -05
ping
Posted mar 03 mar 2009 17:54:09 -05
poll
Posted mar 03 mar 2009 17:54:09 -05
polygen
Posted mar 03 mar 2009 17:54:09 -05
postsparkline
Posted mar 03 mar 2009 17:54:09 -05
progress
Posted mar 03 mar 2009 17:54:09 -05
shortcut
Posted mar 03 mar 2009 17:54:09 -05
sparkline
Posted mar 03 mar 2009 17:54:09 -05
table
Posted mar 03 mar 2009 17:54:09 -05
tag
Posted mar 03 mar 2009 17:54:09 -05
taglink
Posted mar 03 mar 2009 17:54:09 -05
template
Posted mar 03 mar 2009 17:54:09 -05
testpagespec
Posted mar 03 mar 2009 17:54:09 -05
teximg
Posted mar 03 mar 2009 17:54:09 -05
toc
Posted mar 03 mar 2009 17:54:09 -05
toggle
Posted mar 03 mar 2009 17:54:09 -05
toggleable
Posted mar 03 mar 2009 17:54:09 -05
version
Posted mar 03 mar 2009 17:54:09 -05