Module:ConceptNavbox/doc
Jump to navigation
Jump to search
This is the documentation page for Module:ConceptNavbox
Module:ConceptNavbox
This module renders the psychoanalytic concept navigation box used on concept articles. It is the Lua renderer behind {{ConceptNavbox}}, converting structured data from Module:ConceptNavbox/data into a standard {{Navbox}}.
What it does
- Reads parameters passed from {{ConceptNavbox}} (or direct
#invokecalls). - Loads group/link data from Module:ConceptNavbox/data using
mw.loadData. - Populates
group1/list1,group2/list2, etc. - Renders output by calling {{Navbox}}.
Dependencies
This module assumes these pages exist:
- Module:ConceptNavbox/data — concept group/link table
- Template:Navbox — base navbox template used for rendering
- (Recommended) Template:ConceptNavbox — public wrapper used on articles
Interface
Main entry point:
Most editors should use:
Parameters
- state
Controls whether the navbox is expanded or collapsed by default.
collapsed(default)expanded
- title
Overrides the navbox title text.
Default: Psychoanalytic concepts
Usage
On articles (recommended)
Place near the end of a concept page, before category tags:
{{ConceptNavbox}}
Direct invocation (testing / advanced)
{{#invoke:ConceptNavbox|main}}
{{#invoke:ConceptNavbox|main|state=expanded}}
{{#invoke:ConceptNavbox|main|title=Core concepts}}
Editing the concept lists
Do not edit this module to add/remove links. Edit:
Common errors
- Navbox missing: Ensure Template:Navbox exists and is named exactly
Navbox. - Data missing: Ensure Module:ConceptNavbox/data exists and returns a table with
rows. - Blank output: Check that
rowsis a numerically indexed array and each row hasgroupandlistfields.