Template:Cat sandbox
This template is used on many pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Transclusion count updated automatically (see documentation). |
Documentation: Cat sandbox
The Cat sandbox template is used in the creation of the active templates that are part of the Navboxes at the bottom of pages, specifically the Cat section of the Navbox. As it is a component of pretty much every page on the Wiki, it is one of the most highly-dependant templates, and editing it will have a massive effect on the job queue and may cause the Wiki and the entire website to run slowly. Please do not make test edits on this template, but use the sandbox version instead.
It works by looking for a template based upon Template:List Template, which it then formats correctly for the Navbox rather than stand-alone use by using Template:List Template dpl2. If there is no template, then it simply returns a list of items in the named category.
As an example:
This will initially look for a template called "Template:Roads built in 1943". If it exists, then it formats it correctly for the Navbox and displays it. If the template does not exist, then it looks for a category called "Category:Roads built in 1943", and diplays a list of items in this category. If neither exist, then the display is suppressed.
The template should also not be used on its own.