Module:Color/keywords: Difference between revisions
Appearance
No edit summary |
mNo edit summary |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
return { | return { | ||
["pokehero-color-normal"] = { color = "A8A878", text = "FFFFFF", dark = "333321", light = "D0D0B6" }, | |||
["pokehero-color-fighting"] = { color = "B04235", text = "FFFFFF", dark = "62251D", light = "D68075" }, | |||
["pokehero-color-energy"] = { color = "4DBFFA", text = "FFFFFF", dark = "035078", light = "B0E3FD" }, | |||
["pokehero-color-element"] = { color = "3DA93C", text = "FFFFFF", dark = "071207", light = "7CD07B" }, | |||
["pokehero-color-mental"] = { color = "E8ABBD", text = "FFFFFF", dark = "9C2B4C", light = "F6DDE5" }, | |||
["pokehero-color-ninja"] = { color = "6F3198", text = "FFFFFF", dark = "37184B", light = "A262CD" }, | |||
["pokehero-color-sword"] = { color = "B0B0B0", text = "FFFFFF", dark = "4A4A4A", light = "E3E3E3" }, | |||
["pokehero-color-demon"] = { color = "800000", text = "FFFFFF", dark = "1A0000", light = "FF6666" }, | |||
["pokehero-color-glitch"] = { color = "68A090", text = "FFFFFF", dark = "172521", light = "A7C7BE" }, | |||
["pokehero-color-god"] = { color = "4A484A", text = "FFFFFF", dark = "161616", light = "7E7A7E" }, | |||
["pokehero-color-physical"] = { color = "EB5628", text = "FFFFFF" }, | ["pokehero-color-physical"] = { color = "EB5628", text = "FFFFFF", dark = "99381A", light = "F29173" }, | ||
["pokehero-color-special"] = { color = "375AB2", text = "FFFFFF" }, | ["pokehero-color-special"] = { color = "375AB2", text = "FFFFFF", dark = "243B74", light = "7D94CD" }, | ||
["pokehero-color-status"] = { color = "828282", text = "FFFFFF" }, | ["pokehero-color-status"] = { color = "828282", text = "FFFFFF", dark = "555555", light = "AEAEAE" }, | ||
} | } |
Latest revision as of 13:17, 5 October 2025
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", dark = "333321", light = "D0D0B6" },
["pokehero-color-fighting"] = { color = "B04235", text = "FFFFFF", dark = "62251D", light = "D68075" },
["pokehero-color-energy"] = { color = "4DBFFA", text = "FFFFFF", dark = "035078", light = "B0E3FD" },
["pokehero-color-element"] = { color = "3DA93C", text = "FFFFFF", dark = "071207", light = "7CD07B" },
["pokehero-color-mental"] = { color = "E8ABBD", text = "FFFFFF", dark = "9C2B4C", light = "F6DDE5" },
["pokehero-color-ninja"] = { color = "6F3198", text = "FFFFFF", dark = "37184B", light = "A262CD" },
["pokehero-color-sword"] = { color = "B0B0B0", text = "FFFFFF", dark = "4A4A4A", light = "E3E3E3" },
["pokehero-color-demon"] = { color = "800000", text = "FFFFFF", dark = "1A0000", light = "FF6666" },
["pokehero-color-glitch"] = { color = "68A090", text = "FFFFFF", dark = "172521", light = "A7C7BE" },
["pokehero-color-god"] = { color = "4A484A", text = "FFFFFF", dark = "161616", light = "7E7A7E" },
["pokehero-color-physical"] = { color = "EB5628", text = "FFFFFF", dark = "99381A", light = "F29173" },
["pokehero-color-special"] = { color = "375AB2", text = "FFFFFF", dark = "243B74", light = "7D94CD" },
["pokehero-color-status"] = { color = "828282", text = "FFFFFF", dark = "555555", light = "AEAEAE" },
}