From Brotato Wiki

(Add color: Cream)
m (Docs: Replace "YOUR_TEXT" with the shorter "TEXT")
Line 28: Line 28:
|-
|-
|{{Color|green|Green (Positive)}}
|{{Color|green|Green (Positive)}}
|<code><nowiki>{{Color|green|YOUR_TEXT}}</nowiki></code>
|<code><nowiki>{{Color|green|TEXT}}</nowiki></code>
|<code><nowiki>{{Color|color=green|text=YOUR_TEXT}}</nowiki></code>
|<code><nowiki>{{Color|color=green|text=TEXT}}</nowiki></code>
|-
|-
|{{Color|red|Red (Negative)}}
|{{Color|red|Red (Negative)}}
|<code><nowiki>{{Color|red|YOUR_TEXT}}</nowiki></code>
|<code><nowiki>{{Color|red|TEXT}}</nowiki></code>
|<code><nowiki>{{Color|color=red|text=YOUR_TEXT}}</nowiki></code>
|<code><nowiki>{{Color|color=red|text=TEXT}}</nowiki></code>
|-
|-
|{{Color|cream|Cream}}
|{{Color|cream|Cream}}
|<code><nowiki>{{Color|cream|YOUR_TEXT}}</nowiki></code>
|<code><nowiki>{{Color|cream|TEXT}}</nowiki></code>
|<code><nowiki>{{Color|color=cream|text=YOUR_TEXT}}</nowiki></code>
|<code><nowiki>{{Color|color=cream|text=TEXT}}</nowiki></code>
|-
|-
|{{Color|tier1|Tier 1 (I)}}
|{{Color|tier1|Tier 1 (I)}}
|<code><nowiki>{{Color|tier1|YOUR_TEXT}}</nowiki></code>
|<code><nowiki>{{Color|tier1|TEXT}}</nowiki></code>
|<code><nowiki>{{Color|color=tier1|text=YOUR_TEXT}}</nowiki></code>
|<code><nowiki>{{Color|color=tier1|text=TEXT}}</nowiki></code>
|-
|-
|{{Color|tier2|Tier 2 (II)}}
|{{Color|tier2|Tier 2 (II)}}
|<code><nowiki>{{Color|tier2|YOUR_TEXT}}</nowiki></code>
|<code><nowiki>{{Color|tier2|TEXT}}</nowiki></code>
|<code><nowiki>{{Color|color=tier2|text=YOUR_TEXT}}</nowiki></code>
|<code><nowiki>{{Color|color=tier2|text=TEXT}}</nowiki></code>
|-
|-
|{{Color|tier3|Tier 3 (III)}}
|{{Color|tier3|Tier 3 (III)}}
|<code><nowiki>{{Color|tier3|YOUR_TEXT}}</nowiki></code>
|<code><nowiki>{{Color|tier3|TEXT}}</nowiki></code>
|<code><nowiki>{{Color|color=tier3|text=YOUR_TEXT}}</nowiki></code>
|<code><nowiki>{{Color|color=tier3|text=TEXT}}</nowiki></code>
|-
|-
|{{Color|tier4|Tier 4 (IV)}}
|{{Color|tier4|Tier 4 (IV)}}
|<code><nowiki>{{Color|tier4|YOUR_TEXT}}</nowiki></code>
|<code><nowiki>{{Color|tier4|TEXT}}</nowiki></code>
|<code><nowiki>{{Color|color=tier4|text=YOUR_TEXT}}</nowiki></code>
|<code><nowiki>{{Color|color=tier4|text=TEXT}}</nowiki></code>
|}
|}



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|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}}
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.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Colorcolor 1

Supported: green, red, cream, tier1, tier2, tier3, tier4

Auto value
green
Stringrequired
Texttext 2

no description

Stringrequired