This is the documentation page for Module:Navlists

Module documentation


Module:Navlists

This module generates lists of page links from one or more categories, optionally including subcategories (recursively).

Functions

listFromCategory
Returns a dot-separated list of pages from a category.
  • 1 – Category name (without the Category: prefix).
  • separator (optional) – String used to separate items. Default: .

Basic usage

{{#invoke:Navlists|listFromCategory|Characters}}

Returns all pages in Category:Characters and its subcategories.

Custom separator

{{#invoke:Navlists|listFromCategory|Characters|separator=, }}

Notes

  • Redirects are excluded.
  • The function detects and avoids category loops.
  • Subcategories are detected recursively.
  • You can create wrapper templates (e.g., Template:NavlistMainCast) for use in navboxes.

See also