]> sipb.mit.edu Git - ikiwiki.git/blob - basewiki/preprocessordirective.mdwn
* Build-depend on libtext-wikiformat-perl, so that the syntax check of
[ikiwiki.git] / basewiki / preprocessordirective.mdwn
1 Preprocessor directives are similar to a [[WikiLink]] in form, except they
2 contain spaces and parameters. The general form is:
3
4 \\[[directive param="value" param="value"]]
5
6 This gets expanded before the rest of the page is processed, and can be used
7 to transform the page in various ways.
8
9 The quotes around values can be omitted if the value is a simple word.
10 Also, some directives may use parameters without values, for example:
11
12 \\[[tag foo]]
13
14 Note that if a preprocessor directive has no parameters, a space still must
15 be put after its name, to avoid confusion with a [[WikiLink]]. For example:
16
17 \\[[pagecount ]]