From Brotato Wiki
(Add little squares of color next to the color names in the docs) |
(Add 2 new colours from the game code: charm, material) |
||
Line 1: | Line 1: | ||
<onlyinclude><!-- | <onlyinclude><!-- | ||
-->{{#switch: {{{color|{{{1|}}}}}} | -->{{#switch: {{{color|{{{1|}}}}}} | ||
| green | | green = <span style="color:rgb(0,255,0);"> | ||
| red | | red = <span style="color:rgb(244,0,0);"> | ||
| pastelgreen = <span style="color:rgb(102 185 102);"> | | pastelgreen = <span style="color:rgb(102 185 102);"> | ||
| pastelred = <span style="color:rgb(191 89 89);"> | | pastelred = <span style="color:rgb(191 89 89);"> | ||
| cream | | cream = <span style="color:rgb(234,226,176);"> | ||
| grey | | grey | ||
| gray | | gray = <span style="color:gray"> | ||
| tier1 | | tier1 = <span class="colorrarity1"> | ||
| tier2 | | tier2 = <span class="colorrarity2"> | ||
| tier3 | | tier3 = <span class="colorrarity3"> | ||
| tier4 | | tier4 = <span class="colorrarity4"> | ||
| curse | | curse = <span style="color: #CA61FF;" class="color-curse"> | ||
| charm = <span style="color: #9BC6DD;" class="color-charm"> | |||
| material = <span style="color: #76FF76;" class="color-material"> | |||
}}<!-- | }}<!-- | ||
-->{{{text|{{{2|}}}}}}<!-- | -->{{{text|{{{2|}}}}}}<!-- | ||
Line 73: | Line 75: | ||
|<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> | ||
|- | |||
|{{Color|charm|■ Charm}} | |||
|<code><nowiki>{{Color|charm|TEXT}}</nowiki></code> | |||
|<code><nowiki>{{Color|color=charm|text=TEXT}}</nowiki></code> | |||
|- | |||
|{{Color|material|■ Material}} | |||
|<code><nowiki>{{Color|material|TEXT}}</nowiki></code> | |||
|<code><nowiki>{{Color|color=material|text=TEXT}}</nowiki></code> | |||
|} | |} | ||
Revision as of 15:24, 1 November 2024
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) |
---|---|---|
■ Green (Positive Stat) | {{Color|green|TEXT}}
|
{{Color|color=green|text=TEXT}}
|
■ Red (Negative Stat) | {{Color|red|TEXT}}
|
{{Color|color=red|text=TEXT}}
|
■ Pastel Green (Good Text) | {{Color|pastelgreen|TEXT}}
|
{{Color|color=pastelgreen|text=TEXT}}
|
■ Pastel Red (Bad Text) | {{Color|pastelred|TEXT}}
|
{{Color|color=pastelred|text=TEXT}}
|
■ Cream | {{Color|cream|TEXT}}
|
{{Color|color=cream|text=TEXT}}
|
■ Gray / Grey | {{Color|gray|TEXT}}
|
{{Color|color=grey|text=TEXT}}
|
■ Tier 1 (I) | {{Color|tier1|TEXT}}
|
{{Color|color=tier1|text=TEXT}}
|
■ Tier 2 (II) | {{Color|tier2|TEXT}}
|
{{Color|color=tier2|text=TEXT}}
|
■ Tier 3 (III) | {{Color|tier3|TEXT}}
|
{{Color|color=tier3|text=TEXT}}
|
■ Tier 4 (IV) | {{Color|tier4|TEXT}}
|
{{Color|color=tier4|text=TEXT}}
|
■ Curse | {{Color|curse|TEXT}}
|
{{Color|color=curse|text=TEXT}}
|
■ Charm | {{Color|charm|TEXT}}
|
{{Color|color=charm|text=TEXT}}
|
■ Material | {{Color|material|TEXT}}
|
{{Color|color=material|text=TEXT}}
|
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 |