Module:Color/keywords/doc
< Module:Color | keywords
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.