From Brotato Wiki
m (Docs: Replace "YOUR_TEXT" with the shorter "TEXT") |
(add color: gray) |
||
Line 4: | Line 4: | ||
| red = <span style="color:rgb(244,0,0);"> | | red = <span style="color:rgb(244,0,0);"> | ||
| cream = <span style="color:rgb(234,226,176);"> | | cream = <span style="color:rgb(234,226,176);"> | ||
| gray = <span style="color:gray"> | |||
| tier1 = <span class="colorrarity1"> | | tier1 = <span class="colorrarity1"> | ||
| tier2 = <span class="colorrarity2"> | | tier2 = <span class="colorrarity2"> | ||
Line 38: | Line 39: | ||
|<code><nowiki>{{Color|cream|TEXT}}</nowiki></code> | |<code><nowiki>{{Color|cream|TEXT}}</nowiki></code> | ||
|<code><nowiki>{{Color|color=cream|text=TEXT}}</nowiki></code> | |<code><nowiki>{{Color|color=cream|text=TEXT}}</nowiki></code> | ||
|- | |||
|{{Color|gray|Gray}} | |||
|<code><nowiki>{{Color|gray|TEXT}}</nowiki></code> | |||
|<code><nowiki>{{Color|color=gray|text=TEXT}}</nowiki></code> | |||
|- | |- | ||
|{{Color|tier1|Tier 1 (I)}} | |{{Color|tier1|Tier 1 (I)}} |
Revision as of 21:53, 7 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|TEXT}}
|
{{Color|color=green|text=TEXT}}
|
Red (Negative) | {{Color|red|TEXT}}
|
{{Color|color=red|text=TEXT}}
|
Cream | {{Color|cream|TEXT}}
|
{{Color|color=cream|text=TEXT}}
|
Gray | {{Color|gray|TEXT}}
|
{{Color|color=gray|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}}
|
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 |