The following script can be used to create a link which will begin a new page, with the title using the current date.
Combined with a wiki.tree script this can be used to create a mini forum.
The link looks like this:
{{ web.link(page.path.."/"..date.month(date.now).."-"..date.day(date.now).."-"..date.year(date.now).." - Replace this text with post title","New Post") }} Which creates this:
Any sub-pages can be displayed in chronological order with newest first, using this:
{{ wiki.tree{path: "path to page", depth: "1", reverse: "true"} }}
{{ wiki.create { label: "new post", path: page.path.."/Comments", title: date.day(date.now).."-"..date.month(date.now).."-"..date.year(date.now).." - post title" } }}
{{ wiki.tree{path: page.path.."/Comments", depth: "1", reverse: "true"} }}
Can be inserted by a single template and works everywhere!