Module Const

wikiggutil-specific constants.

Tables

COLORS Color constants.
MAP_LINKS Maps strings (case-sensitive) to wiki page links.

Fields

ICON_SIZE_LARGE Power/Gems icons in tables.
ICON_SIZE_MID Constructables, Masteries, etc.
ICON_SIZE_SMALL Ingredient icons.
ICON_SIZE_SMALLER Keybind icons in strings.
INFO Text prepended to any generated Wikitext content to inform wiki writers.


Tables

COLORS
Color constants.

Fields:

MAP_LINKS
Maps strings (case-sensitive) to wiki page links.

Indexed table, order matters, first mappings are processed first, so longer match strings should come first.

Fields:

Usage:

    Const.MAP_LINKS = {
        -- full form
        {match = "Text To Match", dest = "Destination Page"},
        -- short form ("Text" will be linked to the page named "Text")
        {match = "Text"},
    
        -- (notice that "Focus Hits" is mapped before "Focus Hit" and "Focus", the order matters)
        {match = "Critical Hits", dest = "Mechanics#Critical Hit"},
        {match = "Critical Hit Chance", dest = "Mechanics#Critical Hit Chance"},
        {match = "Critical Chance", dest = "Mechanics#Critical Hit"},
        {match = "Critical Hit", dest = "Mechanics#Critical Hit"},
        {match = "Critical", dest = "Mechanics#Critical Hit"},
    }

Fields

ICON_SIZE_LARGE
Power/Gems icons in tables.
ICON_SIZE_MID
Constructables, Masteries, etc.
ICON_SIZE_SMALL
Ingredient icons.
ICON_SIZE_SMALLER
Keybind icons in strings.
INFO
Text prepended to any generated Wikitext content to inform wiki writers.
generated by LDoc 1.5.0 Last updated 1980-01-01 00:00:00