From Arms of God Wiki
bot: universal template Color |
bot(9-fix): two-arg var(--token, fallback) inline styles (Finding 6 css-var-no-fallback) |
||
| Line 11: | Line 11: | ||
| <code><nowiki>{{Color|#ff0000|red}}</nowiki></code> || {{Color|#ff0000|red}} | | <code><nowiki>{{Color|#ff0000|red}}</nowiki></code> || {{Color|#ff0000|red}} | ||
|- | |- | ||
| <code><nowiki>{{Color|var(--theme-primary)|themed}}</nowiki></code> || {{Color|var(--theme-primary)|themed}} | | <code><nowiki>{{Color|var(--theme-primary, #000000)|themed}}</nowiki></code> || {{Color|var(--theme-primary, #000000)|themed}} | ||
|} | |} | ||
Revision as of 02:18, 10 June 2026
Usage
{{Color|#ff0000|red text}}
First positional arg is any CSS color (hex / rgb / named / variable); second is the text.
Examples:
| Code | Result |
|---|---|
{{Color|#ff0000|red}} |
red |
{{Color|var(--theme-primary, #000000)|themed}} |
themed |
Colorize inline text.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Color (any CSS color value) | 1 | no description
| Unknown | required |
| Text | 2 | no description | Unknown | required |