UserPreferences

Help On Macros/ Include


This macro includes the formatted content of the given page(s), following recursive includes if encountered. If the recursion generates any cycles, this is detected and prevented!

Usage:

[[Include(pagename, heading, level, from="regex", to="regex", sort=ascending|descending, items=n, skipitems=n, titlesonly)]]
pagename

Name of the page to include, if it starts with a caret "^", a regex of pages to include.

heading

Text for the generated heading (optional).

level

Level (1..5) of the generated heading (optional).

from

Partial include start marker (optional).

to

Partial include end marker (optional).

sort

Sorting order when pagename is a regex, i.e. starts with a caret (optional).

items

Maximum number of pages to include.

skipitems

Number of initial pages to skip over (optional).

titlesonly

Only include a link to the page, not page content (optional).

All parameters except pagename are optional, but you have to follow the given order! If you want to omit "heading", you have to leave the second parameter empty.

Examples: