Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

This is the documentation page for Module:IconData

Looks up an icon and label by key from a dataset subpage and renders it through Module:Icon. Used by templates to produce consistent icon and text output from a shared data source.

Usage

{{#invoke:IconData|main|dataset=ARC|key=wasp|size=22}}
{{#invoke:IconData|main|dataset=Condition|key=bcity|text=Birdy City|size=22}}

Parameters

  • dataset - name of the dataset subpage under Module:IconData/. Hardcoded by the calling template.
  • key - case-insensitive lookup key within the dataset.
  • text - optional display text; falls back to the entry's label if omitted or empty.
  • size - icon size in pixels. Supplied by the calling template as a default.

Dataset structure

Dataset subpages return a table keyed by lowercase lookup strings:

return {
    tick = { icon = "Icon_ARC_Tick.png",
             label = "Tick" },
    pop  = { icon = "Icon_ARC_Pop.png",
             label = "Pop" },
}

Each entry must have an icon; label is optional.