## Please edit system and help pages ONLY in the master wiki! ## For more information, please see MoinMoin:MoinDev/Translation. ##master-page:Unknown-Page ##master-date:Unknown-Date #acl -All:write Default #format wiki #language en = Include = 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! == Usage == {{{ <> }}} 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 which will link to the included page (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). editlink:: add a footer with links to the included page, both normal and edit (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. `from` and `to` recognise the pattern in comments as well. So watch out for comments that stop the include unexpectedly. == Examples == * Include the text of page `FooBar` in the current paragraph: {{{ <> }}} * Add a linked H1 of 'Foo Bar' followed by the text: {{{ <> }}} * Add a H2 of 'Foo Bar': {{{ <> }}} * Add a H2 of 'All about Foo Bar': {{{ <> }}} * Only include content after first horizontal rule: {{{ <> }}} * Only include content until first horizontal rule: {{{ <> }}} * Sort the page list in descending order: {{{ <> }}} * Include a maximum of three pages: {{{ <> }}} * Show at most a week of a blog: {{{ <> }}} * Show the previous week with titles only: {{{ <> }}} * You can use these with ../MonthCalendar for blogging: * Show 3 items out of a month calendar: {{{ <> }}} * Show next 4 items only with titles: {{{ <> }}}