From Brotato Wiki
Creates text with the specific color. Makes it possible to easily add/edit coloured text from the visual editor.
The template uses a basic switch, so it's easy to add new color options.
Examples
Preview | Code (Shorthand) | Code (Longform) | Hex | Name in the code |
---|---|---|---|---|
■ Green (Positive Stat) | {{Color|green|TEXT}}
|
{{Color|color=green|text=TEXT}}
|
#00FF00
|
Utils.POS_COLOR_STR
|
■ Red (Negative Stat) | {{Color|red|TEXT}}
|
{{Color|color=red|text=TEXT}}
|
red
|
Utils.NEG_COLOR_STR
|
■ Pastel Green (Good Text) | {{Color|pastelgreen|TEXT}}
|
{{Color|color=pastelgreen|text=TEXT}}
|
#66B966
|
n/a |
■ Pastel Red (Bad Text) | {{Color|pastelred|TEXT}}
|
{{Color|color=pastelred|text=TEXT}}
|
#BF5959
|
n/a |
■ Cream | {{Color|cream|TEXT}}
|
{{Color|color=cream|text=TEXT}}
|
#EAE2B0
|
n/a |
■ Gray / Grey | {{Color|gray|TEXT}}
|
{{Color|color=grey|text=TEXT}}
|
grey
|
n/a |
■ Tier 1 (I) | {{Color|tier1|TEXT}}
|
{{Color|color=tier1|text=TEXT}}
|
#C8C8C8
|
n/a |
■ Tier 2 (II) | {{Color|tier2|TEXT}}
|
{{Color|color=tier2|text=TEXT}}
|
#4A9BD1
|
ItemService.TIER_UNCOMMON_COLOR
|
■ Tier 3 (III) | {{Color|tier3|TEXT}}
|
{{Color|color=tier3|text=TEXT}}
|
#AD5AFF
|
ItemService.TIER_RARE_COLOR
|
■ Tier 4 (IV) | {{Color|tier4|TEXT}}
|
{{Color|color=tier4|text=TEXT}}
|
#FF3B3B
|
ItemService.TIER_LEGENDARY_COLOR
|
■ Curse | {{Color|curse|TEXT}}
|
{{Color|color=curse|text=TEXT}}
|
#A30000
|
Utils.CURSE_COLOR
|
■ Charm | {{Color|charm|TEXT}}
|
{{Color|color=charm|text=TEXT}}
|
#9BC6DD
|
Utils.CHARM_COLOR
|
■ DLC | {{Color|dlc|TEXT}}
|
{{Color|color=dlc|text=TEXT}}
|
#5D6A9F
|
n/a |
All Game Colors
These colors are referenced in the code, but most of them are not currently used on this wiki.
They're listed here in case they're ever needed in the future.
Color | Name in the code |
---|---|
■ #A30000
|
Utils.BOOST_COLOR
|
■ #CA61FF
|
Utils.CURSE_COLOR
|
■ #9BC6DD
|
Utils.CHARM_COLOR
|
■ #BFEBFF
|
Utils.DAMAGE_INC_COLOR
|
■ #72FFF2
|
Utils.HIGHLIGHT_COLOR
|
■ #EAE2B0
|
Utils.SECONDARY_FONT_COLOR
|
■ #FAF4CC
|
Utils.CATEGORY_COLOR
|
■ #76FF76
|
Utils.GOLD_COLOR
|
■ #555555
|
Utils.GRAY_COLOR_STR
|
■ #00ff00
|
Utils.POS_COLOR_STR
|
■ red
|
Utils.NEG_COLOR_STR
|
■ #FFD700
|
Utils.DLC_BUTTON_TEXT_COLOR
|
■ #D0C142
|
ItemService.TIER_DANGER_5_COLOR
|
■ #FF773B
|
ItemService.TIER_DANGER_4_COLOR
|
■ #E6E6E6
|
ItemService.TIER_DANGER_0_COLOR
|
■ #1A1808
|
ItemService.TIER_DANGER_5_COLOR_DARK
|
■ #241108
|
ItemService.TIER_DANGER_4_COLOR_DARK
|
■ #000000
|
ItemService.TIER_DANGER_0_COLOR_DARK
|
■ #FF3B3B
|
ItemService.TIER_LEGENDARY_COLOR
|
■ #AD5AFF
|
ItemService.TIER_RARE_COLOR
|
■ #5ABEFF
|
ItemService.TIER_UNCOMMON_COLOR
|
■ #240909
|
ItemService.TIER_LEGENDARY_COLOR_DARK
|
■ #100A1B
|
ItemService.TIER_RARE_COLOR_DARK
|
■ #0F2028
|
ItemService.TIER_UNCOMMON_COLOR_DARK
|
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Color | color 1 | Supported: green, red, cream, tier1, tier2, tier3, tier4, pastelgreen, pastelred, curse
| String | required |
Text | text 2 | no description | String | required |