From Brotato Wiki
m (fix "n/a" being wrapped in <code>) |
No edit summary |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 98: | Line 98: | ||
|<code><nowiki>{{Color|curse|TEXT}}</nowiki></code> | |<code><nowiki>{{Color|curse|TEXT}}</nowiki></code> | ||
|<code><nowiki>{{Color|color=curse|text=TEXT}}</nowiki></code> | |<code><nowiki>{{Color|color=curse|text=TEXT}}</nowiki></code> | ||
|<code># | |<code>#CA61FF</code> | ||
|<code>Utils.CURSE_COLOR</code> | |<code>Utils.CURSE_COLOR</code> | ||
|- | |- | ||
| Line 113: | Line 113: | ||
|''n/a'' | |''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 | |||
|- | |||
|<span style="color: #A30000;">■</span> <code>#A30000</code> | |||
|<code>Utils.BOOST_COLOR</code> | |||
|- | |||
|<span style="color: #CA61FF;">■</span> <code>#CA61FF</code> | |||
|<code>Utils.CURSE_COLOR</code> | |||
|- | |||
|<span style="color: #9BC6DD;">■</span> <code>#9BC6DD</code> | |||
|<code>Utils.CHARM_COLOR</code> | |||
|- | |||
|<span style="color: #BFEBFF;">■</span> <code>#BFEBFF</code> | |||
|<code>Utils.DAMAGE_INC_COLOR</code> | |||
|- | |||
|<span style="color: #72FFF2;">■</span> <code>#72FFF2</code> | |||
|<code>Utils.HIGHLIGHT_COLOR</code> | |||
|- | |||
|<span style="color: #EAE2B0;">■</span> <code>#EAE2B0</code> | |||
|<code>Utils.SECONDARY_FONT_COLOR</code> | |||
|- | |||
|<span style="color: #FAF4CC;">■</span> <code>#FAF4CC</code> | |||
|<code>Utils.CATEGORY_COLOR</code> | |||
|- | |||
|<span style="color: #76FF76;">■</span> <code>#76FF76</code> | |||
|<code>Utils.GOLD_COLOR</code> | |||
|- | |||
|<span style="color: #555555;">■</span> <code>#555555</code> | |||
|<code>Utils.GRAY_COLOR_STR</code> | |||
|- | |||
|<span style="color: #00ff00;">■</span> <code>#00ff00</code> | |||
|<code>Utils.POS_COLOR_STR</code> | |||
|- | |||
|<span style="color: red;">■</span> <code>red</code> | |||
|<code>Utils.NEG_COLOR_STR</code> | |||
|- | |||
|<span style="color: #FFD700;">■</span> <code>#FFD700</code> | |||
|<code>Utils.DLC_BUTTON_TEXT_COLOR</code> | |||
|- | |||
|<span style="color: #D0C142;">■</span> <code>#D0C142</code> | |||
|<code>ItemService.TIER_DANGER_5_COLOR</code> | |||
|- | |||
|<span style="color: #FF773B;">■</span> <code>#FF773B</code> | |||
|<code>ItemService.TIER_DANGER_4_COLOR</code> | |||
|- | |||
|<span style="color: #E6E6E6;">■</span> <code>#E6E6E6</code> | |||
|<code>ItemService.TIER_DANGER_0_COLOR</code> | |||
|- | |||
|<span style="color: #1A1808;">■</span> <code>#1A1808</code> | |||
|<code>ItemService.TIER_DANGER_5_COLOR_DARK</code> | |||
|- | |||
|<span style="color: #241108;">■</span> <code>#241108</code> | |||
|<code>ItemService.TIER_DANGER_4_COLOR_DARK</code> | |||
|- | |||
|<span style="color: #000000;">■</span> <code>#000000</code> | |||
|<code>ItemService.TIER_DANGER_0_COLOR_DARK</code> | |||
|- | |||
|<span style="color: #FF3B3B;">■</span> <code>#FF3B3B</code> | |||
|<code>ItemService.TIER_LEGENDARY_COLOR</code> | |||
|- | |||
|<span style="color: #AD5AFF;">■</span> <code>#AD5AFF</code> | |||
|<code>ItemService.TIER_RARE_COLOR</code> | |||
|- | |||
|<span style="color: #5ABEFF;">■</span> <code>#5ABEFF</code> | |||
|<code>ItemService.TIER_UNCOMMON_COLOR</code> | |||
|- | |||
|<span style="color: #240909;">■</span> <code>#240909</code> | |||
|<code>ItemService.TIER_LEGENDARY_COLOR_DARK</code> | |||
|- | |||
|<span style="color: #100A1B;">■</span> <code>#100A1B</code> | |||
|<code>ItemService.TIER_RARE_COLOR_DARK</code> | |||
|- | |||
|<span style="color: #0F2028;">■</span> <code>#0F2028</code> | |||
|<code>ItemService.TIER_UNCOMMON_COLOR_DARK</code> | |||
|} | |||
<templatedata> | <templatedata> | ||
Latest revision as of 22:38, 13 May 2026
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}}
|
#CA61FF
|
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 |