This macro includes the formatted content of the given local wiki page(s), following recursive includes if encountered. If the recursion generates any cycles, this is detected and prevented!
<<Include(pagename, heading, level, from="regex", to="regex", sort=ascending|descending, items=n, skipitems=n, titlesonly, editlink)>>
Name of the page to include, if it starts with a caret "^", a regex of pages to include.
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.
from and to recognise the pattern in comments as well. So watch out for comments that stop the include unexpectedly.
Include the text of page FooBar in the current paragraph:
<<Include(FooBar)>>
<<Include(FooBar,"Foo Bar" )>>
<<Include(FooBar, , 2)>>
<<Include(FooBar, 'All about Foo Bar', 2)>>
<<Include(FooBar, , from="^----$")>>
<<Include(FooBar, , to="^----$")>>
<<Include(^FooBar/.*, , sort=descending)>>
<<Include(^FooBar/.*, , items=3)>>
<<Include(^BlogBase/.*,, to="^----$", sort=descending, items=7)>>
<<Include(^BlogBase/.*,, to="^----$", sort=descending, items=7, skipitems=7, titlesonly)>>
You can use these with ../MonthCalendar for blogging:
<<Include(^FirstnameLastname/20..-..-..,,to="^----",sort=descending,items=3)>>
<<Include(^FirstnameLastname/20..-..-..,,to="^----",sort=descending,items=4,skipitems=3,titlesonly)>>