Module:ConceptNavbox/data/doc

From No Subject
Jump to navigation Jump to search

This is the documentation page for Module:ConceptNavbox/data


Module:ConceptNavbox/data

This page documents the data backend for the psychoanalytic concept navigation box. The table returned by this module is loaded by Module:ConceptNavbox and rendered on articles via {{ConceptNavbox}}.

Where it is used

  • Articles use:

Data structure

Module:ConceptNavbox/data must return a Lua table shaped like:

return {
  rows = {
    { group = "Group title", list = "wikitext list (links separated by ·)" },
    -- more rows...
  }
}
  • rows is an ordered array; its order determines display order in the navbox.
  • group is the label shown in the left column.
  • list is wikitext shown in the right column (normally internal links separated by · ).

Editing guidelines

  • Prefer canonical page titles; use piped links for display text (e.g., Real).
  • Keep groups semantically tight; if a list grows too long, split concepts across better-fitting groups.
  • Keep separators consistent: use · .
  • Avoid adding biographies/proper names; this navbox is concept-focused.

How to add a concept (example)

In the relevant row’s table.concat({...}, " · "), add another link string:

{
  group = "Language and the unconscious",
  list  = table.concat({
    "[[Unconscious]]",
    "[[Signifier]]",
    "[[Slips of the tongue]]",
  }, " · ")
},

How to add a new group

Append a new row to the rows array (keep the same group/list keys).

See also