Module:Color/doc
Jump to navigation
Jump to search
This is the documentation page for Module:Color
Overview
Color related functions for retrieving wiki-standardized colors
Functions
get_color
Retrieve's the color of a given key in any color format (default hex).
Parameters
- key - key, options are CitadelCategoryTech, hero_lash, CitadelCategoryWeapon, hero_mirage, hero_haze, hero_atlas, hero_inferno, hero_ghost, hero_yamato, hero_dynamo, hero_chrono, hero_bebop, hero_gigawatt, hero_wraith, hero_warden, hero_shiv, CitadelCategoryArmor, hero_orion, Citadel_LaneStats_Souls, hero_hornet, hero_viscous, Citadel_Profile_Stats_Healing, hero_forge,
- color_format - color format - Defaults to hex. Valid options are hex, rgb, hsl, cmyk
- no_wrap - (OPTIONAL) - Defaults to false. Set to true to remove prefixes and postfixes of '#' from hex, or 'rgb()', 'hsl()', and 'cmyk()' from the other formats. May be useful for altering the values dynamically
- debug_mode - (OPTIONAL) - Defaults to false. Used mostly for documentation purposes
Examples
See examples at Template:SlotColor
=Previews
Key | English | Hex Code | Colored div | Colored Text | Colored Underline |
---|---|---|---|---|---|
CitadelCategoryWeapon | Weapon | #d5903f | CitadelCategoryWeapon | CitadelCategoryWeapon | CitadelCategoryWeapon |
CitadelCategoryArmor | Vitality | #74b01c | CitadelCategoryArmor | CitadelCategoryArmor | CitadelCategoryArmor |
CitadelCategoryTech | Spirit | #c288f0 | CitadelCategoryTech | CitadelCategoryTech | CitadelCategoryTech |
Citadel_LaneStats_Souls | Souls | #98ffde | Citadel_LaneStats_Souls | Citadel_LaneStats_Souls | Citadel_LaneStats_Souls |
Citadel_Profile_Stats_Healing | Healing | #00FF9A | Citadel_Profile_Stats_Healing | Citadel_Profile_Stats_Healing | Citadel_Profile_Stats_Healing |
hero_atlas | Abrams | #2193AE | hero_atlas | hero_atlas | hero_atlas |
hero_wraith | Wraith | #954E7A | hero_wraith | hero_wraith | hero_wraith |
hero_viscous | Viscous | #8AC365 | hero_viscous | hero_viscous | hero_viscous |
hero_orion | Grey Talon | #61B083 | hero_orion | hero_orion | hero_orion |
hero_hornet | Vindicta | #87A8B8 | hero_hornet | hero_hornet | hero_hornet |
hero_inferno | Infernus | #FF472E | hero_inferno | hero_inferno | hero_inferno |
hero_forge | McGinnis | #466A9C | hero_forge | hero_forge | hero_forge |
hero_haze | Haze | #AE6231 | hero_haze | hero_haze | hero_haze |
hero_ghost | Lady Geist | #088A5C | hero_ghost | hero_ghost | hero_ghost |
hero_mirage | Mirage | #87683C | hero_mirage | hero_mirage | hero_mirage |
hero_lash | Lash | #444C57 | hero_lash | hero_lash | hero_lash |
hero_gigawatt | Seven | #EC963F | hero_gigawatt | hero_gigawatt | hero_gigawatt |
hero_yamato | Yamato | #6F9181 | hero_yamato | hero_yamato | hero_yamato |
hero_warden | Warden | #566279 | hero_warden | hero_warden | hero_warden |
hero_bebop | Bebop | #A04835 | hero_bebop | hero_bebop | hero_bebop |
hero_chrono | Paradox | #993A53 | hero_chrono | hero_chrono | hero_chrono |
hero_dynamo | Dynamo | #D0BA46 | hero_dynamo | hero_dynamo | hero_dynamo |
hero_shiv | Shiv | #A53D88 | hero_shiv | hero_shiv | hero_shiv |