Jump to content

Module:Color/keywords/doc

From PokeHero Official Wiki
Revision as of 16:53, 20 September 2025 by Admin (talk | contribs) (Created page with "== Module:Color/keywords == This submodule contains color codes for keywords used in the PokeHero wiki. === Structure === The table maps keys to color codes for multiple types. Example: <pre> return { ["pokehero-color-normal"] = { color = "A8A878", text = "FFFFFF" }, ["pokehero-color-fighting"] = { color = "B04235", text = "FFFFFF" }, ["pokehero-color-energy"] = { color = "4DBFFA", text = "FFFFFF" }, } </pre> * Keys should follow the pattern <code>poke...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This is the documentation page for Module:Color/keywords

Module:Color/keywords

This submodule contains color codes for keywords used in the PokeHero wiki.

Structure

The table maps keys to color codes for multiple types. Example:

return {
    ["pokehero-color-normal"]   = { color = "A8A878", text = "FFFFFF" },
    ["pokehero-color-fighting"] = { color = "B04235", text = "FFFFFF" },
    ["pokehero-color-energy"]   = { color = "4DBFFA", text = "FFFFFF" },
}
  • Keys should follow the pattern pokehero-color-<keyword> for consistency.
  • Add new keywords by adding new entries to this table.

Usage

Access the types table via `Module:Color`:

{{#invoke:Color|color|fighting|color}}

This automatically returns the color code for the Fighting type.

Notes

  • This table is only loaded when requested to minimize memory usage.