Add the template change to support the full range of toc_depth.