Thread:Semantic-mediawiki.org:Community portal/Recursively defining properties on SMW/reply (2)

. This should work, I think, although not immediately. You may need to touch all pages in correct order starting from the first to set page numbers.

There may be a healthier way of ordering pages. Do not set  in your template. Instead, set some number denoting page position, not necessarily incrementing by one:. Thence you can get the page number:  and previous page:.