SiteIndex

A macro for getting an overview of the site, listing all the wiki pages. It works like TitleIndex, but it does not separate the pages by letter, and system pages can be listed separately. You can use this macro to build a personal index page for your wiki site.


Parameters

Name

Description

Default value

system_pages

Show system pages.

False

regular_pages

Show normal pages.

True

subpages

Show subpages. When false, only root pages will be listed.

True

count

Count subpages when subpages is false.

False

spaces

Separate wiki names by space.

True

max_name

Max page name length. You may want to set this when spaces parameter is false.

0 (no limit)


Example

= Pages in this wiki =

||'''Regular pages'''||'''All regular pages'''||
||<<SiteIndex(count=True,subpages=False)>>||<<SiteIndex>>||
||'''System pages'''||'''All system pages'''||
||<<SiteIndex(count=True,subpages=False,system_pages=True,regular_pages=False)>>||<<SiteIndex(system_pages=True,regular_pages=False)>>||

example.png

MoinMoin: MacroMarket/SiteIndex (last edited 2020-12-26 12:22:12 by RenatoSilva)