From Brotato Wiki
(add alias for Gray/Grey) |
(Add support for "curse" color -- !!hotfix!!, need to change the hardcoded color style to a CSS class) |
||
Line 12: | Line 12: | ||
| tier3 = <span class="colorrarity3"> | | tier3 = <span class="colorrarity3"> | ||
| tier4 = <span class="colorrarity4"> | | tier4 = <span class="colorrarity4"> | ||
| curse = <span class="color-curse" style="color: #CA61FF;"> | |||
}}<!-- | }}<!-- | ||
-->{{{text|{{{2|}}}}}}<!-- | -->{{{text|{{{2|}}}}}}<!-- | ||
Line 68: | Line 69: | ||
|<code><nowiki>{{Color|tier4|TEXT}}</nowiki></code> | |<code><nowiki>{{Color|tier4|TEXT}}</nowiki></code> | ||
|<code><nowiki>{{Color|color=tier4|text=TEXT}}</nowiki></code> | |<code><nowiki>{{Color|color=tier4|text=TEXT}}</nowiki></code> | ||
|- | |||
|{{Color|curse|Curse}} | |||
|<code><nowiki>{{Color|curse|TEXT}}</nowiki></code> | |||
|<code><nowiki>{{Color|color=curse|text=TEXT}}</nowiki></code> | |||
|} | |} | ||
Line 75: | Line 80: | ||
"color": { | "color": { | ||
"label": "Color", | "label": "Color", | ||
"description": "Supported: green, red, cream, tier1, tier2, tier3, tier4, pastelgreen, pastelred", | "description": "Supported: green, red, cream, tier1, tier2, tier3, tier4, pastelgreen, pastelred, curse", | ||
"type": "string", | "type": "string", | ||
"autovalue": "green", | "autovalue": "green", |
Latest revision as of 18:16, 27 October 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}}
|
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 |