Module:Color/keywords
Appearance
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.
return {
["pokehero-color-normal"] = { color = "A8A878", text = "FFFFFF" },
["pokehero-color-fighting"] = { color = "B04235", text = "FFFFFF" },
["pokehero-color-energy"] = { color = "4DBFFA", text = "FFFFFF" },
["pokehero-color-element"] = { color = "3DA93C", text = "FFFFFF" },
["pokehero-color-mental"] = { color = "E8ABBD", text = "FFFFFF" },
["pokehero-color-ninja"] = { color = "6F3198", text = "FFFFFF" },
["pokehero-color-sword"] = { color = "B0B0B0", text = "FFFFFF" },
["pokehero-color-demon"] = { color = "800000", text = "FFFFFF" },
["pokehero-color-glitch"] = { color = "68A090", text = "FFFFFF" },
["pokehero-color-god"] = { color = "4A484A", text = "FFFFFF" },
["pokehero-color-physical"] = { color = "EB5628", text = "FFFFFF" },
["pokehero-color-special"] = { color = "375AB2", text = "FFFFFF" },
["pokehero-color-status"] = { color = "828282", text = "FFFFFF" },
}