add formatting template for pagination.
pagination support, generic for all pager-based queries.