Template:Navbox Automatic Groups/doc

Revision as of 14:04, 3 September 2026 by ReisuDesign (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This is the documentation page for Navbox Automatic Groups.
It contains usage information, categories, and other content not part of the original template page.

Generates multiple Navbox group/list rows from a semicolon separated group list. Supports normal custom lists and dynamically generated Navbox DPL lists.

Do not use as standalone template, insert in a {{Navbox}} using automatic_groups parameter.

Syntax

edit

{{Navbox Automatic Groups
|base = Base Group
|grous = Semicolon separated List
|list = plain text
|list_type = dpl
}}

  • base : The base group used by [nogroup]. Required when [nogroup] is present.
  • groups : A semicolon-seFted list of groups to generate. Use [nogroup] to create a list row without a group label. The [nogroup] entry uses base as its group value.
  • list_type : Sets the type of list to generate. When set to dpl, the module constructs and expands a {{Navbox DPL}} call using the remaining parameters. If omitted or set to another value, list is used instead.
  • list : The default content for each generated list. In normal mode, %%group%% is replaced with the current group name.
    • list_<group> : Overrides list for a specific group. The group name is matched case-insensitively. For [nogroup], use list_nogroup.
  • category : In dpl mode, the DPL category to query. %%group%% is replaced with the current group name.
  • uses : In dpl mode, passed to {{Navbox DPL}} as the uses parameter.
  • format : In dpl mode, passed to {{Navbox DPL}} as the format parameter.
  • start : The number of the first generated Navbox row. Defaults to 1.
DPL parameters

When list_type is used, parameters other than groups, base, list, list_type, start, and list_<group> overrides are passed to {{Navbox DPL}}. This allows other {{Navbox DPL}} parameters to be used without additional support in this module.

The %%group%% placeholder can be used in DPL parameters and is replaced with the current group name.

For [nogroup], the module automatically adds not1, not2, etc. for all named groups, so those exclusions do not need to be specified manually.

Examples

edit

Basic

edit

{{Navbox Automatic Groups
|base = Headwear
|groups = Hat;Head Accessory;Helmet;[nogroup]
|list = TEST %%group%%
}}

Using DPL

edit

{{Navbox Automatic Groups
|groups = Hat;Head Accessory;Helmet;[nogroup]
|base = Headwear
|list_type = dpl
|category = Clothing Items by Quality<&>%%group%%
|uses = Template:Clothing Infobox
|format = card
}}

Template Data

edit

Generates multiple Navbox group/list rows from a semicolon-seFted group list. Supports normal custom lists and dynamically generated Navbox DPL lists.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Basebase

Base group used by [nogroup]. Required when [nogroup] is present.

Stringoptional
Groupsgroups

Semicolon-seFted list of groups to generate. Use [nogroup] for a generated row without a group label.

Stringrequired
Listlist

Default content for each generated list. In normal mode, %%group%% is replaced with the current group name.

Contentoptional
List typelist_type

Set to dpl to construct and expand a Navbox DPL list. If omitted or set to another value, the list parameter is used.

Stringoptional
Categorycategory

DPL category. Used when list_type is dpl. %%group%% is replaced with the current group name.

Stringoptional
Usesuses

Passed to Navbox DPL as the uses parameter when list_type is dpl.

Stringoptional
Formatformat

Passed to Navbox DPL as the format parameter when list_type is dpl.

Stringoptional
Startstart

Index of the first generated Navbox row. Defaults to 1.

Default
1
Numberoptional
Group list overridelist_<group>

Overrides the default list for a specific group. Replace <group> with the group name, for example list_Hat or list_nogroup.

Contentoptional