From Brotato Wiki
m (fix TemplateData not including the alsies for 1/2) |
(Add color: Cream) |
||
Line 3: | Line 3: | ||
| green = <span style="color:rgb(0,255,0);"> | | green = <span style="color:rgb(0,255,0);"> | ||
| red = <span style="color:rgb(244,0,0);"> | | red = <span style="color:rgb(244,0,0);"> | ||
| cream = <span style="color:rgb(234,226,176);"> | |||
| tier1 = <span class="colorrarity1"> | | tier1 = <span class="colorrarity1"> | ||
| tier2 = <span class="colorrarity2"> | | tier2 = <span class="colorrarity2"> | ||
Line 33: | Line 34: | ||
|<code><nowiki>{{Color|red|YOUR_TEXT}}</nowiki></code> | |<code><nowiki>{{Color|red|YOUR_TEXT}}</nowiki></code> | ||
|<code><nowiki>{{Color|color=red|text=YOUR_TEXT}}</nowiki></code> | |<code><nowiki>{{Color|color=red|text=YOUR_TEXT}}</nowiki></code> | ||
|- | |||
|{{Color|cream|Cream}} | |||
|<code><nowiki>{{Color|cream|YOUR_TEXT}}</nowiki></code> | |||
|<code><nowiki>{{Color|color=cream|text=YOUR_TEXT}}</nowiki></code> | |||
|- | |- | ||
|{{Color|tier1|Tier 1 (I)}} | |{{Color|tier1|Tier 1 (I)}} | ||
Line 56: | Line 61: | ||
"color": { | "color": { | ||
"label": "Color", | "label": "Color", | ||
"description": "Supported: green, red, tier1, tier2, tier3, tier4", | "description": "Supported: green, red, cream, tier1, tier2, tier3, tier4", | ||
"type": "string", | "type": "string", | ||
"autovalue": "green", | "autovalue": "green", |
Revision as of 18:18, 4 November 2022
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) | {{Color|green|YOUR_TEXT}}
|
{{Color|color=green|text=YOUR_TEXT}}
|
Red (Negative) | {{Color|red|YOUR_TEXT}}
|
{{Color|color=red|text=YOUR_TEXT}}
|
Cream | {{Color|cream|YOUR_TEXT}}
|
{{Color|color=cream|text=YOUR_TEXT}}
|
Tier 1 (I) | {{Color|tier1|YOUR_TEXT}}
|
{{Color|color=tier1|text=YOUR_TEXT}}
|
Tier 2 (II) | {{Color|tier2|YOUR_TEXT}}
|
{{Color|color=tier2|text=YOUR_TEXT}}
|
Tier 3 (III) | {{Color|tier3|YOUR_TEXT}}
|
{{Color|color=tier3|text=YOUR_TEXT}}
|
Tier 4 (IV) | {{Color|tier4|YOUR_TEXT}}
|
{{Color|color=tier4|text=YOUR_TEXT}}
|
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Color | color 1 | Supported: green, red, cream, tier1, tier2, tier3, tier4
| String | required |
Text | text 2 | no description | String | required |